From 57e069cde6617f00ca8834a82c6f360af43d5067 Mon Sep 17 00:00:00 2001 From: Henning Heinold Date: Sat, 12 Nov 2011 20:58:34 +0100 Subject: meta-java: initial commit * taken over mostly stuff from oe classic * cleaned up recipes * added license checksums * bump icedtea6-native to 1.8.11 * use jamvm from git as native --- recipes-core/antlr/antlr_2.7.7.bb | 33 +++++++++++++++++++++++++++++++++ recipes-core/antlr/files/runantlr | 11 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 recipes-core/antlr/antlr_2.7.7.bb create mode 100755 recipes-core/antlr/files/runantlr (limited to 'recipes-core/antlr') diff --git a/recipes-core/antlr/antlr_2.7.7.bb b/recipes-core/antlr/antlr_2.7.7.bb new file mode 100644 index 0000000..105b5e8 --- /dev/null +++ b/recipes-core/antlr/antlr_2.7.7.bb @@ -0,0 +1,33 @@ +DESCRIPTION = "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_virtclass_native += "file://runantlr" + +inherit java-library + +do_configure_virtclass_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 -C build -c -f ${JARFILENAME} . +} + +do_install_virtclass_native() { + install ${D}${bindir} + install -m 0755 ${WORKDIR}/runantlr {D}${bindir}/ +} + +SRC_URI[md5sum] = "01cc9a2a454dd33dcd8c856ec89af090" +SRC_URI[sha256sum] = "853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9" + +BBCLASSEXTEND = "native" + diff --git a/recipes-core/antlr/files/runantlr b/recipes-core/antlr/files/runantlr new file mode 100755 index 0000000..b924bf4 --- /dev/null +++ b/recipes-core/antlr/files/runantlr @@ -0,0 +1,11 @@ +#!/bin/sh +echo Running 'java antlr.Tool $*' with @JAR_FILE@ appended to the CLASSPATH variable + +export CLASSPATH +CLASSPATH=$CLASSPATH:@JAR_FILE@ + +if [ ! $JAVA ];then + JAVA=java +fi + +$JAVA antlr.Tool $* -- cgit v1.2.3-54-g00ecf