1 |
commit: 768542eb1a03dd9bec85bb2a038a710bb0c4b214 |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 14:10:52 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 14:12:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=768542eb |
7 |
|
8 |
dev-java/stax2-api: ensure that module-info.class is generated |
9 |
|
10 |
Ensure that the resulting .jar contains the compiled module-info.java, |
11 |
i.e., module-info.class, by compiling with a JDK >= 9. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/841785 |
14 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
15 |
|
16 |
dev-java/stax2-api/stax2-api-4.2.1-r1.ebuild | 35 ++++++++++++++++++++++++++++ |
17 |
1 file changed, 35 insertions(+) |
18 |
|
19 |
diff --git a/dev-java/stax2-api/stax2-api-4.2.1-r1.ebuild b/dev-java/stax2-api/stax2-api-4.2.1-r1.ebuild |
20 |
new file mode 100644 |
21 |
index 000000000000..df7bba6a77cc |
22 |
--- /dev/null |
23 |
+++ b/dev-java/stax2-api/stax2-api-4.2.1-r1.ebuild |
24 |
@@ -0,0 +1,35 @@ |
25 |
+# Copyright 1999-2022 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+# Skeleton command: |
29 |
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/FasterXML/stax2-api/archive/refs/tags/stax2-api-4.2.1.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild stax2-api-4.2.1.ebuild |
30 |
+ |
31 |
+EAPI=8 |
32 |
+ |
33 |
+JAVA_PKG_IUSE="doc source" |
34 |
+MAVEN_ID="org.codehaus.woodstox:stax2-api:4.2.1" |
35 |
+ |
36 |
+inherit java-pkg-2 java-pkg-simple |
37 |
+ |
38 |
+DESCRIPTION="stax2 API is an extension to basic Stax 1.0 API" |
39 |
+HOMEPAGE="https://github.com/FasterXML/stax2-api" |
40 |
+SRC_URI="https://github.com/FasterXML/${PN}/archive/refs/tags/${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
45 |
+ |
46 |
+DEPEND=">=virtual/jdk-1.9:*" |
47 |
+RDEPEND=">=virtual/jre-1.8:*" |
48 |
+ |
49 |
+DOCS=( README.md release-notes/VERSION ) |
50 |
+ |
51 |
+S="${WORKDIR}/${PN}-${P}" |
52 |
+ |
53 |
+JAVA_SRC_DIR=( "src/main/java" "src/moditect" ) |
54 |
+JAVA_RESOURCE_DIRS="src/main/resources" |
55 |
+ |
56 |
+src_install() { |
57 |
+ default # https://bugs.gentoo.org/789582 |
58 |
+ java-pkg-simple_src_install |
59 |
+} |