diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-04-04 14:10:19 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-04-05 06:33:24 +0200 |
commit | 0b034eb60fd707db5cf336375eac5e49dfbce75c (patch) | |
tree | 80485c008fb2fbe62c1e6fdf3eb332be165f024b /dev-java | |
parent | media-gfx/shotwell: Version bump to 0.30.15 (diff) | |
download | gentoo-0b034eb60fd707db5cf336375eac5e49dfbce75c.tar.gz gentoo-0b034eb60fd707db5cf336375eac5e49dfbce75c.tar.bz2 gentoo-0b034eb60fd707db5cf336375eac5e49dfbce75c.zip |
dev-java/randomized-runner: Bump to 2.7.9
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/24899
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/randomized-runner/Manifest | 1 | ||||
-rw-r--r-- | dev-java/randomized-runner/metadata.xml | 3 | ||||
-rw-r--r-- | dev-java/randomized-runner/randomized-runner-2.7.9.ebuild | 70 |
3 files changed, 74 insertions, 0 deletions
diff --git a/dev-java/randomized-runner/Manifest b/dev-java/randomized-runner/Manifest index 44d4d0ec7f58..b5438d14ff88 100644 --- a/dev-java/randomized-runner/Manifest +++ b/dev-java/randomized-runner/Manifest @@ -1 +1,2 @@ DIST randomized-runner-2.7.8.tar.gz 1501825 BLAKE2B e375d4509d8be914829c4ebfad5584e16f8f03be480ed21b52a0ad3db363b7f2761ae6442bb9baa8c929bc182c422963a6e8480165f53b7b820f9f4e2954a243 SHA512 5627f14dc70a6341838ad1ade0fa0f152ec6a5a7f3da4bc31e0ff040ea2c62aeafd669460f61f37db31de379db857ce3d58f0deed22d1cf714f1461988a92cdc +DIST randomized-runner-2.7.9.tar.gz 1501927 BLAKE2B 41ac32c724a87021c9fd58d3c421cab1fefd00a1e9e25a29d6188b831120c5e1407894f19fa92254df5cd1f2a66a44bf6e4469fa2128d841c1f17d17a623eec9 SHA512 23db6f21a805146d759fa9d3c9a37199b7181d6c53d0f62a4d82c42cbc15816cc25a87a174ef3d533870d648039b3f8dcac9370ffaff4ef76fefb6fc2c38ee88 diff --git a/dev-java/randomized-runner/metadata.xml b/dev-java/randomized-runner/metadata.xml index 75321cfb5598..960cc7109212 100644 --- a/dev-java/randomized-runner/metadata.xml +++ b/dev-java/randomized-runner/metadata.xml @@ -4,4 +4,7 @@ <maintainer type="project"> <email>java@gentoo.org</email> </maintainer> + <upstream> + <remote-id type="github">randomizedtesting/randomizedtesting</remote-id> + </upstream> </pkgmetadata> diff --git a/dev-java/randomized-runner/randomized-runner-2.7.9.ebuild b/dev-java/randomized-runner/randomized-runner-2.7.9.ebuild new file mode 100644 index 000000000000..80a8dbc84563 --- /dev/null +++ b/dev-java/randomized-runner/randomized-runner-2.7.9.ebuild @@ -0,0 +1,70 @@ +# 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/randomizedtesting/randomizedtesting/archive/release/2.7.9.tar.gz --slot 0 --keywords "~amd64 ~arm ~arm64 ~x86" --ebuild randomized-runner-2.7.9.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.7.9" +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" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +# Common dependencies +# POM: pom.xml +# junit:junit:4.13.1 -> >=dev-java/junit-4.13.2:4 + +CP_DEPEND=" + >=dev-java/junit-4.12:4 +" + +# Compile dependencies +# POM: pom.xml +# test? org.assertj:assertj-core:2.2.0 -> >=dev-java/assertj-core-2.3.0:2 + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} + test? ( + >=dev-java/assertj-core-2.3.0:2 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( ../{CHANGES,CONTRIBUTING,README}.txt ) + +S="${WORKDIR}/randomizedtesting-release-${PV}/${PN}" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="assertj-core-2" +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 +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} |