commit:     07ebce7443d74ad797d1f644783dec60d46014c7
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  5 14:58:27 2021 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu Aug  5 15:00:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ebce74

dev-java/openjfx: do not strip / from swt_file_name.

double / in swt_file_name is between EPREFIX and JAVA_PKG_JARDEST.
Stripping the leading / confuses gradle in finding swt.jar.

The ultimate fix should be done in java-utils-2.eclass.

Reference: 
https://archives.gentoo.org/gentoo-dev/message/96db539ae412aab36491987d4e424dd3
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 dev-java/openjfx/openjfx-8.1000.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-java/openjfx/openjfx-8.1000.ebuild 
b/dev-java/openjfx/openjfx-8.1000.ebuild
index 4763fb1c16e..026a67b5e2e 100644
--- a/dev-java/openjfx/openjfx-8.1000.ebuild
+++ b/dev-java/openjfx/openjfx-8.1000.ebuild
@@ -130,7 +130,7 @@ src_prepare() {
        java-pkg_jar-from --build-only --into "${d}" antlr-3 antlr-tool.jar 
antlr-3.1.3.jar
        java-pkg_jar-from --build-only --into "${d}" antlr-3 antlr-runtime.jar 
antlr-runtime-3.1.3.jar
        java-pkg_jar-from --build-only --into "${d}" stringtemplate  
stringtemplate.jar stringtemplate-3.2.jar
-       sed -i "s#compile name: SWT_FILE_NAME#compile 
files(\"${swt_file_name#/}\")#" "${S}"/build.gradle || die
+       sed -i "s#compile name: SWT_FILE_NAME#compile 
files(\"${swt_file_name}\")#" "${S}"/build.gradle || die
 
        sed -i 's/-rpath/-rpath-link/g' 
modules/media/src/main/native/jfxmedia/projects/linux/Makefile || die
 }

Reply via email to