From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jnr-posix/
Date: Mon, 16 Dec 2024 14:27:28 +0000 (UTC) [thread overview]
Message-ID: <1734359182.e176f4104448b770291290a51bbde806943d9cf1.fordfrog@gentoo> (raw)
commit: e176f4104448b770291290a51bbde806943d9cf1
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Tue Dec 10 11:39:06 2024 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 14:26:22 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e176f410
dev-java/jnr-posix: add 3.1.20
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/39668/commits/03e53adadd348d6b6b2eea4521199271b4d7a4e4
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/jnr-posix/Manifest | 1 +
dev-java/jnr-posix/jnr-posix-3.1.20.ebuild | 76 ++++++++++++++++++++++++++++++
2 files changed, 77 insertions(+)
diff --git a/dev-java/jnr-posix/Manifest b/dev-java/jnr-posix/Manifest
index b71b1747be9a..e31c342fd2c6 100644
--- a/dev-java/jnr-posix/Manifest
+++ b/dev-java/jnr-posix/Manifest
@@ -1 +1,2 @@
DIST jnr-posix-3.1.16.tar.gz 120553 BLAKE2B b430d4699b84e9c4139291c34c328ade600adade68081167d3b47ce52caa6f96a818702dcb26652d186d7de825b32b00f2f1329b79f9c459cbbb6f6a4260d9f3 SHA512 988221a9a499db64c2bc3fe4e798fb77ce1bce44a31b51ace4f1e52b9a76a3af9a1521477a64413b44f36da9ab5446feb1b2ffd4e7dc50be055f6092d9e1f977
+DIST jnr-posix-3.1.20.tar.gz 121435 BLAKE2B 46e7bc5de4eef1473fb26805a3a0120d5138f0945cbbc9b9e5328859e5b73ee94dd8c5db6159a921ec33852ab0fcf218d584b57712797ab52048d8b88a7ba71c SHA512 7f64250a60f5f9d9c6331c44dc7933755f45482b6fd03f6154a38433e1706bc7cd69a3302c64b61c2209f8c129cc5d46a7a75ceba3d8e0dcdeb5eca1c935e765
diff --git a/dev-java/jnr-posix/jnr-posix-3.1.20.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.20.ebuild
new file mode 100644
index 000000000000..ac22e303e9dc
--- /dev/null
+++ b/dev-java/jnr-posix/jnr-posix-3.1.20.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="com.github.jnr:jnr-posix:3.1.20"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Common cross-project/cross-platform POSIX APIs"
+HOMEPAGE="https://github.com/jnr/jnr-posix"
+SRC_URI="https://github.com/jnr/${PN}/archive/${P}.tar.gz"
+S="${WORKDIR}/${PN}-${P}"
+
+LICENSE="EPL-2.0 GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+CP_DEPEND="
+ >=dev-java/jnr-ffi-2.2.17:0
+ dev-java/jnr-constants:0
+"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-11:*
+"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
+
+JAVA_AUTOMATIC_MODULE_NAME="org.jnrproject.posix"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ sed \
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \
+ -i src/test/java/jnr/posix/FileTest.java || die
+
+ if use ppc64; then
+ # Ignore testMessageHdrMultipleControl
+ # https://bugs.gentoo.org/866199
+ # https://github.com/jnr/jnr-posix/issues/178
+ sed \
+ -e '/testMessageHdrMultipleControl/i @Ignore' \
+ -e '/import org.junit.Test/a import org.junit.Ignore;' \
+ -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die
+ fi
+
+ JAVA_TEST_EXCLUDES=(
+ # https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.16/pom.xml#L185
+ # <exclude>**/windows/*Test.java</exclude>
+ "jnr.posix.windows.WindowsFileTest"
+ "jnr.posix.windows.WindowsHelpersTest"
+ )
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if [[ "${vm_version}" -ge "17" ]] ; then
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED )
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.util=ALL-UNNAMED )
+ # Some tests in jnr.posix.FileTest fail with jdk-17
+ sed \
+ -e '/flockTest()/i @Ignore' \
+ -e '/dupTest()/i @Ignore' \
+ -e '/closeTest()/i @Ignore' \
+ -e '/fcntlDupfdWithArgTest()/i @Ignore' \
+ -i src/test/java/jnr/posix/FileTest.java || die
+ fi
+ java-pkg-simple_src_test
+}
next reply other threads:[~2024-12-16 14:27 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-16 14:27 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-15 6:13 [gentoo-commits] repo/gentoo:master commit in: dev-java/jnr-posix/ Miroslav Šulc
2025-01-14 12:24 Sam James
2025-01-14 12:07 Sam James
2025-01-14 12:07 Sam James
2023-04-09 19:24 Arthur Zamarin
2023-04-09 19:09 Arthur Zamarin
2023-04-09 19:09 Arthur Zamarin
2023-03-29 11:33 Sam James
2023-02-27 8:57 Florian Schmaus
2022-09-02 17:24 Arthur Zamarin
2022-08-24 17:23 Arthur Zamarin
2022-08-24 17:22 Miroslav Šulc
2022-07-09 9:37 Arthur Zamarin
2022-07-08 6:45 Agostino Sarubbo
2022-07-08 6:43 Agostino Sarubbo
2022-01-10 19:10 Arthur Zamarin
2022-01-02 8:07 Miroslav Šulc
2021-12-31 9:37 Arthur Zamarin
2021-11-26 19:07 Arthur Zamarin
2021-11-25 4:15 Sam James
2021-11-25 4:14 Sam James
2021-11-25 4:11 Sam James
2021-11-19 7:24 Arthur Zamarin
2021-11-13 8:29 Sam James
2017-07-17 11:30 Alexis Ballier
2016-10-30 20:29 James Le Cuirot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1734359182.e176f4104448b770291290a51bbde806943d9cf1.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox