From 9b33eee75b70bd431f6cac098e97d3b6dd220b51 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 17 Feb 2015 10:57:15 +0100 Subject: antlr: fix override for native build The override virtclass_native has been deprecated and removed from the buildsystem, use class-native instead. While at it fix whitespace issues. Signed-off-by: Max Krummenacher Signed-off-by: Otavio Salvador --- recipes-core/antlr/antlr_2.7.7.bb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (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 index 2c7ab8e..9d9d2d4 100644 --- a/recipes-core/antlr/antlr_2.7.7.bb +++ b/recipes-core/antlr/antlr_2.7.7.bb @@ -5,25 +5,25 @@ 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" +SRC_URI_append_class-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_configure_class-native() { + sed -i -e"s|@JAR_FILE@|${STAGING_DATADIR_JAVA_NATIVE}/antlr.jar|" ${WORKDIR}/runantlr } do_compile() { - mkdir -p build + mkdir -p build - javac -sourcepath . -d build `find antlr -name "*.java"` + javac -sourcepath . -d build `find antlr -name "*.java"` - fastjar cf ${JARFILENAME} -C build . + fastjar cf ${JARFILENAME} -C build . } -do_install_virtclass_native() { - install ${D}${bindir} - install -m 0755 ${WORKDIR}/runantlr {D}${bindir}/ +do_install_class-native() { + install -d ${D}${bindir} + install -m 0755 ${WORKDIR}/runantlr ${D}${bindir}/ } SRC_URI[md5sum] = "01cc9a2a454dd33dcd8c856ec89af090" -- cgit v1.2.3-54-g00ecf