diff options
Diffstat (limited to 'dev-java/randomized-runner')
-rw-r--r-- | dev-java/randomized-runner/Manifest | 4 | ||||
-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, 76 insertions, 1 deletions
diff --git a/dev-java/randomized-runner/Manifest b/dev-java/randomized-runner/Manifest index 285a991f80de..4961095e5ce5 100644 --- a/dev-java/randomized-runner/Manifest +++ b/dev-java/randomized-runner/Manifest @@ -1,3 +1,5 @@ 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 EBUILD randomized-runner-2.7.8.ebuild 1487 BLAKE2B 09ab6b7da23ca31d7c79da86baab005ef485821e2ba7bedee6a26444a8c0dca6673c74fd4793d8488b1072ad9e849acef16224b5a476cf0ff80fe42f9c28f6a1 SHA512 0c7964b579de9109c7527277e3d0154293e49dd2e6a4ca615d102771ce2f3fca16fd760f209021e2843f9e9055070fe704d49ab40a31d0935406ab844f72eb74 -MISC metadata.xml 217 BLAKE2B cb41a7bd7e5c55319465d67551eae75371cc72d58629c61f70a7f54c388645d5ab1427c66dfdd5954e36ca40f0d3209f871d476cacd61516dd57e3297aaa601f SHA512 4df8395dcf07c52adadee71ad7dfa9f611ade8485cc9869397d0037272ae9add9b40d90669da8b80e578b4ee14c512da01ba096abe39a5859ac71c5316e425b6 +EBUILD randomized-runner-2.7.9.ebuild 1931 BLAKE2B 09f6da01b65a81b92365db9196a2dbdf4e2246140350746c0c840adc572cb29021752955e407d271fbf60fd0e2e941a5753ea89afccf64b9ccb46ddb038d89e5 SHA512 7119d04a6d46368dd7e3e48de3c46f76a44feb1a1e20780fdac7a34e18c46ca53e0b3d6e0a39c4bc76fbb6b198f63a588221206454a1510d15cabc7085a51fca +MISC metadata.xml 317 BLAKE2B 3da80829ccd32c18e7f9d05eaffee0f9433c2d0893363e911f1a0fb6d4260507ec4712c7035cdb2bd9d7b3fc7269d60f8346f2d82eb9bf7f3e25c03068ec1edd SHA512 f72fc2cfb58f31854ceb21c43f771b7eaf9b89d444e54179e54b2940ab7759f702640535f89b2101b65585ac8ea73d13c64583ae485608ab5a88e8f35f5a2a94 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 +} |