blob: 31769c92f7c2fed3c4c340630af366801083ab84 (
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
|
SUMMARY = "Framework for constructing recognizers, interpreters, compilers, and translators"
HOMEPAGE = "http://www.antlr2.org"
# see http://www.antlr2.org/license.html
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=361934e706423915b4d9f413ad37fb65"
SRC_URI = "http://www.antlr2.org/download/${BP}.tar.gz"
SRC_URI:append:class-native = " file://runantlr"
inherit java-library
do_configure:class-native() {
sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar|" ${WORKDIR}/runantlr
}
do_compile() {
mkdir -p build
javac -sourcepath . -d build `find antlr -name "*.java"`
fastjar cf ${JARFILENAME} -C build .
}
do_install:class-native() {
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/runantlr ${D}${bindir}/
}
SRC_URI[sha256sum] = "853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9"
BBCLASSEXTEND = "native"
|