summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>2020-06-23 11:48:25 +0200
committerRichard Leitner <richard.leitner@skidata.com>2020-07-02 08:51:30 +0200
commit3cbf5d53914f186cb53d3fdf016052a7aadd7679 (patch)
tree0a45bf1cbc57779a7e3bd4768513c922b73cf829
parentb28b9516d9356c6188ef9cd4ae752f9308eab6ab (diff)
downloadmeta-java-3cbf5d53914f186cb53d3fdf016052a7aadd7679.tar.gz
jlex: set unique file name for download
Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
-rw-r--r--recipes-core/jlex/jlex_1.2.6.bb7
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-core/jlex/jlex_1.2.6.bb b/recipes-core/jlex/jlex_1.2.6.bb
index b8f9ffb..3c14e4c 100644
--- a/recipes-core/jlex/jlex_1.2.6.bb
+++ b/recipes-core/jlex/jlex_1.2.6.bb
@@ -1,7 +1,9 @@
1SUMMARY = "Lexical analyzer generator for Java" 1SUMMARY = "Lexical analyzer generator for Java"
2AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian" 2AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian"
3
4JLEX_MAIN_FILENAME = "jlex-${PV}-Main.java"
3LICENSE = "JLEX" 5LICENSE = "JLEX"
4LIC_FILES_CHKSUM = "file://Main.java;beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a" 6LIC_FILES_CHKSUM = "file://${JLEX_MAIN_FILENAME};beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
5 7
6PACKAGE_ARCH = "${TUNE_PKGARCH}" 8PACKAGE_ARCH = "${TUNE_PKGARCH}"
7 9
@@ -10,7 +12,7 @@ RDEPENDS_${PN}_class-native = ""
10 12
11inherit java-library 13inherit java-library
12 14
13SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java \ 15SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java;downloadfilename=${JLEX_MAIN_FILENAME} \
14 file://jlex \ 16 file://jlex \
15 " 17 "
16 18
@@ -26,6 +28,7 @@ do_configure() {
26 28
27do_compile() { 29do_compile() {
28 mkdir -p build 30 mkdir -p build
31 cp ${JLEX_MAIN_FILENAME} Main.java
29 32
30 javac -d build Main.java 33 javac -d build Main.java
31 34