|
Lines 2-8
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yacas/yacas-1.2.2.ebuild,v 1.5 2008/11/08 17:20:49 maekke Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yacas/yacas-1.2.2.ebuild,v 1.5 2008/11/08 17:20:49 maekke Exp $ |
| 4 |
|
4 |
|
| 5 |
inherit eutils java |
5 |
inherit eutils java-pkg-opt-2 toolchain-funcs |
| 6 |
|
6 |
|
| 7 |
DESCRIPTION="Powerful general purpose computer algebra system" |
7 |
DESCRIPTION="Powerful general purpose computer algebra system" |
| 8 |
HOMEPAGE="http://yacas.sourceforge.net/" |
8 |
HOMEPAGE="http://yacas.sourceforge.net/" |
|
Lines 10-26
Link Here
|
| 10 |
|
10 |
|
| 11 |
SLOT="0" |
11 |
SLOT="0" |
| 12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
| 13 |
KEYWORDS="amd64 ppc x86" |
13 |
KEYWORDS="~amd64 ~ppc ~x86" |
| 14 |
|
14 |
|
| 15 |
IUSE="doc java server" |
15 |
IUSE="doc java server" |
| 16 |
|
16 |
|
| 17 |
RDEPEND="java? ( >=virtual/jdk-1.6 )" |
17 |
DEPEND="java? ( >=virtual/jdk-1.6 )" |
| 18 |
DEPEND="java? ( >=virtual/jre-1.6 )" |
18 |
RDEPEND="java? ( >=virtual/jre-1.6 )" |
| 19 |
|
19 |
|
| 20 |
src_unpack() { |
20 |
src_unpack() { |
| 21 |
unpack ${A} |
21 |
unpack ${A} |
| 22 |
cd "${S}" |
22 |
cd "${S}" || die |
| 23 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
23 |
epatch "${FILESDIR}"/${P}-gcc43.patch |
|
|
24 |
epatch "${FILESDIR}"/${P}-makefixes.patch |
| 24 |
} |
25 |
} |
| 25 |
|
26 |
|
| 26 |
src_compile() { |
27 |
src_compile() { |
|
Lines 31-38
Link Here
|
| 31 |
|| die "econf failed" |
32 |
|| die "econf failed" |
| 32 |
emake || die "emake failed" |
33 |
emake || die "emake failed" |
| 33 |
if use java; then |
34 |
if use java; then |
| 34 |
cd JavaYacas |
35 |
cd JavaYacas || die |
| 35 |
emake -f makefile.yacas || die "emake java interface failed" |
36 |
CXX=$(tc-getCXX) emake -f makefile.yacas || die "emake java interface failed" |
| 36 |
fi |
37 |
fi |
| 37 |
} |
38 |
} |
| 38 |
|
39 |
|
|
Lines 40-51
Link Here
|
| 40 |
emake DESTDIR="${D}" install || die "emake install failed" |
41 |
emake DESTDIR="${D}" install || die "emake install failed" |
| 41 |
dodoc AUTHORS README TODO || die |
42 |
dodoc AUTHORS README TODO || die |
| 42 |
if use java; then |
43 |
if use java; then |
| 43 |
cd JavaYacas |
44 |
cd JavaYacas || die |
|
|
45 |
java-pkg_dojar yacas.jar |
| 46 |
java-pkg_dolauncher jyacas --main net.sf.yacas.YacasConsole |
| 44 |
insinto /usr/share/${PN} |
47 |
insinto /usr/share/${PN} |
| 45 |
doins yacas.jar hints.txt yacasconsole.html || die "doins java interface failed" |
48 |
doins hints.txt yacasconsole.html || die "doins java resources failed" |
| 46 |
echo "#!/bin/sh" > jyacas |
|
|
| 47 |
echo "java -jar /usr/share/${PN}/yacas.jar" >> jyacas |
| 48 |
exeinto /usr/bin |
| 49 |
doexe jyacas |
| 50 |
fi |
49 |
fi |
| 51 |
} |
50 |
} |