From 7fa8a1e3f149eea4c844c47cfe26136ed7614c58 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 15 Apr 2024 12:04:03 +0100 Subject: gentoo auto-resync : 15:04:2024 - 12:04:02 --- dev-java/jimfs/Manifest | 4 +++ dev-java/jimfs/jimfs-1.3.0.ebuild | 70 +++++++++++++++++++++++++++++++++++++++ dev-java/jimfs/metadata.xml | 10 ++++++ 3 files changed, 84 insertions(+) create mode 100644 dev-java/jimfs/Manifest create mode 100644 dev-java/jimfs/jimfs-1.3.0.ebuild create mode 100644 dev-java/jimfs/metadata.xml (limited to 'dev-java/jimfs') diff --git a/dev-java/jimfs/Manifest b/dev-java/jimfs/Manifest new file mode 100644 index 000000000000..b0013767171a --- /dev/null +++ b/dev-java/jimfs/Manifest @@ -0,0 +1,4 @@ +DIST jimfs-1.3.0.tar.gz 157568 BLAKE2B 1febcf132c162ebb87ec9507bc12e05d6a9354195f36b0e198fd50faa22284608adafd1989a79390271ced4c063dda44c477fc7ae051c32960afca0f4f2ee2b7 SHA512 1c769ba74d45de1656fd30bd695b61caaa5ec9bd6c6e051310d371012fa6c746d0b2ba85d3f94490ebfb9f74ca75f173b879144673f8e3af8fde1a132725490d +DIST truth-1.1.3.jar 243021 BLAKE2B a59149038c62ef5dd352b13d4b393e1b7715fbafe5ed86ec2d16d722c738a31dcdca10132fc73b17b367ac4309e5407ba2e489f8d4c8fbca60ce5f35ae75d1e3 SHA512 f29a9fb070aff8a32358a7b6c8998c0095de5d8d68afa7f7bac759c7050309deff929e767657ecbbefd96163460f10255ca01bc567ab30df4834b9d916a4fae8 +EBUILD jimfs-1.3.0.ebuild 1997 BLAKE2B b5eb1d98af5245264dc3da6e5839912862c8087e388ecdf4704e1a5a7069617ecf5ff8b6a00cbbaa4be49c0096eb83c6345cebfc776429c496d2fe4602a5191f SHA512 5801759d563540ce46d530c5c9670150012db819ba8ded63e37532477ffec23cafa399a124b4b347f0c71c91fa05eeceb2f05b35e0f1e3cdabcb967d62b44df7 +MISC metadata.xml 294 BLAKE2B b4e7177f998885c88f01ee2db55848f9a31454a2f9e774a251d1722a9a82cecff72d1ff88e4ff697e37bdbea15f37840d023d86c53dff8320fd0d497d021dfe8 SHA512 d81c97c39ba052c83d13ca477a4c6bd0d2811287471b2466b8aa1fe9f483228edfa95298ce732abf32b2cc38de66bf0f1f2503b6f78e7e53a8bbc9834da91a5e diff --git a/dev-java/jimfs/jimfs-1.3.0.ebuild b/dev-java/jimfs/jimfs-1.3.0.ebuild new file mode 100644 index 000000000000..777cf00cfa5c --- /dev/null +++ b/dev-java/jimfs/jimfs-1.3.0.ebuild @@ -0,0 +1,70 @@ +# 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.google.jimfs:jimfs:${PV}" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An in-memory file system for Java 7+" +HOMEPAGE="https://github.com/google/jimfs" +SRC_URI="https://github.com/google/jimfs/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://repo1.maven.org/maven2/com/google/truth/truth/1.1.3/truth-1.1.3.jar )" +S="${WORKDIR}/${P}/jimfs" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +CP_DEPEND=" + dev-java/auto-service-annotations:0 + dev-java/error-prone-annotations:0 + dev-java/guava:0 + >=dev-java/icu4j-74.2-r1:0 + dev-java/jsr305:0 +" + +DEPEND="${CP_DEPEND} + dev-java/checker-framework-qual:0 + >=virtual/jdk-1.8:* + test? ( + dev-java/guava-testlib:0 + )" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:*" + +JAVA_CLASSPATH_EXTRA="checker-framework-qual" +JAVA_AUTOMATIC_MODULE_NAME="com.google.common.jimfs" +JAVA_RESOURCE_DIRS="src/main/res" +JAVA_SRC_DIR="src/main/java" +JAVA_TEST_GENTOO_CLASSPATH="guava-testlib junit-4" +JAVA_TEST_SRC_DIR="src/test/java" + +src_prepare() { + java-pkg-2_src_prepare + mkdir -p src/main/res/META-INF/services || die + echo "com.google.common.jimfs.SystemJimfsFileSystemProvider" > \ + src/main/res/META-INF/services/java.nio.file.spi.FileSystemProvider || die +} + +src_test() { + JAVA_GENTOO_CLASSPATH_EXTRA="${DISTDIR}/truth-1.1.3.jar" + # Using the defaults of java-pkg-simple would exclude + # several tests which are run by "mvn test". + pushd src/test/java > /dev/null || die + local JAVA_TEST_RUN_ONLY=$(find * \ + -name "*Test.java" \ + ! -name AbstractGlob*.java \ + ! -name AbstractPathMatcherTest.java \ + ! -name AbstractJimfsIntegrationTest.java \ + ! -name AbstractAttributeProviderTest.java \ + ) + popd > /dev/null + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" + JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" + java-pkg-simple_src_test +} diff --git a/dev-java/jimfs/metadata.xml b/dev-java/jimfs/metadata.xml new file mode 100644 index 000000000000..e1353ba1e585 --- /dev/null +++ b/dev-java/jimfs/metadata.xml @@ -0,0 +1,10 @@ + + + + + java@gentoo.org + + + google/jimfs + + -- cgit v1.2.3