summaryrefslogtreecommitdiff
blob: 7037280a304d749b8474f9ad3097a920d2956db0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Karl Trygve Kalleberg <karltk@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-sci/euler/euler-1.59.1.ebuild,v 1.4 2002/05/27 17:27:36 drobbins Exp $

S=${WORKDIR}/${P}

DESCRIPTION="Mathematical programming environment"

SRC_URI="mirror://sourceforge/euler/euler-1.59.1.tar.gz"

HOMEPAGE="http://euler.sf.net"

DEPEND="virtual/glibc
        virtual/x11
        =x11-libs/gtk+-1.2*"

PROVIDE="app-misc/euler"

src_unpack() {
	unpack ${P}.tar.gz
	mv euler-1.59 ${P}
	
	cd ${S}/source
	mv main.c main.c.orig
	cat main.c.orig | \
	sed -e "s:share/euler/docs/index.html:share/doc/${P}/html/index.html:" \
	> main.c
}

src_compile() {

	cd ${S}/source
	emake INSTALL_DIR=/usr || die
}

src_install () {

	cd ${S}/source
	dodir usr usr/share usr/bin
	make INSTALL_DIR=${D}/usr install || die
	
	cd ${S}
	dodir usr/share/doc/${P}/html
	mv ${D}/usr/share/euler/docs/* ${D}/usr/share/doc/${PF}/html
	rm -rf ${D}/usr/share/euler/docs
	dodoc ChangeLog README TODO
}