blob: f5171ca4aca5cf180bef939e178cb8ea30a289ea (
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
52
53
54
55
56
57
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/fesi/fesi-1.1.8.ebuild,v 1.2 2005/01/01 18:24:21 eradicator Exp $
inherit eutils java-pkg
DESCRIPTION="JavaScript Interpreter written in Java"
SRC_URI="http://dev.gentoo.org/~karltk/projects/java/distfiles/${P}.gentoo.tar.bz2"
HOMEPAGE="http://www.lugrin.ch/fesi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86" #karltk: ~amd64 is missing bsf-2.3"
IUSE="doc jikes"
DEPEND=">=virtual/jdk-1.3
jikes? ( >=dev-java/jikes-1.21 )
>=dev-java/ant-core-1.4
=dev-java/bsf-2.3*
=dev-java/oro-2.0*
>=dev-java/javacc-3.2"
RDEPEND=">=virtual/jdk-1.3
=dev-java/gnu-regexp-1.1*"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/fesibuild.patch
bf=build.properties
cd ant/
echo "javaccdir=`java-config -p javacc`" > ${bf}
echo "ororegexp=`java-config -p oro`" >> ${bf}
echo "gnuregexp=`java-config -p gnu-regexp-1`" >> ${bf}
echo "bsfdir=`java-config -p bsf-2.3`" >> ${bf}
}
src_compile() {
cd ant/
local antflags="jars"
if use doc; then
antflags="${antflags} docs"
fi
if use jikes; then
antflags="${antflags} -Dbuild.compiler=jikes"
fi
ant ${antflags} || die "failed to build"
}
src_install() {
java-pkg_dojar lib/fesi.jar
dodoc License.txt Readme.txt
if use doc; then
java-pkg_dohtml -r doc/html/*
fi
}
|