commit:     e93b8d82f35c737ac42a255de4fe8e52528d4d18
Author:     Zhang Zongyu <zzy2529420793 <AT> gmail <DOT> com>
AuthorDate: Sun Aug 30 16:44:53 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Aug 30 16:53:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93b8d82

app-portage/java-ebuilder: update ebuild for ${PV}==9999

Signed-off-by: Zhang Zongyu <zzy2529420793 <AT> gmail.com>
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 .../java-ebuilder/java-ebuilder-9999.ebuild        | 31 +++++++---------------
 1 file changed, 9 insertions(+), 22 deletions(-)

diff --git a/app-portage/java-ebuilder/java-ebuilder-9999.ebuild 
b/app-portage/java-ebuilder/java-ebuilder-9999.ebuild
index 7a78207628c..32f44a7de32 100644
--- a/app-portage/java-ebuilder/java-ebuilder-9999.ebuild
+++ b/app-portage/java-ebuilder/java-ebuilder-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2016-2019 Gentoo Authors
+# Copyright 2016-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -27,32 +27,18 @@ RDEPEND=">=virtual/jre-1.8
 S="${WORKDIR}/${P}"
 
 JAVA_SRC_DIR="src/main/java"
-JAVA_ADDRES_DIRS="src/main/resources"
+JAVA_RESOURCE_DIRS="src/main/resources"
 
-MAIN_CLASS="org.gentoo.java.ebuilder.Main"
+JAVA_LAUNCHER_FILENAME=${PN}
+JAVA_MAIN_CLASS="org.gentoo.java.ebuilder.Main"
 
 src_prepare() {
        default
-
-       local base_dir="target/classes/"
-
-       [[ ! -d "${base_dir}" ]] &&mkdir -p "${base_dir}META-INF"
-       echo "Manifest-Version: 1.0
-Main-Class: ${MAIN_CLASS}" \
-               >> "${base_dir}META-INF/MANIFEST.MF"
-
-       hprefixify scripts/{{tree,meta}.sh,movl} java-ebuilder.conf
-}
-
-src_compile() {
-       java-pkg-simple_src_compile
-
-       jar uf ${JAVA_JAR_FILENAME} -C ${JAVA_ADDRES_DIRS} usage.txt || die 
"Failed to add resources"
+       hprefixify scripts/{bin/*,resources/Makefiles/*,movl} java-ebuilder.conf
 }
 
 src_install() {
        java-pkg-simple_src_install
-       java-pkg_dolauncher ${PN} --main ${MAIN_CLASS}
 
        insinto /var/lib/${PN}
        doins -r maven
@@ -61,9 +47,10 @@ src_install() {
 
        dodoc README maven.conf
 
-       exeinto /usr/lib/${PN}
-       doexe scripts/{tree,meta}.sh
-
+       exeinto /usr/lib/${PN}/bin
+       doexe scripts/bin/*
+       insinto /usr/lib/${PN}
+       doins -r scripts/resources/*
        dobin scripts/movl
 
        insinto /etc

Reply via email to