From: Max Krummenacher <max.oss.09@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-java][PATCH 5/7] antlr: fix override for native build
Date: Mon, 16 Feb 2015 22:55:32 +0100 [thread overview]
Message-ID: <1424123733-16696-6-git-send-email-max.oss.09@gmail.com> (raw)
In-Reply-To: <1424123733-16696-1-git-send-email-max.oss.09@gmail.com>
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 <max.oss.09@gmail.com>
---
recipes-core/antlr/antlr_2.7.7.bb | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
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"
--
1.9.3
next prev parent reply other threads:[~2015-02-16 21:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-16 21:55 [meta-java][PATCH 0/7] Allow build for multiple ARCH in the same builddir Max Krummenacher
2015-02-16 21:55 ` [meta-java][PATCH 1/7] cleanup whitespace in tasks Max Krummenacher
2015-02-16 21:55 ` [meta-java][PATCH 2/7] licence: add missing LIC_FILES_CHKSUM Max Krummenacher
2015-02-16 21:55 ` [meta-java][PATCH 3/7] rxtx: use autotools-brokensep Max Krummenacher
2015-02-16 21:55 ` [meta-java][PATCH 4/7] java-library: inherit allarch Max Krummenacher
2015-02-16 21:55 ` Max Krummenacher [this message]
2015-02-16 21:55 ` [meta-java][PATCH 6/7] adding a README.nonworking Max Krummenacher
2015-02-16 23:13 ` [meta-java][PATCH 0/7] Allow build for multiple ARCH in the same builddir Otavio Salvador
2015-02-17 8:38 ` Max Krummenacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1424123733-16696-6-git-send-email-max.oss.09@gmail.com \
--to=max.oss.09@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox