summaryrefslogtreecommitdiff
path: root/dev-java/jnr-posix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-06-29 12:04:12 +0100
commit0f558761aa2dee1017b4751e4017205e015a9560 (patch)
tree037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-java/jnr-posix
parent752d6256e5204b958b0ef7905675a940b5e9172f (diff)
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-java/jnr-posix')
-rw-r--r--dev-java/jnr-posix/Manifest3
-rw-r--r--dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch48
-rw-r--r--dev-java/jnr-posix/jnr-posix-3.1.15.ebuild65
3 files changed, 116 insertions, 0 deletions
diff --git a/dev-java/jnr-posix/Manifest b/dev-java/jnr-posix/Manifest
index 29451d3945c3..e34cf0da5d5c 100644
--- a/dev-java/jnr-posix/Manifest
+++ b/dev-java/jnr-posix/Manifest
@@ -1,4 +1,7 @@
+AUX jnr-posix-3.1.15-FileTest.patch 1520 BLAKE2B 7c9fc379977e98b01e2978f8e185942ce10d1641b7a58fac1d88ea9b3267c693ce5271da4584c2bd17805733060e408c89c98fd50d5a323071be36ad6f5a8507 SHA512 75e8fbaf976b5b548647b00502464b994c5f49929ccd767bb136d47f78eea0e4c7cde06f94b9e7ba86aad9334ee2d975a32e34ef4f332fbd2697b121566ea5b7
AUX jnr-posix_maven-build.xml 11760 BLAKE2B ec75beb884ccb81dc28c38db22e64953a6f536726105e2fec5cd38f7be2286091054026d6cf77471d03f5095c44087d8f7fe9d3065d31df26b018988a843fe39 SHA512 ab3f6b00e08cd7fff5f44df1c2a0eb9e73d3ad7400e6e708dcd1432b6ad122bfb0b8dac6417eb67a02d0fc2d19477d81287d2b202275676826081610d3e27d8e
DIST jnr-posix-3.0.10.tar.gz 85912 BLAKE2B b87ff78ccf10718bd1faf9e308421ba3ab5e90dee5e244fb1b7f53592da8ad98973cc50e6469bcea59e1202ee82b3f77522eb95e23584ff70cc66099ef1c4266 SHA512 a282c164b0b9ace8aba508a48d08d53beb0ddcd4baf5389412941a1e1430d75df9bdd35935a6982d4bb1910c0fdad55910ba028b1b5388c55e19a6c4ed2ba6a1
+DIST jnr-posix-3.1.15.tar.gz 120573 BLAKE2B 8035308440e444876d8d955ec3dd0b9d41f770436b53f964795a183ed7bd676dda8787c37425c488af2aa0accc948b86d1773e7e97ee5bcdaf209383dfda24a6 SHA512 6c8cd6d43c509ef7c16901d02983b823464b3437019233021398b2a9dfc85923db87c585e2f8248f080447a990e308feff25bbbf2a7261019dcae66c22e14a91
EBUILD jnr-posix-3.0.10-r1.ebuild 1295 BLAKE2B f9ad7d57774afd7dfba2f22a774d2539332e474a85ffb0f601ba734127fb99644ea1e1912f245707d9b5d5e432d46d241d175f4fde7e9b168dc2f74b21aa52f8 SHA512 1ac23f843d6a1d3c5520fa464f6284573403e8b361eddb29647a81a938cc22e602508c1f04dc2a887042f99f0b0f8d21c1c4776c3dc14fcc25b306cfee296494
+EBUILD jnr-posix-3.1.15.ebuild 1928 BLAKE2B 3dd5624b4ec8060b6e2c3110fa92336a0bc97fdb656442672c964e55919114194d86d521bec62889f0ef821ba5e5694c0c99373ab6a010a7a253c3a1954c9dd3 SHA512 345f9c78d85c2f8bb4cea31d043a931371c3018b9df7a67ea7c695ae6e88ed80b00a6642c1803f382beb6524ff3c66ca014e2c7f26fa01f5743b8734d158ae26
MISC metadata.xml 325 BLAKE2B f40ca825a92205c1ef0e0be2e72c859b680593c0f852aec73c3d84356a9927f5f536ffcec7b7a365353ac56489677d7881f9f27431abc56cdf9cc24550493097 SHA512 ff2bae0526d5ae082ad290411e7d3cd95a197918e4d834a531cab016ff9a718197a27fb2c7a4f7426bb44a5b295e164a72dd36f5fac800bc20388fde0f52e0a4
diff --git a/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch
new file mode 100644
index 000000000000..eba2a6fc450a
--- /dev/null
+++ b/dev-java/jnr-posix/files/jnr-posix-3.1.15-FileTest.patch
@@ -0,0 +1,48 @@
+diff --git a/src/test/java/jnr/posix/FileTest.java b/src/test/java/jnr/posix/FileTest.java
+index afadb07..7eb8af7 100644
+--- a/src/test/java/jnr/posix/FileTest.java
++++ b/src/test/java/jnr/posix/FileTest.java
+@@ -8,6 +8,7 @@ import jnr.ffi.Pointer;
+ import jnr.posix.util.Platform;
+ import org.junit.BeforeClass;
+ import org.junit.Test;
++import org.junit.Ignore;
+
+ import java.io.*;
+ import java.nio.ByteBuffer;
+@@ -215,7 +216,7 @@ public class FileTest {
+ dir.delete();
+ }
+
+- @Test
++ @Ignore @Test
+ public void flockTest() throws Throwable {
+ if (!Platform.IS_WINDOWS) {
+ File tmp = File.createTempFile("flockTest", "tmp");
+@@ -236,7 +237,7 @@ public class FileTest {
+ }
+ }
+
+- @Test
++ @Ignore @Test
+ public void dupTest() throws Throwable {
+ File tmp = File.createTempFile("dupTest", "tmp");
+ RandomAccessFile raf = new RandomAccessFile(tmp, "rw");
+@@ -303,7 +304,7 @@ public class FileTest {
+ }
+ }
+
+- @Test
++ @Ignore @Test
+ public void fcntlDupfdWithArgTest() throws Throwable {
+ if (!Platform.IS_WINDOWS) {
+ File tmp = File.createTempFile("dupTest", "tmp");
+@@ -327,7 +328,7 @@ public class FileTest {
+ }
+ }
+
+- @Test
++ @Ignore @Test
+ public void closeTest() throws Throwable {
+ File tmp = File.createTempFile("closeTest", "tmp");
+ int fd = getFdFromDescriptor(JavaLibCHelper.getDescriptorFromChannel(new RandomAccessFile(tmp, "rw").getChannel()));
diff --git a/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild
new file mode 100644
index 000000000000..5e4a34bbddea
--- /dev/null
+++ b/dev-java/jnr-posix/jnr-posix-3.1.15.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/jnr/jnr-posix/archive/jnr-posix-3.1.15.tar.gz --slot 3.0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild jnr-posix-3.1.15.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="com.github.jnr:jnr-posix:3.1.15"
+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"
+
+LICENSE="EPL-2.0 GPL-2 LGPL-2.1"
+SLOT="3.0"
+KEYWORDS="~amd64 ~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:*"
+
+S="${WORKDIR}/${PN}-${P}"
+
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ JAVA_TEST_EXCLUDES=(
+ # https://github.com/jnr/jnr-posix/blob/jnr-posix-3.1.15/pom.xml#L185
+ # <exclude>**/windows/*Test.java</exclude>
+ "jnr.posix.windows.WindowsFileTest"
+ "jnr.posix.windows.WindowsHelpersTest"
+ # Next 3 tests need to run separately, otherwise would fail.
+ "jnr.posix.GroupTest"
+ "jnr.posix.NlLanginfoTest"
+ "jnr.posix.SpawnTest"
+ )
+ 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 )
+ # Some tests in jnr.posix.FileTest fail with jdk-17
+ eapply "${FILESDIR}/jnr-posix-3.1.15-FileTest.patch"
+ fi
+ java-pkg-simple_src_test
+ JAVA_TEST_RUN_ONLY="jnr.posix.SpawnTest"
+ java-pkg-simple_src_test
+ JAVA_TEST_RUN_ONLY="jnr.posix.NlLanginfoTest"
+ java-pkg-simple_src_test
+ JAVA_TEST_RUN_ONLY="jnr.posix.GroupTest"
+ java-pkg-simple_src_test
+}