blob: fccdfe87f64b46219cef9d8621bc1292848fe6ab (
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
|
DESCRIPTION = "Lexical analyzer generator for Java"
LICENSE = "GPL-2.0 MPL-1.1"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=b8ba559ba419681dbf8280b6721df0af"
BBCLASSEXTEND = "native"
inherit java-library
SRC_URI = "\
ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R2.zip \
file://rhino \
file://rhino-jsc \
"
S = "${WORKDIR}/rhino1_7R2"
PACKAGES = "${JPN} rhino"
FILES_${PN} = "${bindir}/rhino ${bindir}/rhino-jsc"
RDEPENDS_${PN} = "java2-runtime ${JPN}"
RDEPENDS_${PN}_virtclass-native = ""
do_compile() {
mkdir -p build
# Compatibility fix for jamvm which has non-genericised
# java.lang classes. :(
bcp_arg="-bootclasspath ${STAGING_DATADIR_NATIVE}/classpath/glibj.zip"
javac $bcp_arg -source 1.5 -sourcepath src -d build `find src -name "*.java"`
mkdir -p build/org/mozilla/javascript/resources
cp src/org/mozilla/javascript/resources/*.properties build/org/mozilla/javascript/resources
fastjar -m ${S}/src/manifest -C build -c -f ${JARFILENAME} .
}
do_install_append() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/rhino ${D}${bindir}
install -m 0755 ${WORKDIR}/rhino-jsc ${D}${bindir}
}
SRC_URI[md5sum] = "40d0a9abec8169e42920214b37fa8e0e"
SRC_URI[sha256sum] = "677f7dc1b67a1587bc03974d5f0720474a56b8f29835e1d860739908df8462dc"
|