summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-12-09 12:20:22 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2024-12-09 18:29:53 +0100
commitebe4e1394e2918f41160cde76ef7f1ad467da624 (patch)
tree4bec22c4d4fd5b2879bb9734261b6dc1b1cf40b9 /dev-java
parentdev-java/jakarta-annotation-api: add 3.0.0 (diff)
downloadgentoo-ebe4e1394e2918f41160cde76ef7f1ad467da624.tar.gz
gentoo-ebe4e1394e2918f41160cde76ef7f1ad467da624.tar.bz2
gentoo-ebe4e1394e2918f41160cde76ef7f1ad467da624.zip
dev-java/randomized-runner: add 2.8.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39648 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/randomized-runner/Manifest1
-rw-r--r--dev-java/randomized-runner/randomized-runner-2.8.2.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-java/randomized-runner/Manifest b/dev-java/randomized-runner/Manifest
index 9bcd3a6a7fd9..fb49dab86549 100644
--- a/dev-java/randomized-runner/Manifest
+++ b/dev-java/randomized-runner/Manifest
@@ -1 +1,2 @@
DIST randomized-runner-2.8.0.tar.gz 1506178 BLAKE2B 0f142b5f90ea0aaf0934415ad772bf1363c75d371fb964398259e46af1879f2cd3520c9d3eff60b1614bef7fd64003d3ff868302cdc5421197085133dd856ba4 SHA512 e7fba917bf30a7ae4ea68301ec26bfa1b5659ea6124417ef494cc915b26bb07343ce8784dfd718032410ae750601f73ad56cd0a1bab3b2013559fc020694fb7f
+DIST randomized-runner-2.8.2.tar.gz 1508257 BLAKE2B 5b590ef8c19e7e928b3e8bfdd95bc20019922419e464da6e2189a37db3239d3e6beb7b2712c3e9d50ba16d758ad51dfcb17d91912163054a3b0697fdd2dded31 SHA512 e180b32f5bdad1028cade2e0e4daad9211b9ff2556bd80b27e062a0f2292d9cbc215154ba8a629429c0e477f979f7a2f29c675c9bfed16286fb9ab4367e59555
diff --git a/dev-java/randomized-runner/randomized-runner-2.8.2.ebuild b/dev-java/randomized-runner/randomized-runner-2.8.2.ebuild
new file mode 100644
index 000000000000..4ad376fc8c6a
--- /dev/null
+++ b/dev-java/randomized-runner/randomized-runner-2.8.2.ebuild
@@ -0,0 +1,50 @@
+# 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.carrotsearch.randomizedtesting:randomizedtesting-runner:2.8.2"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="JUnit test runner and plugins for running JUnit tests with pseudo-randomness"
+HOMEPAGE="https://labs.carrotsearch.com/randomizedtesting.html"
+SRC_URI="https://github.com/randomizedtesting/randomizedtesting/archive/release/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/randomizedtesting-release-${PV}/${PN}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+CP_DEPEND="dev-java/junit:4"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-1.8:*
+ test? ( dev-java/assertj-core:3 )
+"
+
+RDEPEND="
+ ${CP_DEPEND}
+ >=virtual/jre-1.8:*
+"
+
+DOCS=( ../{CHANGES,CONTRIBUTING,README}.txt )
+
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="assertj-core-3,junit-4"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if [[ "${vm_version}" -ge "17" ]] ; then
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED )
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.util=ALL-UNNAMED )
+ JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/sun.nio.fs=ALL-UNNAMED )
+ fi
+
+ java-pkg-simple_src_test
+}