diff options
author | Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com> | 2020-06-23 11:48:25 +0200 |
---|---|---|
committer | Richard Leitner <richard.leitner@skidata.com> | 2020-07-02 08:51:30 +0200 |
commit | 3cbf5d53914f186cb53d3fdf016052a7aadd7679 (patch) | |
tree | 0a45bf1cbc57779a7e3bd4768513c922b73cf829 /recipes-core/jlex | |
parent | b28b9516d9356c6188ef9cd4ae752f9308eab6ab (diff) | |
download | meta-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>
Diffstat (limited to 'recipes-core/jlex')
-rw-r--r-- | recipes-core/jlex/jlex_1.2.6.bb | 7 |
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 @@ | |||
1 | SUMMARY = "Lexical analyzer generator for Java" | 1 | SUMMARY = "Lexical analyzer generator for Java" |
2 | AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian" | 2 | AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian" |
3 | |||
4 | JLEX_MAIN_FILENAME = "jlex-${PV}-Main.java" | ||
3 | LICENSE = "JLEX" | 5 | LICENSE = "JLEX" |
4 | LIC_FILES_CHKSUM = "file://Main.java;beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a" | 6 | LIC_FILES_CHKSUM = "file://${JLEX_MAIN_FILENAME};beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a" |
5 | 7 | ||
6 | PACKAGE_ARCH = "${TUNE_PKGARCH}" | 8 | PACKAGE_ARCH = "${TUNE_PKGARCH}" |
7 | 9 | ||
@@ -10,7 +12,7 @@ RDEPENDS_${PN}_class-native = "" | |||
10 | 12 | ||
11 | inherit java-library | 13 | inherit java-library |
12 | 14 | ||
13 | SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java \ | 15 | SRC_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 | ||
27 | do_compile() { | 29 | do_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 | ||