nm-applet: fix some buildproblems
[openembedded.git] / recipes / cup / cup_0.10k.bb
blob09d9644f7471906caeac871255a558fd3de87c2a
1 DESCRIPTION = "Lexical analyzer generator for Java"
2 AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian"
4 DEPENDS = "virtual/javac-native fastjar-native"
5 RDEPENDS = "java2-runtime"
7 inherit java-library
9 SRC_URI = "\
10 http://www.cs.princeton.edu/~appel/modern/java/CUP/java_${BPN}_v10k.tar.gz \
11 file://cup \
14 S = "${WORKDIR}/java_cup"
16 do_configure() {
17 sed -i \
18 -e "s|OE_STAGING_BINDIR|${bindir}|" \
19 -e "s|OE_STAGING_DATADIR_JAVA|${data_java}|" \
20 -e "s|OE_CUP_JAR|${BP}.jar|" \
21 ${WORKDIR}/cup
24 do_compile() {
25 mkdir -p build
27 javac -d build `find . -name "*.java"`
29 fastjar -C build -c -f ${BP}.jar .
32 do_install_append() {
33 install -d ${D}${bindir}
34 install -m 0755 ${WORKDIR}/cup ${D}${bindir}
37 PACKAGES = "${PN}"
39 FILES_${PN} += "${datadir_java}"