diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-03-03 15:05:21 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-03-06 08:23:25 +0100 |
commit | 0c6b8e1cfbc75c395e9a0ea0a80ff67f68b9017d (patch) | |
tree | 13a2a5161cb995884368f4ace68776787bb7596e /dev-java/shrinkwrap-impl-base | |
parent | dev-java/shrinkwrap-spi: new package, add 1.2.6 (diff) | |
download | gentoo-0c6b8e1cfbc75c395e9a0ea0a80ff67f68b9017d.tar.gz gentoo-0c6b8e1cfbc75c395e9a0ea0a80ff67f68b9017d.tar.bz2 gentoo-0c6b8e1cfbc75c395e9a0ea0a80ff67f68b9017d.zip |
dev-java/shrinkwrap-impl-base: new package, add 1.2.6
Closes: https://bugs.gentoo.org/899580
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/29921
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/shrinkwrap-impl-base')
-rw-r--r-- | dev-java/shrinkwrap-impl-base/Manifest | 1 | ||||
-rw-r--r-- | dev-java/shrinkwrap-impl-base/metadata.xml | 10 | ||||
-rw-r--r-- | dev-java/shrinkwrap-impl-base/shrinkwrap-impl-base-1.2.6.ebuild | 68 |
3 files changed, 79 insertions, 0 deletions
diff --git a/dev-java/shrinkwrap-impl-base/Manifest b/dev-java/shrinkwrap-impl-base/Manifest new file mode 100644 index 000000000000..34653394c3c9 --- /dev/null +++ b/dev-java/shrinkwrap-impl-base/Manifest @@ -0,0 +1 @@ +DIST shrinkwrap-1.2.6.tar.gz 987090 BLAKE2B 0c837b6fae6c3e9c7155b6ddf1923b14320d39ee3fd45af5436f967535e8c3ab290b62b6ca67aafc146558466e8c161fa6527055e48a55b5456fce728c5618f9 SHA512 8d91e265f60f1ead931166da836106412ecb861112a65e4976f63df0e351d7cb2d1f64bc2633c5df1052eb39541906ac17d6c886d7d25cb1600799d17637a58c diff --git a/dev-java/shrinkwrap-impl-base/metadata.xml b/dev-java/shrinkwrap-impl-base/metadata.xml new file mode 100644 index 000000000000..ea5416922116 --- /dev/null +++ b/dev-java/shrinkwrap-impl-base/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">shrinkwrap/shrinkwrap</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/shrinkwrap-impl-base/shrinkwrap-impl-base-1.2.6.ebuild b/dev-java/shrinkwrap-impl-base/shrinkwrap-impl-base-1.2.6.ebuild new file mode 100644 index 000000000000..c03ecf1ebc6e --- /dev/null +++ b/dev-java/shrinkwrap-impl-base/shrinkwrap-impl-base-1.2.6.ebuild @@ -0,0 +1,68 @@ +# 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.jboss.shrinkwrap:shrinkwrap-impl-base:1.2.6" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Common Base for Implementations of the ShrinkWrap Project" +HOMEPAGE="https://arquillian.org/modules/shrinkwrap-shrinkwrap/" +SRC_URI="https://github.com/shrinkwrap/shrinkwrap/archive/${PV}.tar.gz -> shrinkwrap-${PV}.tar.gz" +S="${WORKDIR}/shrinkwrap-${PV}/impl-base" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/jakarta-activation:1 + ~dev-java/shrinkwrap-api-${PV}:0 + ~dev-java/shrinkwrap-spi-${PV}:0 +" + +# Restrict to jdk:1.8 - otherwise there are 8 test failures: +# java.lang.IllegalArgumentException: +# /java.base/java/lang/String.class was not found in any available ClassLoaders +# testAddResourceStringTargetResourceFromJar(DynamicContainerTestBase.java:599) +# testAddManifestStringTargetResourceFromJar(DynamicContainerTestBase.java:586) +DEPEND=" + ${CP_DEPEND} + virtual/jdk:1.8 +" + +RDEPEND=" + ${CP_DEPEND} + >=virtual/jre-1.8:* +" + +JAVA_RESOURCE_DIRS="src/main/resources" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_EXCLUDES=( + org.jboss.shrinkwrap.impl.base.test.dummy.DummyInterfaceForTest + org.jboss.shrinkwrap.impl.base.test.dummy.DummyClassForTest + org.jboss.shrinkwrap.impl.base.TestSecurityActions + org.jboss.shrinkwrap.impl.base.TestIOUtil + org.jboss.shrinkwrap.impl.base.asset.DirectoryAssetTestCase +) +JAVA_TEST_GENTOO_CLASSPATH="junit-4,shrinkwrap-api,shrinkwrap-spi" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + # 1) importFromNonZipFileThrowsException(org.jboss.shrinkwrap.impl.base.ShrinkWrapTestCase) + # java.lang.Exception: Unexpected exception, expected<java.lang.IllegalArgumentException> + # but was<java.lang.NullPointerException> + # Caused by: java.lang.NullPointerException + # at org.jboss.shrinkwrap.impl.base.ShrinkWrapTestCase.importFromNonZipFileThrowsException(ShrinkWrapTestCase.java:373) + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/importFromNonZipFileThrowsException()/i @Ignore' \ + -i src/test/java/org/jboss/shrinkwrap/impl/base/ShrinkWrapTestCase.java || die + + java-pkg-simple_src_test +} |