From 286401c631ff8ea6ae71d7272fcf56b98b42ee42 Mon Sep 17 00:00:00 2001 From: Miroslav Šulc Date: Fri, 9 Jul 2021 14:54:38 +0200 Subject: dev-java/jakarta-activation: cleanup + comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Miroslav Šulc --- .../jakarta-activation/jakarta-activation-1.2.2.ebuild | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'dev-java') diff --git a/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild b/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild index a4376b8ad43d..6c2ae11e3b08 100644 --- a/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild +++ b/dev-java/jakarta-activation/jakarta-activation-1.2.2.ebuild @@ -43,13 +43,11 @@ src_prepare() { src_compile() { java-pkg-simple_src_compile - # we remove API classes from the api - zip -d ${PN}.jar "javax/*" || die "Failed to remove implementation classes" -} -src_install() { - default - # we remove the API sources so that they don't land in sources -# rm -fr ${JAVA_SRC_DIR}/javax || "Failed to delete implementation sources" - java-pkg-simple_src_install + # we remove API classes from the jar file + # removing javax sources in src_prepare does not work - compilation fails with: + # src/main/java/module-info.java:12: error: package is empty or does not exist: javax.activation + # exports javax.activation; + + zip -d ${PN}.jar "javax/*" || die "Failed to remove API classes" } -- cgit v1.2.3-65-gdbad