summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-07-07 14:23:51 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2023-03-21 07:14:00 +0100
commit0d062b642e4b99219dd6f44187957bb8e034d0aa (patch)
tree22c9e59150a7e02f1cc582c4841080a69f7deaae /dev-java/jaxb-runtime
parentdev-java/txw2: new package, add 2.3.8 (diff)
downloadgentoo-0d062b642e4b99219dd6f44187957bb8e034d0aa.tar.gz
gentoo-0d062b642e4b99219dd6f44187957bb8e034d0aa.tar.bz2
gentoo-0d062b642e4b99219dd6f44187957bb8e034d0aa.zip
dev-java/jaxb-runtime: add 2.3.8
Skipped due to https://bugs.gentoo.org/900433 src/main/java-mr/9/com/sun/xml/bind/StackHelper.java which should have generated META-INF/versions/9/com/sun/xml/bind/StackHelper.class Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jaxb-runtime')
-rw-r--r--dev-java/jaxb-runtime/Manifest1
-rw-r--r--dev-java/jaxb-runtime/jaxb-runtime-2.3.8.ebuild65
-rw-r--r--dev-java/jaxb-runtime/metadata.xml3
3 files changed, 69 insertions, 0 deletions
diff --git a/dev-java/jaxb-runtime/Manifest b/dev-java/jaxb-runtime/Manifest
index 3f6b074dab8d..b5ce05d21247 100644
--- a/dev-java/jaxb-runtime/Manifest
+++ b/dev-java/jaxb-runtime/Manifest
@@ -1 +1,2 @@
+DIST jaxb-ri-2.3.8.tar.gz 1734411 BLAKE2B e60a7f78f2bfaf23cc0ce6727ee1b1611facdeebd5b456c207260447a508674dcbf934d2c6343cfbb58b93adf3352c8145caa2a8c77e264ae2403351527ff96d SHA512 73fda68e8d936b681d53ec72153cec0f7608517d0f037b4f140e4fd48e26f3e03a88f5b34bb635d0e6c7701121befd7d18a98aebd019a663e08ed9667a39c535
DIST jaxb-ri-4.0.0.tar.gz 1739184 BLAKE2B a85a12fdca0b6eff8664894d65e2f82d30491e20050fde2ca828fa3c2c79ce2e158fca5ce6d0ae2cb2a00859abc0c9e9d49321c0943b862fd603a9e732f29dc4 SHA512 766a58d5107a88c19a99014b737b7b14a510b928dd26991adfe902073614923690c1e5a231834ec4a200a10adf9505b27179b8d84cf09dbb09292341c328e743
diff --git a/dev-java/jaxb-runtime/jaxb-runtime-2.3.8.ebuild b/dev-java/jaxb-runtime/jaxb-runtime-2.3.8.ebuild
new file mode 100644
index 000000000000..33c8c739e864
--- /dev/null
+++ b/dev-java/jaxb-runtime/jaxb-runtime-2.3.8.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.glassfish.jaxb:jaxb-runtime:${PV}"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="JAXB (JSR 222) Reference Implementation"
+HOMEPAGE="https://eclipse-ee4j.github.io/jaxb-ri/"
+SRC_URI="https://github.com/eclipse-ee4j/jaxb-ri/archive/${PV}-RI.tar.gz -> jaxb-ri-${PV}.tar.gz"
+S="${WORKDIR}/jaxb-ri-${PV}-RI/jaxb-ri/runtime/impl"
+
+LICENSE="EPL-1.0"
+SLOT="2"
+KEYWORDS="~amd64"
+
+CP_DEPEND="
+ dev-java/fastinfoset:0
+ dev-java/istack-commons-runtime:3
+ dev-java/jaxb-api:2
+ dev-java/jaxb-stax-ex:1
+ ~dev-java/txw2-${PV}:2
+"
+
+DEPEND="
+ >=virtual/jdk-11:*
+ ${CP_DEPEND}
+ >=dev-java/jakarta-activation-api-1.2.2:1
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}
+ >=dev-java/jakarta-activation-1.2.2:1
+"
+
+JAVA_CLASSPATH_EXTRA="jakarta-activation-api-1"
+JAVA_RESOURCE_DIRS="src/main/resources"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ # Run this test separately as it prevents a reasonable test summary
+ JAVA_TEST_RUN_ONLY="com.sun.xml.bind.v2.schemagen.XmlSchemaGeneratorTest"
+ java-pkg-simple_src_test
+
+ # The default test selection of java-pkg-simple would omit
+ # "com.sun.xml.bind.v2.schemagen.MarshallingAbstractTest"
+ pushd src/test/java || die
+ local JAVA_TEST_RUN_ONLY=$(find * \
+ -type f \
+ -name "*Test.java" \
+ ! -name "XmlSchemaGeneratorTest.java" \
+ )
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
+ popd
+ java-pkg-simple_src_test
+}
diff --git a/dev-java/jaxb-runtime/metadata.xml b/dev-java/jaxb-runtime/metadata.xml
index 75321cfb5598..dbb1a70c5a43 100644
--- a/dev-java/jaxb-runtime/metadata.xml
+++ b/dev-java/jaxb-runtime/metadata.xml
@@ -4,4 +4,7 @@
<maintainer type="project">
<email>java@gentoo.org</email>
</maintainer>
+ <upstream>
+ <remote-id type="github">eclipse-ee4j/jaxb-ri</remote-id>
+ </upstream>
</pkgmetadata>