diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-05-09 11:13:18 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-05-10 08:33:59 +0200 |
commit | 8b6ac60816f1486d8d581f847cfeed17d4f1d3c4 (patch) | |
tree | 35579013e306874c79fc402875d568c969309598 /dev-java/woodstox-core | |
parent | dev-java/conversant-disruptor: virtual/jdk-1.8:*" -> -11.* (diff) | |
download | gentoo-8b6ac60816f1486d8d581f847cfeed17d4f1d3c4.tar.gz gentoo-8b6ac60816f1486d8d581f847cfeed17d4f1d3c4.tar.bz2 gentoo-8b6ac60816f1486d8d581f847cfeed17d4f1d3c4.zip |
dev-java/woodstox-core: virtual/jdk-1.8:*" -> -11.*
Bug: https://bugs.gentoo.org/843185
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/woodstox-core')
-rw-r--r-- | dev-java/woodstox-core/woodstox-core-6.2.8-r1.ebuild | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/dev-java/woodstox-core/woodstox-core-6.2.8-r1.ebuild b/dev-java/woodstox-core/woodstox-core-6.2.8-r1.ebuild new file mode 100644 index 000000000000..53a600676959 --- /dev/null +++ b/dev-java/woodstox-core/woodstox-core-6.2.8-r1.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/FasterXML/woodstox/archive/woodstox-core-6.2.8.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~ppc64 ~x86" --ebuild woodstox-core-6.2.8.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.fasterxml.woodstox:woodstox-core:6.2.8" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An XML processor that implements Stax (JSR-173), SAX2 and Stax2 APIs" +HOMEPAGE="https://github.com/FasterXML/woodstox" +SRC_URI="https://github.com/FasterXML/woodstox/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ppc64 x86" + +# Common dependencies +# POM: pom.xml +# net.java.dev.msv:msv-core:2013.6.1 -> >=dev-java/msv-20130601:0 +# net.java.dev.msv:xsdlib:2013.6.1 -> >=dev-java/xsdlib-20090415:0 +# org.codehaus.woodstox:stax2-api:4.2.1 -> >=dev-java/stax2-api-4.2.1:0 +# relaxngDatatype:relaxngDatatype:20020414 -> !!!groupId-not-found!!! + +CP_DEPEND=" + dev-java/msv:0 + dev-java/relaxng-datatype:0 + dev-java/stax2-api:0 + dev-java/xsdlib:0 +" + +# Compile dependencies +# POM: pom.xml +# org.apache.felix:org.osgi.core:1.4.0 -> !!!groupId-not-found!!! +# POM: pom.xml +# test? junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 + +DEPEND="${CP_DEPEND} + >=virtual/jdk-11:* + dev-java/osgi-core-api:0" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +DOCS=( {README,SECURITY}.md release-notes/{CREDITS,VERSION} ) + +S="${WORKDIR}/woodstox-${P}" + +JAVA_CLASSPATH_EXTRA="osgi-core-api" +JAVA_SRC_DIR=( "src/main/java" "src/moditect" ) +JAVA_RESOURCE_DIRS="src/main/resources" + +JAVA_TEST_GENTOO_CLASSPATH="junit-4" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +JAVA_TEST_EXCLUDES=( + # Upstream: Tests run: 864, Failures: 0, Errors: 0, Skipped: 0 + # "No tests found in ..." + wstxtest.vstream.BaseValidationTest + wstxtest.BaseWstxTest + stax2.vstream.BaseStax2ValidationTest + stax2.BaseStax2Test + stax2.wstream.BaseWriterTest + org.codehaus.stax.test.BaseStaxTest + org.codehaus.stax.test.wstream.BaseWriterTest + org.codehaus.stax.test.stream.BaseStreamTest + # "... has no public constructor" + wstxtest.stream.BaseStreamTest + wstxtest.wstream.BaseWriterTest + stax2.vwstream.BaseOutputTest + org.codehaus.stax.test.vstream.BaseVStreamTest + org.codehaus.stax.test.evt.BaseEventTest + # Upstream does not run these: + failing.TestBasicSax + failing.TestExtLocationInfo91 + failing.TestRelaxNG + failing.TestW3CDefaultValues + failing.TestW3CDefaultValues + failing.TestW3CSchemaComplexTypes + failing.TestW3CSchemaTypes + failing.TestW3CSchemaTypes +) + +src_prepare() { + default + + # We do not bundle any shaded (aka relocated) classes. + sed -e '/com.ctc.wstx.shaded.msv/d' \ + -e '/org.codehaus.stax2.validation/d' \ + -i "src/moditect/module-info.java" || die +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} |