1 |
commit: a0f97f973857f205b596ba2bb660326dbb1a7d68 |
2 |
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net> |
3 |
AuthorDate: Mon Sep 5 09:24:51 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 21 14:02:39 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0f97f97 |
7 |
|
8 |
dev-java/jackson-dataformat-xml: add 2.13.4 |
9 |
|
10 |
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/27150 |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
dev-java/jackson-dataformat-xml/Manifest | 1 + |
15 |
.../jackson-dataformat-xml-2.13.4.ebuild | 105 +++++++++++++++++++++ |
16 |
2 files changed, 106 insertions(+) |
17 |
|
18 |
diff --git a/dev-java/jackson-dataformat-xml/Manifest b/dev-java/jackson-dataformat-xml/Manifest |
19 |
index c3e4606939c7..0ac67954bc80 100644 |
20 |
--- a/dev-java/jackson-dataformat-xml/Manifest |
21 |
+++ b/dev-java/jackson-dataformat-xml/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST jackson-dataformat-xml-2.13.3.tar.gz 3201473 BLAKE2B 90f6b98325e3ae43e7ba560b077ee8fc8e5ad5004fd23b7c10a2c2a3ec7a674b700b80766690d2442820f87698fa5e33c440c2aa12cd521b7566e78eca50bbaa SHA512 52e26e1a398d90f75ef61d074ed1d149b9f13555f1878703b3148ed008f29f8802586a6020f3c1427a748a73b9a4ca56d86ffd769cf6cb7317a69e039345eefa |
24 |
+DIST jackson-dataformat-xml-2.13.4.tar.gz 3203115 BLAKE2B c959c878c6905de9fee73fab87381296d30146ab755765e715f49f141ea80d3843116752710e78f270c96abb0a2dd784fff01769ce68c126b3c7bd5acbe1a880 SHA512 8b6c76d8b324ceffece806f2de1352e2b2b557d64f51885bec8e60033c254e9c5a9adad29c07b6a5aaa77d535245ad581f67768a62af7a44160221aae62115e6 |
25 |
|
26 |
diff --git a/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.13.4.ebuild b/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.13.4.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..f7c722ff3c0b |
29 |
--- /dev/null |
30 |
+++ b/dev-java/jackson-dataformat-xml/jackson-dataformat-xml-2.13.4.ebuild |
31 |
@@ -0,0 +1,105 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+# Skeleton command: |
36 |
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/FasterXML/jackson-dataformat-xml/archive/jackson-dataformat-xml-2.13.4.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild jackson-dataformat-xml-2.13.4.ebuild |
37 |
+ |
38 |
+EAPI=8 |
39 |
+ |
40 |
+JAVA_PKG_IUSE="doc source test" |
41 |
+MAVEN_ID="com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.4" |
42 |
+JAVA_TESTING_FRAMEWORKS="junit-4" |
43 |
+ |
44 |
+inherit java-pkg-2 java-pkg-simple |
45 |
+ |
46 |
+DESCRIPTION="Data format extension for Jackson" |
47 |
+HOMEPAGE="https://github.com/FasterXML/jackson-dataformat-xml" |
48 |
+SRC_URI="https://github.com/FasterXML/${PN}/archive/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
53 |
+ |
54 |
+# Common dependencies |
55 |
+# POM: pom.xml |
56 |
+# com.fasterxml.jackson.core:jackson-annotations:2.13.4 -> >=dev-java/jackson-annotations-2.13.4:2 |
57 |
+# com.fasterxml.jackson.core:jackson-core:2.13.4 -> >=dev-java/jackson-core-2.13.4:0 |
58 |
+# com.fasterxml.jackson.core:jackson-databind:2.13.4 -> >=dev-java/jackson-databind-2.13.4:0 |
59 |
+# com.fasterxml.woodstox:woodstox-core:6.3.1 -> >=dev-java/woodstox-core-6.3.1:0 |
60 |
+# org.codehaus.woodstox:stax2-api:4.2.1 -> >=dev-java/stax2-api-4.2.1:0 |
61 |
+ |
62 |
+CP_DEPEND=" |
63 |
+ ~dev-java/jackson-annotations-${PV}:2 |
64 |
+ ~dev-java/jackson-core-${PV}:0 |
65 |
+ ~dev-java/jackson-databind-${PV}:0 |
66 |
+ >=dev-java/stax2-api-4.2.1-r1:0 |
67 |
+ dev-java/woodstox-core:0 |
68 |
+" |
69 |
+ |
70 |
+# Compile dependencies |
71 |
+# POM: pom.xml |
72 |
+# test? com.fasterxml.jackson.module:jackson-module-jakarta-xmlbind-annotations:2.13.4 -> >=dev-java/jackson-module-jakarta-xmlbind-2.13.4:0 |
73 |
+# test? com.sun.xml.stream:sjsxp:1.0.2 -> >=dev-java/sjsxp-1.0.2:0 |
74 |
+# test? jakarta.xml.bind:jakarta.xml.bind-api:3.0.1 -> >=dev-java/jaxb-api-3.0.1:3 |
75 |
+# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 |
76 |
+ |
77 |
+DEPEND=" |
78 |
+ >=virtual/jdk-11:* |
79 |
+ ${CP_DEPEND} |
80 |
+ test? ( |
81 |
+ ~dev-java/jackson-module-jakarta-xmlbind-${PV}:0 |
82 |
+ dev-java/jaxb-api:4 |
83 |
+ dev-java/sjsxp:0 |
84 |
+ ) |
85 |
+" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ >=virtual/jre-1.8:* |
89 |
+ ${CP_DEPEND}" |
90 |
+ |
91 |
+DOCS=( {README,SECURITY}.md release-notes/{CREDITS,VERSION}-2.x ) |
92 |
+ |
93 |
+S="${WORKDIR}/${PN}-${P}" |
94 |
+ |
95 |
+JAVA_SRC_DIR=( "src/main/java" "src/moditect" ) |
96 |
+JAVA_RESOURCE_DIRS="src/main/resources" |
97 |
+ |
98 |
+JAVA_TEST_GENTOO_CLASSPATH="jackson-module-jakarta-xmlbind,sjsxp,jaxb-api-4,junit-4" |
99 |
+JAVA_TEST_SRC_DIR="src/test/java" |
100 |
+JAVA_TEST_RESOURCE_DIRS="src/test/resources" |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ java-pkg-2_src_prepare |
104 |
+ |
105 |
+ sed -e 's:@package@:com.fasterxml.jackson.dataformat.xml:g' \ |
106 |
+ -e "s:@projectversion@:${PV}:g" \ |
107 |
+ -e 's:@projectgroupid@:com.fasterxml.jackson.dataformat:g' \ |
108 |
+ -e "s:@projectartifactid@:${PN}:g" \ |
109 |
+ "${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/xml/PackageVersion.java.in" \ |
110 |
+ > "${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/xml/PackageVersion.java" || die |
111 |
+} |
112 |
+ |
113 |
+src_test() { |
114 |
+ pushd src/test/java || die |
115 |
+ local JAVA_TEST_RUN_ONLY=$(find * -name "*Test*.java" \ |
116 |
+ ! -wholename "**/failing**/*.java" \ |
117 |
+ ! -name "*TestBase.java" ) |
118 |
+ popd |
119 |
+ |
120 |
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" |
121 |
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" |
122 |
+ |
123 |
+ # The same failure under openjdk-17 occurs upstream (running 'mvn test') |
124 |
+ |
125 |
+ # 1) testCollection(com.fasterxml.jackson.dataformat.xml.lists.ListAsObjectTest) |
126 |
+ # com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Failed to call `setAccess()` on Field 'first' due to |
127 |
+ # `java.lang.reflect.InaccessibleObjectException`, problem: Unable to make field transient java.util.LinkedList$Node |
128 |
+ # java.util.LinkedList.first accessible: module java.base does not "opens java.util" to unnamed module @42bb2aee |
129 |
+ |
130 |
+ local vm_version="$(java-config -g PROVIDES_VERSION)" |
131 |
+ if ver_test "${vm_version}" -ge "17" ; then |
132 |
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.util=ALL-UNNAMED ) |
133 |
+ fi |
134 |
+ |
135 |
+ java-pkg-simple_src_test |
136 |
+} |