From 73ef00f9e2b100c7d0fedede11300940cc26670a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 27 Feb 2023 10:00:13 +0000 Subject: gentoo auto-resync : 27:02:2023 - 10:00:13 --- dev-java/jnr-posix/Manifest | 2 + dev-java/jnr-posix/jnr-posix-3.1.16.ebuild | 95 ++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+) create mode 100644 dev-java/jnr-posix/jnr-posix-3.1.16.ebuild (limited to 'dev-java/jnr-posix') diff --git a/dev-java/jnr-posix/Manifest b/dev-java/jnr-posix/Manifest index 0446d695fbec..48cb9e1e01ed 100644 --- a/dev-java/jnr-posix/Manifest +++ b/dev-java/jnr-posix/Manifest @@ -1,4 +1,6 @@ AUX jnr-posix-3.1.15-FileTest.patch 1195 BLAKE2B 57a88e8ce120954c7287dc063cc0ba5ebbb38eea404964c69f8f78a6b496b99bcffe2888e4b7ea895e5aa3cde95f52c11289f97f81201124d9234fb51fa546ff SHA512 0c180434266c1fe47d21d9412d8d13982fea6ea23b930b2c412200b9d2ce31bb15fc8e7785a3757f61be9841301e05aa7f84741f2cde70285ee039b91c35a5c8 DIST jnr-posix-3.1.15.tar.gz 120573 BLAKE2B 8035308440e444876d8d955ec3dd0b9d41f770436b53f964795a183ed7bd676dda8787c37425c488af2aa0accc948b86d1773e7e97ee5bcdaf209383dfda24a6 SHA512 6c8cd6d43c509ef7c16901d02983b823464b3437019233021398b2a9dfc85923db87c585e2f8248f080447a990e308feff25bbbf2a7261019dcae66c22e14a91 +DIST jnr-posix-3.1.16.tar.gz 120553 BLAKE2B b430d4699b84e9c4139291c34c328ade600adade68081167d3b47ce52caa6f96a818702dcb26652d186d7de825b32b00f2f1329b79f9c459cbbb6f6a4260d9f3 SHA512 988221a9a499db64c2bc3fe4e798fb77ce1bce44a31b51ace4f1e52b9a76a3af9a1521477a64413b44f36da9ab5446feb1b2ffd4e7dc50be055f6092d9e1f977 EBUILD jnr-posix-3.1.15.ebuild 3188 BLAKE2B 19e9153ec95e8dfe2566b6b0016f4fd5507f8b1992f704fe7ae50aa1ea00047b385053f8e0980915595e5412ffd0ff851708a76a1078b31d86111929a494736e SHA512 3e5382da3536dd6b5ba0484d07cdc2b44cd8fe23a27ab6e6ed06384e9b82efb37602c6466cc3382a5b5949e5497032c23fb56f9ec1eb8f6223d64c6ee0da655a +EBUILD jnr-posix-3.1.16.ebuild 2866 BLAKE2B b24a524379ded4a42691378a404db8f0af35eef2ab6cc05ad72540b7e0f24458900a44584e329316021e2be1e2d9827b31fed49732fe9e0b53b29c5becd1c76e SHA512 173b320a3da2cebf7ea2a094338b7391820cca5d3393eae61db71b78871a941909b5149533a932d28799f9feccdf9cf7d456b09f105c51096e6a03afd7bebd3d MISC metadata.xml 325 BLAKE2B f40ca825a92205c1ef0e0be2e72c859b680593c0f852aec73c3d84356a9927f5f536ffcec7b7a365353ac56489677d7881f9f27431abc56cdf9cc24550493097 SHA512 ff2bae0526d5ae082ad290411e7d3cd95a197918e4d834a531cab016ff9a718197a27fb2c7a4f7426bb44a5b295e164a72dd36f5fac800bc20388fde0f52e0a4 diff --git a/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild new file mode 100644 index 000000000000..8a1490e9b7d9 --- /dev/null +++ b/dev-java/jnr-posix/jnr-posix-3.1.16.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 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.16" +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="3.0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +CP_DEPEND=" + >=dev-java/jnr-ffi-2.2.12:2 + 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 + + if use arm; then + # https://bugs.gentoo.org/866692 + sed \ + -e '/utimensatRelativePath()/i @Ignore' \ + -e '/utimesDefaultValuesTest()/i @Ignore' \ + -e '/futimeTest()/i @Ignore' \ + -e '/utimesTest()/i @Ignore' \ + -e '/utimesPointerTest()/i @Ignore' \ + -e '/utimensatAbsolutePath()/i @Ignore' \ + -e '/futimens()/i @Ignore' \ + -i src/test/java/jnr/posix/FileTest.java || die + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/ioprioThreadedTest()/i @Ignore' \ + -e '/testPosixFadvise()/i @Ignore' \ + -i src/test/java/jnr/posix/LinuxPOSIXTest.java || die + sed \ + -e '/import org.junit.Test/a import org.junit.Ignore;' \ + -e '/testSetRlimitPointerLinux()/i @Ignore' \ + -e '/testGetRLimitPointer()/i @Ignore' \ + -i src/test/java/jnr/posix/ProcessTest.java || die + fi + + JAVA_TEST_EXCLUDES=( + # https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.16/pom.xml#L185 + # **/windows/*Test.java + "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 +} -- cgit v1.2.3