summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2023-09-04 16:31:34 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-02-11 13:12:26 +0100
commitffc489dda072e7963081c58def8cd716cfb53c23 (patch)
treed51c5f61a959eea8d9f6ad7148bf77632b3c0fc2 /dev-java
parentkernel-install.eclass: explicitly set kernel image to 644 (diff)
downloadgentoo-ffc489dda072e7963081c58def8cd716cfb53c23.tar.gz
gentoo-ffc489dda072e7963081c58def8cd716cfb53c23.tar.bz2
gentoo-ffc489dda072e7963081c58def8cd716cfb53c23.zip
dev-java/commons-compress: add 1.25.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/commons-compress/Manifest1
-rw-r--r--dev-java/commons-compress/commons-compress-1.25.0.ebuild110
-rw-r--r--dev-java/commons-compress/metadata.xml11
3 files changed, 118 insertions, 4 deletions
diff --git a/dev-java/commons-compress/Manifest b/dev-java/commons-compress/Manifest
index e433074b748e..d12369cb098f 100644
--- a/dev-java/commons-compress/Manifest
+++ b/dev-java/commons-compress/Manifest
@@ -1 +1,2 @@
DIST commons-compress-1.21-src.tar.gz 15165800 BLAKE2B 3fed32af039860c6b434c485f0c78939ed810a224a12680ddf1d9d6ed540f4e74530edd0e0077fd41af31404c296a607db912465cfd725c31446bc6fa7b8df8a SHA512 8041371b491057435ca62390e70b30031e4d21e80c37d9cb922fdffa794b56aee3b5d60d8241e4db0cecc28c82dfdaafbe52b2175e26062da169fec8efbb17e1
+DIST commons-compress-1.25.0-src.tar.gz 48385431 BLAKE2B d0ddf5ebc405355c771532dc64ddcacb6a8eb0053eb64a07890136b9f5a2ab2ae8dec33c64a80ee9d902b4c74295e80b1bf66178c19e19bfd0d4cd31acbbcc44 SHA512 58d9ed8160af2842fe4338ae265d591b9f96293f8997c420721e86f8c8ffce5b3a5dbc83b87b813ea68505b56cbddd02332540f0a4e01bdc7f7f36e357ba2b7a
diff --git a/dev-java/commons-compress/commons-compress-1.25.0.ebuild b/dev-java/commons-compress/commons-compress-1.25.0.ebuild
new file mode 100644
index 000000000000..7d48127292c2
--- /dev/null
+++ b/dev-java/commons-compress/commons-compress-1.25.0.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Not ready for running tests, https://bugs.gentoo.org/839681
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="org.apache.commons:commons-compress:1.24"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple verify-sig
+
+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
+# verify-sig? ( https://downloads.apache.org/commons/compress/source/${P}-src.tar.gz.asc )"
+S="${WORKDIR}/${P}-src"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+CP_DEPEND="
+ dev-java/asm:9
+ dev-java/brotli-dec:0
+ dev-java/xz-java:0
+ dev-java/zstd-jni:0
+"
+
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-11:*
+ dev-java/osgi-core:0"
+# test? (
+# dev-java/commons-io:1
+# dev-java/commons-lang:3.6
+# dev-java/felix-framework:0
+# dev-java/hamcrest:0
+# dev-java/javax-inject:0
+# dev-java/junit:5
+# dev-java/memoryfilesystem:0
+# dev-java/mockito:4
+# dev-java/mockito-junit-jupiter:4
+# dev-java/slf4j-api:0
+# )
+#"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+# BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-commons )"
+# VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/commons.apache.org.asc"
+
+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="
+ commons-io-1
+ commons-lang-3.6
+ felix-framework
+ javax-inject
+ junit-4
+ junit-5
+ hamcrest
+ memoryfilesystem
+ mockito-4
+ mockito-junit-jupiter-4
+ slf4j-api
+"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+# default
+ java-pkg-2_src_prepare
+ # 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
+)
diff --git a/dev-java/commons-compress/metadata.xml b/dev-java/commons-compress/metadata.xml
index 6021501589e0..add1db7ad802 100644
--- a/dev-java/commons-compress/metadata.xml
+++ b/dev-java/commons-compress/metadata.xml
@@ -1,8 +1,11 @@
<?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>
- <name>Java</name>
-</maintainer>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">apache/commons-compress</remote-id>
+ </upstream>
</pkgmetadata>