summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-07-29 19:18:39 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-10-15 09:38:07 +0200
commit9ff631631587aced659395130103d26e11487067 (patch)
tree0dae1e6b6641d11ce2d755665e3a2cd3a792a31b /dev-java
parentwww-servers/tomcat: add 11.0.0 (diff)
downloadgentoo-9ff631631587aced659395130103d26e11487067.tar.gz
gentoo-9ff631631587aced659395130103d26e11487067.tar.bz2
gentoo-9ff631631587aced659395130103d26e11487067.zip
dev-java/xz-java: add 1.10
Due to bug #900767 this package could fail with "Incorrect bytecode found" if JAVA_PKG_STRICT=true is set in make.conf Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38836/commits/b89e275bdf35b56ab9b78eda3d612a627ebce1c8 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/xz-java/Manifest2
-rw-r--r--dev-java/xz-java/xz-java-1.10.ebuild58
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-java/xz-java/Manifest b/dev-java/xz-java/Manifest
index 56fcf0e06d10..44e2647ebc70 100644
--- a/dev-java/xz-java/Manifest
+++ b/dev-java/xz-java/Manifest
@@ -1,2 +1,4 @@
+DIST xz-java-1.10.zip 179204 BLAKE2B ffe19ed1de7370879bb5c3c3f777e367fff9868c5113a2920c02409e7ab7a325cd03d30ddd2bcc95e1509d2f38723e51eaf21b4aa767792e7a3c9850cd658e36 SHA512 be293545b9510906334ecbc092834599b36abe7498836ab111726a195fd4fc8731d2cb57109b51ac0de7d14da8b59fea7a48aaa2f5c61075b4b16c0e1d4f5579
+DIST xz-java-1.10.zip.sig 566 BLAKE2B 4a0e146f9a8ccffbf62d775b6d7c647611464fbf23fe0f0d9fa0f768487c642c1a9277b820af9ebdaeb9cefb3f5bf399a226000622838c81c02747b31158441b SHA512 e9bfe7eb28a6f9d8f7eb4c7620fc1598fe70c08a03fd2bfc5a1183110b0f8539704921f6224de352080cb3b6affb33163fd739503f4e8f279e06533445ebe8a6
DIST xz-java-1.9.zip 155868 BLAKE2B e1e355e75b3d14cae9a12dd00105ff38e25ab9c270cecafc83f27a7a03b36aa7a33647b40b7458b3592319a2b574e10cef9786413f0a12af585199a8f00731de SHA512 743f81ac715d7ac2760af8cee4c62d8fbeef156c0d3e0e85e4605ae08d6a71d1e6f6675e0558e7906a92d5fb3ca1feab9db015a1d42b5df73de2dec770a339cb
DIST xz-java-1.9.zip.sig 566 BLAKE2B 9702fa3021c4274aacc74ef84903429ed5301eac11cae6bf79014a5bad590c51b169c35f64add85c964cb815129acf920a014e5601acfcd075147f5fb8e9df1e SHA512 5f511260da0f5a9338106ac56511b7a105996852103a3f40cc4a44a7e4e03dc39a645bb0a57ae99bcde8267d5a2d514a7c956a8bfe226c0472e1fa3c7d28e3d5
diff --git a/dev-java/xz-java/xz-java-1.10.ebuild b/dev-java/xz-java/xz-java-1.10.ebuild
new file mode 100644
index 000000000000..f75575a91713
--- /dev/null
+++ b/dev-java/xz-java/xz-java-1.10.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc examples source"
+MAVEN_ID="org.tukaani:xz:1.10"
+
+inherit java-pkg-2 java-pkg-simple verify-sig
+
+DESCRIPTION="Implementation of xz data compression in pure java"
+HOMEPAGE="https://tukaani.org/xz/java.html"
+SRC_URI="https://tukaani.org/xz/${P}.zip
+ verify-sig? ( https://tukaani.org/xz/${P}.zip.sig )"
+S="${WORKDIR}"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+DEPEND=">=virtual/jdk-11:*"
+RDEPEND=">=virtual/jre-1.8:*"
+
+BDEPEND="
+ app-arch/unzip
+ verify-sig? ( sec-keys/openpgp-keys-lassecollin )
+"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/lassecollin.asc"
+
+JAVA_SRC_DIR="src"
+
+DOCS=( {AUTHORS,NEWS,README,THANKS}.md )
+
+src_compile() {
+ local JAVA_MODULE_NAME="org.tukaani.xz"
+ JAVA_JAR_FILENAME="${JAVA_MODULE_NAME}.jar"
+ java-pkg-simple_src_compile # creates a legacy jar file without module-info
+
+ # compile module-info.java
+ ejavac \
+ -source 9 -target 9 \
+ --patch-module "${JAVA_MODULE_NAME}"="${JAVA_MODULE_NAME}.jar" \
+ -d target/versions/9 \
+ -sourcepath src9 \
+ $(find src9 -type f -name '*.java')
+
+ # package
+ JAVA_JAR_FILENAME="${PN}.jar"
+ jar cvf "${JAVA_JAR_FILENAME}" \
+ -C target/classes . \
+ --release 9 -C target/versions/9 . || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ use examples && java-pkg_doexamples src/*Demo.java
+}