1 |
commit: 45bbfeed8b0f88ab12ee33d90e386dfca1e9357c |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 24 17:32:42 2021 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 24 17:32:56 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45bbfeed |
7 |
|
8 |
dev-java/jakarta-activation-api: changed to slot 2, finalized |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
.../jakarta-activation-api-2.0.1-r1.ebuild | 17 ++++++++++++++++- |
14 |
1 file changed, 16 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-java/jakarta-activation-api/jakarta-activation-api-2.0.1-r1.ebuild b/dev-java/jakarta-activation-api/jakarta-activation-api-2.0.1-r1.ebuild |
17 |
index 2029f27d62b..9537b85bd9f 100644 |
18 |
--- a/dev-java/jakarta-activation-api/jakarta-activation-api-2.0.1-r1.ebuild |
19 |
+++ b/dev-java/jakarta-activation-api/jakarta-activation-api-2.0.1-r1.ebuild |
20 |
@@ -16,11 +16,12 @@ HOMEPAGE="https://eclipse-ee4j.github.io/jaf/" |
21 |
SRC_URI="https://github.com/eclipse-ee4j/jaf/archive/refs/tags/${PV}.tar.gz -> jakarta-activation-${PV}.tar.gz" |
22 |
|
23 |
LICENSE="EPL-1.0" |
24 |
-SLOT="0" |
25 |
+SLOT="2" |
26 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
27 |
|
28 |
DEPEND=">=virtual/jdk-1.8:*" |
29 |
RDEPEND=">=virtual/jre-1.8:*" |
30 |
+BDEPEND="app-arch/zip" |
31 |
|
32 |
DOCS=( ../{CONTRIBUTING,LICENSE,NOTICE,README}.md ) |
33 |
|
34 |
@@ -29,7 +30,21 @@ S="${WORKDIR}/jaf-${PV}/activation" |
35 |
JAVA_SRC_DIR="src/main/java" |
36 |
JAVA_RESOURCE_DIRS="src/main/resources" |
37 |
|
38 |
+src_prepare() { |
39 |
+ default |
40 |
+ # these files are not present in the upstream jar |
41 |
+ find ${JAVA_RESOURCE_DIRS} -name "*.default" -delete || die "Failed to delete *.default files" |
42 |
+} |
43 |
+ |
44 |
+src_compile() { |
45 |
+ java-pkg-simple_src_compile |
46 |
+ # we remove implementation classes from the api |
47 |
+ zip -d ${PN}.jar "com/*" || die "Failed to remove implementation classes" |
48 |
+} |
49 |
+ |
50 |
src_install() { |
51 |
default |
52 |
+ # we remove the implementation sources so that they don't land in sources |
53 |
+ rm -fr ${JAVA_SRC_DIR}/com || "Failed to delete implementation sources" |
54 |
java-pkg-simple_src_install |
55 |
} |