blob: a2373c3401033fb77247e713da9a26f8843f457e (
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
50
51
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/yacas/yacas-1.2.2.ebuild,v 1.3 2008/11/06 12:07:53 bicatali Exp $
inherit eutils java
DESCRIPTION="Powerful general purpose computer algebra system"
HOMEPAGE="http://yacas.sourceforge.net/"
SRC_URI="http://${PN}.sourceforge.net/backups/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc java server"
RDEPEND="java? ( >=virtual/jdk-1.6 )"
DEPEND="java? ( >=virtual/jre-1.6 )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc43.patch
}
src_compile() {
econf \
$(use_enable doc html-doc) \
$(use_enable server) \
--with-html-dir="/usr/share/doc/${PF}/html" \
|| die "econf failed"
emake || die "emake failed"
if use java; then
cd JavaYacas
emake -f makefile.yacas || die "emake java interface failed"
fi
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS README TODO || die
if use java; then
cd JavaYacas
insinto /usr/share/${PN}
doins yacas.jar hints.txt yacasconsole.html || die "doins java interface failed"
echo "#!/bin/sh" > jyacas
echo "java -jar /usr/share/${PN}/yacas.jar" >> jyacas
exeinto /usr/bin
doexe jyacas
fi
}
|