summaryrefslogtreecommitdiff
path: root/dev-java/xz-java
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-16 04:04:29 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-16 04:04:29 +0100
commit61a1cada8ceb208845fa604b982216b0a7b099cb (patch)
treed91d334e3ed29648631d4c04be64001120d48e44 /dev-java/xz-java
parent45392c898b8ba163e95028bd98896e77f0c73806 (diff)
gentoo auto-resync : 16:10:2024 - 04:04:29
Diffstat (limited to 'dev-java/xz-java')
-rw-r--r--dev-java/xz-java/Manifest3
-rw-r--r--dev-java/xz-java/xz-java-1.10.ebuild58
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/xz-java/Manifest b/dev-java/xz-java/Manifest
index 6d6d6d5913a2..6011515c5267 100644
--- a/dev-java/xz-java/Manifest
+++ b/dev-java/xz-java/Manifest
@@ -1,4 +1,7 @@
+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
+EBUILD xz-java-1.10.ebuild 1431 BLAKE2B ce7ee392fd6c1d1318cea794560bdfded431ff3e8d66f978979e4563a8110a2c5730badabcfa267498261b3cb528bc3a380b3b773d6f022eda5ec4547b19c08d SHA512 0bd375c0598f4126f01823fd0e0a22bc5ed51aec0ec3443b44a703de1b5727b7b2b0a6f8c1a09bb551101a91316533c0ad57cd7430657aac4e924acf2c8825ed
EBUILD xz-java-1.9-r2.ebuild 961 BLAKE2B ce00b3685b36f432bfa8de337c74bb3be0554002f0b1607da1f53787c150c3a6a57d85d9dd8d1582f555f28f48d0cca3f80315fba08d7f31d1ded3b9e5ed9779 SHA512 528e872bbc28388c028b533b6f0681ca87c4b895547475ad297a4ab99e545ec006024b4f73d14f368c1e0c9e2864b4a5eb2c5674dae2c9a78988623fdcdd526e
MISC metadata.xml 325 BLAKE2B e4efc81efa3a0ff3f09af74b2c1ae0250b47d94806e3162b2e1d1250a1a34d29d139ea45f42f536f3a86bd1021ae518e847064c1b5e34139427dd3146ac5a033 SHA512 867c7a2b17ad020b9640dc8e85bc9263fb2d80d5d1168cc911f9eac49bbd4a757fe899b0e60b6e6bc845c6cb2a3b0fea585aba4d7046ae9e51bf3c55e5de0559
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
+}