blob: 6e30bbc82a4a5422d608ab2b58ddba5b109fa00f (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/euler/euler-1.60.6-r1.ebuild,v 1.5 2006/02/26 23:54:26 markusle Exp $
inherit eutils versionator
IUSE=""
#euler only uses two major numners internally, need to do some mangling
MajVer=$(get_version_component_range 1-2)
S=${WORKDIR}/${PN}-${MajVer}
DESCRIPTION="Mathematical programming environment"
HOMEPAGE="http://euler.sourceforge.net/"
SRC_URI="mirror://sourceforge/euler/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc -sparc amd64"
DEPEND="virtual/libc
=x11-libs/gtk+-1.2*"
src_unpack() {
unpack ${P}.tar.gz
cd ${S}/source
epatch ${FILESDIR}/${P}.patch
epatch ${FILESDIR}/euler-1.60-compound_statements.patch
sed -e "s:share/euler/docs/index.html:share/doc/${P}/html/index.html:" \
-i main.c
sed -e "s:-O2:\$(CFLAGS):" -i makefile
}
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/doc/${PN}/* ${D}/usr/share/doc/${PF}/html
rm -rf ${D}/usr/share/doc/${PN}
dodoc ChangeLog README TODO
}
|