From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/antlr/antlr-native_2.7.7.bb | 17 +++++++++++++++++ recipes/antlr/antlr_2.7.7.bb | 16 ++++++++++++++++ recipes/antlr/files/runantlr | 11 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 recipes/antlr/antlr-native_2.7.7.bb create mode 100644 recipes/antlr/antlr_2.7.7.bb create mode 100755 recipes/antlr/files/runantlr (limited to 'recipes/antlr') diff --git a/recipes/antlr/antlr-native_2.7.7.bb b/recipes/antlr/antlr-native_2.7.7.bb new file mode 100644 index 0000000000..871e620b93 --- /dev/null +++ b/recipes/antlr/antlr-native_2.7.7.bb @@ -0,0 +1,17 @@ +require antlr_${PV}.bb + +SRC_URI += "file://runantlr" + +inherit java-native + +do_configure() { + sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_NATIVE}/java/antlr.jar|" ${WORKDIR}/runantlr +} + +do_stage() { + java_stage + + install -d ${STAGING_BINDIR} + + install -m 0755 ${WORKDIR}/runantlr ${STAGING_BINDIR} +} diff --git a/recipes/antlr/antlr_2.7.7.bb b/recipes/antlr/antlr_2.7.7.bb new file mode 100644 index 0000000000..431b7b5b4f --- /dev/null +++ b/recipes/antlr/antlr_2.7.7.bb @@ -0,0 +1,16 @@ +DESCRIPTION = "Framework for constructing recognizers, interpreters, compilers, and translators" +# see http://www.antlr2.org/license.html +LICENSE = "Public Domain" +HOMEPAGE = "http://www.antlr2.org" + +SRC_URI = "http://www.antlr2.org/download/${BP}.tar.gz" + +inherit java-library + +do_compile() { + mkdir -p build + + javac -sourcepath . -d build `find antlr -name "*.java"` + + fastjar -C build -c -f ${JARFILENAME} . +} diff --git a/recipes/antlr/files/runantlr b/recipes/antlr/files/runantlr new file mode 100755 index 0000000000..b924bf477d --- /dev/null +++ b/recipes/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