[meta-java] jlex: set unique file name for download

Submitted by Vyacheslav Yurkov on June 23, 2020, 9:48 a.m. | Patch ID: 173812

Details

Message ID 20200623094825.33289-1-uvv.mail@gmail.com
State Master Next
Delegated to: Richard Leitner
Headers show

Commit Message

Vyacheslav Yurkov June 23, 2020, 9:48 a.m.
From: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>

Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
---
 recipes-core/jlex/jlex_1.2.6.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

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 @@ 
 SUMMARY = "Lexical analyzer generator for Java"
 AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian"
+
+JLEX_MAIN_FILENAME = "jlex-${PV}-Main.java"
 LICENSE = "JLEX"
-LIC_FILES_CHKSUM = "file://Main.java;beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
+LIC_FILES_CHKSUM = "file://${JLEX_MAIN_FILENAME};beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
 
 PACKAGE_ARCH = "${TUNE_PKGARCH}"
 
@@ -10,7 +12,7 @@  RDEPENDS_${PN}_class-native = ""
 
 inherit java-library
 
-SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java \
+SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java;downloadfilename=${JLEX_MAIN_FILENAME} \
            file://jlex \
           "
 
@@ -26,6 +28,7 @@  do_configure() {
 
 do_compile() {
 	mkdir -p build
+	cp ${JLEX_MAIN_FILENAME} Main.java
 
 	javac -d build Main.java
 

Comments

Richard Leitner July 2, 2020, 6:55 a.m.
Hi,
thank you for your patch!

This is a note to let you know that I've just added this patch to the
master-next branch of the meta-java repository at
	git://git.yoctoproject.org/meta-java

As soon as it has gone through some more testing it will likely be
merged to the master branch.

If you have any questions, please let me know.

regards;rl

On Tue, Jun 23, 2020 at 11:48:25AM +0200, Vyacheslav Yurkov wrote:
> From: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
> 
> Signed-off-by: Vyacheslav Yurkov <Vyacheslav.Yurkov@bruker.com>
> ---
>  recipes-core/jlex/jlex_1.2.6.bb | 7 +++++--
>  1 file 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 @@
>  SUMMARY = "Lexical analyzer generator for Java"
>  AUTHOR = "Elliot Berk, A. Appel, C. Scott Ananian"
> +
> +JLEX_MAIN_FILENAME = "jlex-${PV}-Main.java"
>  LICENSE = "JLEX"
> -LIC_FILES_CHKSUM = "file://Main.java;beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
> +LIC_FILES_CHKSUM = "file://${JLEX_MAIN_FILENAME};beginline=148;endline=166;md5=9bf4a6a951053991db64f9d7330d648a"
>  
>  PACKAGE_ARCH = "${TUNE_PKGARCH}"
>  
> @@ -10,7 +12,7 @@ RDEPENDS_${PN}_class-native = ""
>  
>  inherit java-library
>  
> -SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java \
> +SRC_URI = "http://www.cs.princeton.edu/~appel/modern/java/JLex/Archive/${PV}/Main.java;downloadfilename=${JLEX_MAIN_FILENAME} \
>             file://jlex \
>            "
>  
> @@ -26,6 +28,7 @@ do_configure() {
>  
>  do_compile() {
>  	mkdir -p build
> +	cp ${JLEX_MAIN_FILENAME} Main.java
>  
>  	javac -d build Main.java
>  
> -- 
> 2.25.1
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85553): https://lists.openembedded.org/g/openembedded-devel/message/85553
Mute This Topic: https://lists.openembedded.org/mt/75056809/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-