summaryrefslogtreecommitdiff
path: root/dev-java/commons-compress
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/commons-compress')
-rw-r--r--dev-java/commons-compress/Manifest2
-rw-r--r--dev-java/commons-compress/commons-compress-1.21-r1.ebuild121
2 files changed, 123 insertions, 0 deletions
diff --git a/dev-java/commons-compress/Manifest b/dev-java/commons-compress/Manifest
index ed3c6749043b..b25108c47ed1 100644
--- a/dev-java/commons-compress/Manifest
+++ b/dev-java/commons-compress/Manifest
@@ -1,4 +1,6 @@
AUX commons-compress-1.21-asm7+.patch 7037 BLAKE2B 49270e040492c413fb9f26ce81dde2e7594a02b48d4dfd68bfe977eefc9d41e21e585d1a0d2e56803d08d1af617f8c2d0e3f3d3b0cffa893bfc8d2d3c50b6d9d SHA512 6722a9fb119d72c7061d12b94452fac40eef63be7610eee81ddc115c346610e5e4caca0cbf659ec9e7ff1a58f9def4ebfef26476b915bc74299a1f984d2eb29c
DIST commons-compress-1.21-sources.tar.gz 15165800 BLAKE2B 3fed32af039860c6b434c485f0c78939ed810a224a12680ddf1d9d6ed540f4e74530edd0e0077fd41af31404c296a607db912465cfd725c31446bc6fa7b8df8a SHA512 8041371b491057435ca62390e70b30031e4d21e80c37d9cb922fdffa794b56aee3b5d60d8241e4db0cecc28c82dfdaafbe52b2175e26062da169fec8efbb17e1
+DIST commons-compress-1.21-src.tar.gz 15165800 BLAKE2B 3fed32af039860c6b434c485f0c78939ed810a224a12680ddf1d9d6ed540f4e74530edd0e0077fd41af31404c296a607db912465cfd725c31446bc6fa7b8df8a SHA512 8041371b491057435ca62390e70b30031e4d21e80c37d9cb922fdffa794b56aee3b5d60d8241e4db0cecc28c82dfdaafbe52b2175e26062da169fec8efbb17e1
+EBUILD commons-compress-1.21-r1.ebuild 4317 BLAKE2B 61a9348d45a6c8c6f7822079aa5f8185b46924d29ef15c014491d63a5aa1a2a5e4b822f9c410161196c71873072b5455ce8f9b6f3529656e04c1490cff82016b SHA512 496391fdcc5f31dee2769babf43ce6d00d81d15b5bcfa477ea30893dea3ca8bef03822fdf0df4185fbfbbb9a0b7e2528752ebfa3a540d9bb2ab86a1a23563fab
EBUILD commons-compress-1.21.ebuild 2369 BLAKE2B 64f03ba92636ab8f747552423d4745232649e7a13486c98737b80d330c8bf3e7473794262b50deca2c182ac09241a60c9ba1418fd1c1dbfdfd20f1eb413e8dd7 SHA512 650f15362bfcc8ff7376d39264d54c5bee8a16faa4052f06323faff97e4df5c3464af9f69c95bc8f172613cd75e2c0a733858f69a6963d7698e72fb39af3bd47
MISC metadata.xml 233 BLAKE2B 2b385ca77219f08b2874b3a4a91a0c836d3cb45ec44b05babb33d590c56ceb5337ecb93a8450a37f8e6bbf4cfc1455892e8142d22e0a1d527d40361e2dce350b SHA512 1acc975a7dc3344bc63282d652ca00d8245970b58353b4fd00f09a4859db3eaba2dcd85e1537d424b7174e4f9c01c2ffb10ec6d107b5c895c9ca20730666de7f
diff --git a/dev-java/commons-compress/commons-compress-1.21-r1.ebuild b/dev-java/commons-compress/commons-compress-1.21-r1.ebuild
new file mode 100644
index 000000000000..a5870641d1c2
--- /dev/null
+++ b/dev-java/commons-compress/commons-compress-1.21-r1.ebuild
@@ -0,0 +1,121 @@
+# 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://apache.miloslavbrada.cz//commons/compress/source/commons-compress-1.21-src.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~x86" --ebuild commons-compress-1.21.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="org.apache.commons:commons-compress:1.21"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Java API for working with archive files"
+HOMEPAGE="https://commons.apache.org/proper/commons-compress/"
+SRC_URI="mirror://apache/commons/compress/source/${P}-src.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# Common dependencies
+# POM: pom.xml
+# asm:asm:3.2 -> !!!groupId-not-found!!!
+# com.github.luben:zstd-jni:1.5.0-2 -> >=dev-java/zstd-jni-1.5.0.5:0
+# org.brotli:dec:0.1.2 -> >=dev-java/brotli-dec-0.1.2:0
+# org.tukaani:xz:1.9 -> >=dev-java/xz-java-1.9:0
+
+CP_DEPEND="
+ dev-java/asm:9
+ dev-java/brotli-dec:0
+ dev-java/xz-java:0
+ dev-java/zstd-jni:0
+"
+
+# Compile dependencies
+# POM: pom.xml
+# org.osgi:osgi.core:6.0.0 -> >=dev-java/osgi-core-8.0.0:0
+# POM: pom.xml
+# test? com.github.marschall:memoryfilesystem:2.1.0 -> >=dev-java/memoryfilesystem-2.3.0:0
+# test? javax.inject:javax.inject:1 -> >=dev-java/javax-inject-1:0
+# test? junit:junit:4.13.2 -> >=dev-java/junit-4.13.2:4
+# test? org.apache.felix:org.apache.felix.framework:7.0.0 -> >=dev-java/felix-framework-7.0.5:0
+# test? org.hamcrest:hamcrest:2.2 -> >=dev-java/hamcrest-2.2:0
+# test? org.mockito:mockito-core:3.11.1 -> >=dev-java/mockito-4.6.1:4
+# test? org.ops4j.pax.exam:pax-exam-cm:4.13.1 -> !!!groupId-not-found!!!
+# test? org.ops4j.pax.exam:pax-exam-container-native:4.13.1 -> !!!groupId-not-found!!!
+# test? org.ops4j.pax.exam:pax-exam-junit4:4.13.1 -> !!!groupId-not-found!!!
+# test? org.ops4j.pax.exam:pax-exam-link-mvn:4.13.1 -> !!!groupId-not-found!!!
+# test? org.slf4j:slf4j-api:1.7.30 -> >=dev-java/slf4j-api-1.7.36:0
+
+DEPEND="
+ >=virtual/jdk-11:*
+ ${CP_DEPEND}
+ dev-java/osgi-core:0
+ test? (
+ dev-java/felix-framework:0
+ dev-java/hamcrest:0
+ dev-java/javax-inject:0
+ dev-java/memoryfilesystem:0
+ dev-java/mockito:4
+ dev-java/slf4j-api:0
+ )
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}"
+
+S="${WORKDIR}/${P}-src"
+
+PATCHES=(
+ "${FILESDIR}/${P}-asm7+.patch"
+)
+
+JAVA_AUTOMATIC_MODULE_NAME="org.apache.commons.compress"
+JAVA_CLASSPATH_EXTRA="osgi-core"
+JAVA_ENCODING="iso-8859-1"
+JAVA_MAIN_CLASS="org.apache.commons.compress.archivers.Lister"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="memoryfilesystem,javax-inject,junit-4,felix-framework,hamcrest,mockito-4,slf4j-api"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+ default
+ # error: package org.ops4j.pax.exam does not exist
+ # removing it costs 2 tests
+ rm src/test/java/org/apache/commons/compress/OsgiITest.java || die
+
+ # java.io.FileNotFoundException: couldn't find zstandard.testdata.zst
+ # pom.xml lines 420-422
+ tar xf src/test/resources/zstd-tests.tar \
+ -C src/test/resources || die "cannot unpack zstd-tests.tar"
+
+ # pom.xml lines 518-520
+ tar xjf src/test/resources/zip64support.tar.bz2 \
+ -C src/test/resources || die "cannot unpack zip64support.tar.bz2"
+
+ JAVA_TEST_EXTRA_ARGS=( -Djava.library.path="${EPREFIX}/usr/$(get_libdir)/zstd-jni/" )
+}
+
+JAVA_TEST_EXCLUDES=(
+ # No runnable methods
+ org.apache.commons.compress.archivers.TestArchiveStreamProvider
+ org.apache.commons.compress.compressors.TestCompressorStreamProvider
+
+ # fails without useful message
+ org.apache.commons.compress.compressors.DetectCompressorTestCase # has 8 tests
+
+ # These tests pass but they prevent printing test messages::
+# org.apache.commons.compress.compressors.pack200.Pack200UtilsTest # has 2 tests
+# org.apache.commons.compress.compressors.FramedSnappyTestCase # has 5 tests
+# org.apache.commons.compress.compressors.XZTestCase # has 4 tests
+# org.apache.commons.compress.compressors.Pack200TestCase # has 15 tests
+# org.apache.commons.compress.harmony.pack200.tests.PackingOptionsTest # has 12 tests
+# org.apache.commons.compress.harmony.pack200.tests.ArchiveTest # has 9 tests
+# org.apache.commons.compress.harmony.unpack200.tests.ArchiveTest # has 13 tests
+)