blob: f0608fe6598d8084870e0dcc7595bef7f8cca766 (
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
58
59
|
# 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.4 2005/04/03 13:52:35 luckyduck 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="~amd64 ~x86 ~ppc"
IUSE="doc examples jikes source"
DEPEND=">=virtual/jdk-1.3
>=dev-java/ant-core-1.4
jikes? ( >=dev-java/jikes-1.21 )
source? ( app-arch/zip )"
RDEPEND=">=virtual/jdk-1.3
=dev-java/bsf-2.3*
=dev-java/jakarta-oro-2.0*
>=dev-java/javacc-3.2
=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 jakarta-oro-2.0`" >> ${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"
use doc && antflags="${antflags} docs"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "failed to build"
}
src_install() {
java-pkg_dojar lib/fesi.jar
if use doc; then
dodoc License.txt Readme.txt
java-pkg_dohtml -r doc/html/*
fi
if use examples; then
dodir /usr/share/doc/${PF}/examples
cp -r examples/* ${D}/usr/share/doc/${PF}/examples
fi
use source && java-pkg_dosrc src/FESI/*
}
|