diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-10 02:01:16 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-10 02:01:16 +0000 |
commit | 59437d191de3ff33f9bfa37f8656d849184fcaf0 (patch) | |
tree | 7d5e645c0aac6d8b71229a0e53d7a93136f83781 /dev-java | |
parent | 1a95f960273f276a4fdefb824336b073d83bcb5e (diff) |
gentoo auto-resync : 10:12:2024 - 02:01:16
Diffstat (limited to 'dev-java')
18 files changed, 96 insertions, 474 deletions
diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz Binary files differindex d1d39954b3c4..f17befe849a2 100644 --- a/dev-java/Manifest.gz +++ b/dev-java/Manifest.gz diff --git a/dev-java/batik/Manifest b/dev-java/batik/Manifest index e4cf834eeee6..a0083c9ebb3c 100644 --- a/dev-java/batik/Manifest +++ b/dev-java/batik/Manifest @@ -1,7 +1,4 @@ -DIST batik-src-1.17.tar.gz 13578640 BLAKE2B c77f994674dd8e8054ad6f753e53304ce6daad9b9eadceef053ede0c746872528ecd1caa6e87064d41892fed0c39f07936779851777208229f817bf84cb529b2 SHA512 0879f298142630e96931f429ade5e7107d2d981c6c3a99b8f2ddca8e26ea4fde1b7c717d06412c57d64759bed6c5f2d056970d59e19e66caafb926cb30078516 -DIST batik-src-1.17.tar.gz.asc 833 BLAKE2B 33836c8f0cbc878410ce8b2738dbbb4dc47d6067c5f58febb3460d836424b1c1d815f369bd7aeb15a8ed9371628e03731c1338aa6524c8a935c48b8092e3bb1e SHA512 513bd3d5c212ce4d98daa911f36e1b00e2f2b7a637e93ea116a2ebe848e20664d722ccf6c8928eac7170fa84d3b38eec86a71c8a0a7e21fd8622c8d475991c60 DIST batik-src-1.18.tar.gz 13699469 BLAKE2B 003a467b6948b902f56f004bf5c7d41f369bf49520d55fd70af3d3b8edef02d04557fdad5e4da70395a30c755f777791c89714edaa094eaa2964972eb81bdbf1 SHA512 209c6f4c76769cf1db616c5fe43c71d23c92afeb62e11bc7605baaa18bf9177efbb7a91a98bf03c3b4cd917bd7b7bd83e87083d16b11b3e57d3f31beeb8e1d7b DIST batik-src-1.18.tar.gz.asc 833 BLAKE2B a779b94a666edcab5b4c69866b4e7388ce6b8d9869d59773b084d870152cffd8c8cfd74df0f2a4ef06e5d598acb3b7bc00ec841871411b379f514b3fe2019765 SHA512 2fe6de9394f89c90e5ad2ede241c57bfbe5da4627b3730d445b2daa06b1ae71945bd65cda0d7a6bd46db536f318f755778a5b5a5b52080872a3143acd0d4677d -EBUILD batik-1.17-r1.ebuild 6549 BLAKE2B 71b4872efd2dcbad3877e79d17bcb3a93849cb6d0046676615d5af178ae4652c15f1cfef726f19e5b2228cae75d1e00ace5c70ae3e880c94801e5fb26ac1961b SHA512 a2445708cc79786103390a001ff9e9d974b9dc0291eca6409950ce8e38ac9070f1d07ddad15d6784217412e8755eb9232b3f9f520874e1f9790c88d2ebf9baa3 EBUILD batik-1.18.ebuild 6540 BLAKE2B 2db6f802a528f1943ea7ebcf2e160f13c58b9150e5431a3c6bcb6e359a40cb97f555ab81b0b5dd91c291c148e3ec009a8dcb3d39cc1d1d97a03de05aa1548efb SHA512 4216a42c44314e92151d472a8e79e79a1f6f19c46030a0f02864348121d3202e34d385373bc323eea6be85f53e8fa00025c5266ef1757932f6b3f8a1a650c87c MISC metadata.xml 610 BLAKE2B c589c175b595deb71eae6b8fccd46f4d6b82331f636cff28b6074300b6495efb780d157bb1b5b1359070cca7405138fcff719d72f1038023357fc7ab05c52b87 SHA512 73a6bb61c87645d1600ab90ca954599208c8599e967f6e999d973fa80e9693435db8a75ace95c8881486c8e2929d5a201a51e821e5f58763c273b21b5a32c229 diff --git a/dev-java/batik/batik-1.17-r1.ebuild b/dev-java/batik/batik-1.17-r1.ebuild deleted file mode 100644 index e7ed17559e98..000000000000 --- a/dev-java/batik/batik-1.17-r1.ebuild +++ /dev/null @@ -1,247 +0,0 @@ -# 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="org.apache.xmlgraphics:batik:${PV}" -JAVA_TESTING_FRAMEWORKS="junit-4" - -inherit desktop java-pkg-2 java-pkg-simple xdg-utils verify-sig - -DESCRIPTION="XML Graphics Batik" -HOMEPAGE="https://xmlgraphics.apache.org/batik/" -SRC_URI="mirror://apache/xmlgraphics/batik/source/batik-src-${PV}.tar.gz - verify-sig? ( https://downloads.apache.org/xmlgraphics/batik/source/batik-src-${PV}.tar.gz.asc )" -S="${WORKDIR}/batik-${PV}" - -LICENSE="Apache-2.0" -SLOT="1.16" -KEYWORDS="amd64 ~arm64 ppc64" - -CP_DEPEND=" - dev-java/jacl:0 - dev-java/rhino:1.6 - dev-java/xalan:0 - dev-java/xml-commons-external:1.4 - dev-java/xmlgraphics-commons:2 -" - -DEPEND=" - ${CP_DEPEND} - >=virtual/jdk-1.8:* -" - -RDEPEND=" - ${CP_DEPEND} - >=virtual/jre-1.8:* -" - -BDEPEND=" - app-arch/zip - verify-sig? ( sec-keys/openpgp-keys-apache-xmlgraphics-batik ) -" - -VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/xmlgraphics-batik.apache.org.asc" - -DOCS=( CHANGES NOTICE README ) - -# Modules batik-rasterizer-ext and batik-squiggle-ext, upstream puts their jar files in the extensions -# directory, see batik-extension/src/main/resources/org/apache/batik/extensions/README.txt -# We comment them out but keep them in the mudules list for later. -# The same for batik-test-old which depends on fop-transcoder-allinone which itself depends on batik. -# We also don't build batik-shared-resources since we install those resources on global scope. -# And we don't build batik-all. Instead we install the modules. -# BATIK_MODULES is the "Reactor Build Order" extracted from the output of "mvn dependency:tree": -# mvn -DskipTests dependency:tree \ -# | sed -n '/Reactor Build Order:/,/Building org/p' \ -# | cut -d':' -f2 | cut -d' ' -f1 | grep 'batik-' || die -BATIK_MODULES=( -# batik-shared-resources - batik-constants - batik-i18n - batik-test - batik-util - batik-awt-util - batik-css - batik-ext - batik-xml - batik-dom - batik-parser - batik-svg-dom - batik-anim - batik-gvt - batik-script - batik-bridge - batik-svggen - batik-transcoder - batik-codec - batik-extension - batik-gui-util - batik-svgrasterizer -# batik-rasterizer-ext - batik-rasterizer - batik-slideshow - batik-swing - batik-svgbrowser -# batik-squiggle-ext - batik-squiggle - batik-svgpp - batik-ttf2svg -# batik-all - batik-test-swing - batik-test-svg -# batik-test-old -) - -src_prepare() { - java-pkg_clean - java-pkg-2_src_prepare - # We drop support for jython due to bug #825486. - rm batik-script/src/main/java/org/apache/batik/script/jpython/JPythonInterpreter.java || die - rm batik-script/src/main/java/org/apache/batik/script/jpython/JPythonInterpreterFactory.java || die - - cat > "batik-squiggle-${SLOT}.desktop" <<-EOF || die - [Desktop Entry] - Name=Squiggle - Comment=SVG browser - Exec=batik-squiggle-${SLOT} - Icon=init - Terminal=false - Type=Application - Categories=Graphics;VectorGraphics; - MimeType=image/svg+xml - EOF -} - -src_compile() { - # We loop over the modules list and compile the jar files. - local module - for module in "${BATIK_MODULES[@]}"; do - einfo "Compiling ${module}" - - JAVA_JAR_FILENAME="${module}.jar" - JAVA_MAIN_CLASS="" - JAVA_RESOURCE_DIRS="" - JAVA_SRC_DIR="" - - # Not all of the modules have resources. - if [[ -d "${module}/src/main/resources" ]]; then - JAVA_RESOURCE_DIRS="${module}/src/main/resources" - fi - - # Get Main-Class from the module's pom.xml - JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' "${module}/pom.xml" ) - - # Some modules don't have source code. - if [[ -d "${module}/src/main/java/org" ]]; then - JAVA_SRC_DIR="${module}/src/main/java" - java-pkg-simple_src_compile - else - # This case applies to batik-rasterizer. - if [[ -d "${module}/src/main/resources/org" ]]; then - jar -cfe "${module}.jar" "${JAVA_MAIN_CLASS}" -C "${module}/src/main/resources" . || die - # Else for batik-squiggle (also batik-rasterizer-ext, batik-squiggle-ext) - else - # Create the JAR file (not possible without adding at least one file). - jar -cfe "${module}.jar" "${JAVA_MAIN_CLASS}" -C . README || die - zip -d "${module}.jar" "README" || die - fi - fi - - JAVA_GENTOO_CLASSPATH_EXTRA+=":${module}.jar" - - rm -fr target || die - done - - if use doc; then - JAVA_SRC_DIR="" - JAVA_JAR_FILENAME="ignoreme.jar" - - for module in "${BATIK_MODULES[@]}"; do - # Some modules don't have source code - if [[ -d "${module}/src/main/java/org" ]]; then - JAVA_SRC_DIR+=( "${module}/src/main/java" ) - fi - done - - java-pkg-simple_src_compile - fi -} - -src_test() { - JAVA_TEST_GENTOO_CLASSPATH="junit-4" - - for module in "${BATIK_MODULES[@]}"; do - einfo "Testing ${module}" - - JAVA_TEST_SRC_DIR="" - JAVA_TEST_RESOURCE_DIRS="" - JAVA_TEST_RUN_ONLY="" - - if [[ -d "${module}/src/test/resources" ]]; then - JAVA_TEST_RESOURCE_DIRS="${module}/src/test/resources" - fi - - # https://github.com/apache/xmlgraphics-batik/blob/refs/tags/batik-1_14/batik-util/pom.xml#L74-L75 - if [[ "${module}" == batik-util ]]; then - JAVA_TEST_RUN_ONLY="org.apache.batik.util.Base64TestCases" - fi - - if [[ -d "${module}/src/test/java/org" ]]; then - JAVA_TEST_SRC_DIR="${module}/src/test/java" - java-pkg-simple_src_test - fi - done -} - -src_install() { - einstalldocs - domenu "batik-squiggle-${SLOT}.desktop" - newicon -s scalable \ - batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/init.svg \ - squiggle-${SLOT}.svg - - for module in "${BATIK_MODULES[@]}"; do - JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' "${module}/pom.xml" ) - - java-pkg_dojar "${module}.jar" - - # Add a launcher if the module has a MainClass. - if [[ -n "${JAVA_MAIN_CLASS}" ]]; then - java-pkg_dolauncher "${module}-${SLOT}" --main "${JAVA_MAIN_CLASS}" - fi - - # Some modules don't have source code - if [[ -d "${module}/src/main/java/org" ]]; then - if use source; then - java-pkg_dosrc "${module}/src/main/java/*" - fi - fi - done - - local java_policy_file="${JAVA_PKG_SHAREPATH}/etc/${PN}.policy" - insinto "$(dirname "${java_policy_file}")" - newins - "$(basename "${java_policy_file}")" <<- _EOF_ - grant codeBase "file:${EPREFIX}${JAVA_PKG_JARDEST}/-" { - permission java.security.AllPermission; - }; - _EOF_ - java-pkg_register-environment-variable \ - gjl_java_args \ - "\$gjl_java_args -Djava.security.policy=file:${EPREFIX}${java_policy_file}" - - if use doc; then - java-pkg_dojavadoc target/api - fi -} - -pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update -} diff --git a/dev-java/cdi-api/Manifest b/dev-java/cdi-api/Manifest index 8a8f2c884856..276a1c86f54c 100644 --- a/dev-java/cdi-api/Manifest +++ b/dev-java/cdi-api/Manifest @@ -1,4 +1,4 @@ AUX cdi-api-4.0.1-skip-tests.patch 2530 BLAKE2B 6b4fac604f1b3692ce4150b2e6f29d60a32004dd61a7cd4f12e092bb43e8bed6a1ddc33ad711e0f3025ec95f37a8aba11c305e9df23b3f11e29021baa3808e17 SHA512 0d7d99baea9cbc21e9bc435118f793c6a11d802968b24aed20a65b337b3cebb7d50e37a493084deaa7961c64bfd4f2b96f0750897b0589586b3e89077edf364e DIST cdi-api-4.0.1.tar.gz 280719 BLAKE2B 9c4cf34f1b0c096a3097bed658ba4c13ab6fa655cd8233b82b13a788dd047e1be89bcde69b3c69665c0987c4f62cd5e4596e51f6235c95db5239daf403dea4e9 SHA512 7f3e9ca45e0708b3c998ff6f743975a9995309d1fb93fde64ca8a0fca73e16ea653085ca743c921d52385f0fbcbdab10b45fd8b6e8b27c2e058871febbbeeb1e -EBUILD cdi-api-4.0.1-r3.ebuild 2953 BLAKE2B a97466f63b16de80aaeae1181361481729cb29b5c298aade77d47daffcfcf215aae97cecd9dffa16b30d8305abb01a0c367a12e4dc84ae122481a351f6832a56 SHA512 79c6423834685acd0b29627876077b97433551672f1b5cb4fead504a64fca520c7c4467f945d13e0787bf180e7fe1e33c7fb18419e95c1c90eff4db1a517630a +EBUILD cdi-api-4.0.1-r4.ebuild 2951 BLAKE2B 651497f872362156a6e6a0c3c90b5fee9a4b5859e908912487a24c18747dd7e6cc058084862560b694e544db837d55e39b68dbdb371112178a72923c9966461e SHA512 7afc98c5b5ed7928e5131f54100b6f9a4a60bd657b5e2bc01397cee00274662b486be46abc7f1012416887c77d32a02c7b8f79a780adde099b3db2bc009e837f MISC metadata.xml 295 BLAKE2B 349f4209d0a1dac5a43b3cc197c78aadf3263cfb1e6ddfa39b4ea54bf5b4883a80e800b600720b745a86ee6defe57304736910fc4bb42ee1c1f57f35a3936ea0 SHA512 6f7bf9a1c0e9418a7a0d3cc2baa8f6cbbcf1b4a7abf7f4501d718355d778966b3a16f56bd30c5136d7fb96597d3377e61cbb9a9d840b53fa4da26e00cb3d72e1 diff --git a/dev-java/cdi-api/cdi-api-4.0.1-r3.ebuild b/dev-java/cdi-api/cdi-api-4.0.1-r4.ebuild index 9662f5535c67..dd3b6ec3dc21 100644 --- a/dev-java/cdi-api/cdi-api-4.0.1-r3.ebuild +++ b/dev-java/cdi-api/cdi-api-4.0.1-r4.ebuild @@ -22,7 +22,7 @@ EL_API_SLOT="5.0" DEPEND=" dev-java/injection-api:0 - dev-java/jakarta-annotations-api:0 + dev-java/jakarta-annotation-api:0 dev-java/jakarta-el-api:${EL_API_SLOT} dev-java/jakarta-interceptors:0 >=virtual/jdk-11:* @@ -64,7 +64,7 @@ src_compile() { # getting the modulepath DEPENDENCIES=( jakarta-el-api-${EL_API_SLOT} - jakarta-annotations-api + jakarta-annotation-api jakarta-interceptors injection-api ) diff --git a/dev-java/fop/Manifest b/dev-java/fop/Manifest index 2e32e80b67c3..e3ae0dab947e 100644 --- a/dev-java/fop/Manifest +++ b/dev-java/fop/Manifest @@ -6,10 +6,6 @@ AUX fop-2.9-PDFToUnicodeCMapTestCase.patch 1789 BLAKE2B e1075047431e5f0f006d8a7f DIST fop-2.10-jars.tar.xz 7696 BLAKE2B aa5db0a4ee8b96e54e7beccccc21bd4559f2f228476ab65a12935fbbd69924e23296c1dfcf6e717b6031b9e21efd3aeed4df130ba5f8717ae47a1b0628013d59 SHA512 7c9d14f71e94e6a706c845d71a95adcbf0c77934618d9ce070dfd677adf8d2f171ab6e16954db684dc1781f91719e194382a629274435ecef3d3fbf0e5c7bae3 DIST fop-2.10-src.tar.gz 20903590 BLAKE2B 5217edbabc255b2e37c6198ea7cdfb1344db0726c7156f73bdc5ac452c4c233c5280d263e65656cde92ce6aa52c8ea94e346d9d14535ca802fc37fe1475ba255 SHA512 c5ae25be3e3a4da01195e108dec66743ab6017967220db1f4e4300f79594d8144de23876eeac07b2068db75a60e1b25d10ddad48533bd0cd6cb9e110b519fcf6 DIST fop-2.10-src.tar.gz.asc 833 BLAKE2B 70b200af6f3611b3dcd6da9d8728b12ee9a7bd4882919965c641e822cdd21510669cc98ace5d8caaa42e05347ae0d9b07384365377bbd4c5ca0b1edc07e2ff80 SHA512 ae9628cf9ca84d9c2ac1bfddcb4aec786985d3fdca16c2541e45690c81695ec5361dc1641a30572fc2d95defa69cab61a1992ab0d16843344411acb77835a73c -DIST fop-2.7-jars.tar.xz 7348 BLAKE2B 79a5b4f1948bbc9628e571a9873494e2d2088d7a90296e81e03cafa6ecd8f9d1c8dd6779d15c47a0e110304aa07e706c56412e3766a84e0a66c8224fdd92f61c SHA512 71c39cbb20416dc29beb8628ae8bac2a663c0b0d1f0418a241f3795a2d5e01159572c210b5a2d2eff8274247dc3631980de50fea4f94182ddde095d0e5e605c6 -DIST fop-2.9-src.tar.gz 20642865 BLAKE2B 6ab265ddfb1c07b9266687930af21ac4653438800772da836dbceb14de126333dcff50c2cea1352ad77988ec7f7a3d4eef91341983edc13684abf2531634eb0a SHA512 d346c8fffd0d3ff5e803bea4233ce171972ded39b0c475b367333e37247da8f9e823c7e2e75fab735bf9282654d67befa2fa473f53a199cbd96b0f7305b3c093 -DIST fop-2.9-src.tar.gz.asc 833 BLAKE2B 284f04d450bcfb6583d353ae21bbadad8da14b59d946e094453b564e700c8cfdcb448ed206a5a246b725b453a1b3feea69f96ff3b2a683320bce6743cc5a167f SHA512 404d5df54cf84ddb11c7f5ebc6772d61cd04fc434dea421429a9a270e1d0ca17f61df8a33600db5a41c6d45f828a67fc26becfa9b4ac18342e9dfb4781dd0bdc DIST fop-hyph-2.0.jar 6655933 BLAKE2B bfbefcc2ebd9a9a467c23a70d7cef256f83cf2335f6e17db6bbefceaf8a3cee78de0302f269d096eb3238b3f4883429e09cc640bed11a42da4ef67ab9f0cb164 SHA512 3d5f27623008c7beba5332387bd42c501b7ae1dddfc98014b3fb35273394ca5f0a4ce69e7726090ec468c9b4f7983fb8b1a5759f49e81ea342c81c61311d87b3 EBUILD fop-2.10.ebuild 6336 BLAKE2B fba863641b645bbcf9668514ec8d42f444f1c35ce041f4be4f29ee4099ec9f2869f7d6d99738149765cc57207c440099104a35822e62dda3bd855a64b2e03b8a SHA512 1f4fd78803b0ccd9ffddfefc9037c8cfdde0ff97e6f0ff051d0c59cc152f5561e01d2673261ee8905c77c46131bfeaf8f13a3d99989b98dd0f7f422061124530 -EBUILD fop-2.9-r1.ebuild 6143 BLAKE2B 067dca41e9ec58dd7ea6b0537b2ddb96b1d4b0eaa60a30027c5672db1ca9b45c322370b109a4cc42cd731795acfd97a217dc3ac2a1a0b9c5f53590f7accc6610 SHA512 c1a2e6003079181fcb97f77477e347aaaf4172db349e8803f72a003bdd7e803b1f171825373744e62e10852eb011937610cfb447d438171b578a087cbf304135 MISC metadata.xml 449 BLAKE2B 91dd2fd3b50581a408755aade7aa37406c527e9298bd0156cb18d363fef88cf60eb85f259ba443022fbd6c5377be0e0fc990cb2826d418347dc92bf7b6ff5ca9 SHA512 cf49f03d1ed992a7df7deebb7c00721895be45ff144da8c4b1777aecba5e17d86a7353a83ad8df8b356f70afda5fadcdc53350b2c5732a0f0469b18f501959d4 diff --git a/dev-java/fop/fop-2.9-r1.ebuild b/dev-java/fop/fop-2.9-r1.ebuild deleted file mode 100644 index 3f5794bf33af..000000000000 --- a/dev-java/fop/fop-2.9-r1.ebuild +++ /dev/null @@ -1,201 +0,0 @@ -# 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="org.apache.xmlgraphics:fop:${PV}" -JAVA_TESTING_FRAMEWORKS="junit-4" - -inherit java-pkg-2 java-pkg-simple verify-sig - -DESCRIPTION="XML Graphics Format Object Processor All-In-One" -HOMEPAGE="https://xmlgraphics.apache.org/fop/" -SRC_URI=" - mirror://apache/xmlgraphics/fop/source/${P}-src.tar.gz - https://dev.gentoo.org/~flow/distfiles/fop/fop-2.7-jars.tar.xz - verify-sig? ( https://downloads.apache.org/xmlgraphics/fop/source/${P}-src.tar.gz.asc ) - test? ( https://repo1.maven.org/maven2/net/sf/offo/fop-hyph/2.0/fop-hyph-2.0.jar ) -" -S="${WORKDIR}/fop-${PV}" - -LICENSE="Apache-2.0" -SLOT="2.8" -KEYWORDS="amd64 ~arm64 ppc64" - -VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/xmlgraphics-fop.apache.org.asc" - -BDEPEND=" - dev-java/xalan:0 - verify-sig? ( sec-keys/openpgp-keys-apache-xmlgraphics-fop ) -" - -CP_DEPEND=" - >=dev-java/ant-1.10.14-r3:0 - dev-java/batik:1.16 - dev-java/commons-io:1 - dev-java/commons-logging:0 - dev-java/fontbox:0 - dev-java/javax-servlet-api:2.2 - dev-java/qdox:1.12 - dev-java/sun-jai-bin:0 - dev-java/xmlgraphics-commons:2 -" - -DEPEND="${CP_DEPEND} - >=virtual/jdk-1.8:* - test? ( - dev-java/mockito:2 - dev-java/pdfbox:0 - dev-java/xmlunit:1 - ) -" - -RDEPEND="${CP_DEPEND} - >=virtual/jre-1.8:*" - -DOCS=( NOTICE README ) - -PATCHES=( - "${FILESDIR}/fop-2.9-PDFEncodingTestCase.patch" - "${FILESDIR}/fop-2.9-PDFToUnicodeCMapTestCase.patch" - "${FILESDIR}/fop-2.9-MissingLanguageWarningTestCase.patch" - "${FILESDIR}/fop-2.9-FO2StructureTreeConverterTestCase.patch" -) - -src_unpack() { - if use verify-sig; then - verify-sig_verify_detached "${DISTDIR}"/${P}-src.tar.gz{,.asc} - fi - default -} - -src_prepare() { - java-pkg_clean - java-pkg-2_src_prepare - default -} - -src_compile() { - # while ant could install multiple jar files we only need ant.jar - JAVA_GENTOO_CLASSPATH_EXTRA=":$(java-pkg_getjar ant ant.jar)" - - JAVA_JAR_FILENAME="fop-util.jar" - JAVA_SRC_DIR="fop-util/src/main/java" - java-pkg-simple_src_compile - JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-util.jar" - rm -r target || die - - JAVA_JAR_FILENAME="fop-events.jar" - JAVA_RESOURCE_DIRS="fop-events/src/main/resources" - JAVA_SRC_DIR="fop-events/src/main/java" - java-pkg-simple_src_compile - JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-events.jar" - rm -r target || die - - JAVA_JAR_FILENAME="fop-core.jar" - JAVA_MAIN_CLASS=$( sed -n 's:.*<mainClass>\(.*\)</mainClass>:\1:p' fop-core/pom.xml ) - JAVA_RESOURCE_DIRS="fop-core/src/main/resources" - JAVA_SRC_DIR="fop-core/src/main/java" - # Code generation according to - # https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L156-L225 - pushd fop-core/src/main/codegen/fonts > /dev/null || die - local fonts=$(find . -name "Courier*.xml" \ - -o -name "Helvetica*.xml" \ - -o -name "Times*.xml" \ - -o -name "Symbol.xml" \ - -o -name "ZapfDingbats.xml" - ) - for font in ${fonts}; do \ - xalan -XSLTC \ - -IN $font \ - -XSL font-file.xsl \ - -OUT ../../java/org/apache/fop/fonts/base14/${font//.xml}.java || die - done - xalan -XSLTC \ - -IN encodings.xml \ - -XSL code-point-mapping.xsl \ - -OUT ../../java/org/apache/fop/fonts/base14/CodePointMapping.java || die - popd > /dev/null || die - java-pkg-simple_src_compile - - # Update "fop-core.jar" with "event-mode.xml" files produced manually - # by running "mvn package". - # Upstream does this with maven-antrun-plugin: - # https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L269-L290 - mkdir event-model && pushd $_ > /dev/null || die - jar -xf "${WORKDIR}/fop-2.7-core-event-models.jar" - popd > /dev/null || die - - jar -uf "fop-core.jar" -C event-model . || die - JAVA_GENTOO_CLASSPATH_EXTRA+=":fop-core.jar" - rm -r target || die - - if use doc; then \ - JAVA_SRC_DIR=( - "fop-util/src/main/java" - "fop-events/src/main/java" - "fop-core/src/main/java" - ) - JAVA_JAR_FILENAME="ignoreme.jar" - java-pkg-simple_src_compile - fi -} - -src_test() { - JAVA_TEST_GENTOO_CLASSPATH="junit-4,mockito-2,pdfbox,xmlunit-1" - - einfo "Testing fop-events" - JAVA_TEST_EXCLUDES="org.apache.fop.events.TestEventProducer" - JAVA_TEST_SRC_DIR="fop-events/src/test/java" - # This jar file was created manually from the output of "mvn test". - # Upstream does this with maven-antrun-plugin - jar -xf "${WORKDIR}/fop-2.7-test-event-model.jar" || die - mkdir generated-test || die - mv {target/test-classes,generated-test}/org || die - java-pkg-simple_src_test - - einfo "Testing fop-core" - pushd fop-core/src/test/java > /dev/null || die - # Excluding one test, see https://bugs.gentoo.org/903880 - local JAVA_TEST_RUN_ONLY=$(find * -type f \ - -name "*TestCase.java" \ - ) - JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}" - JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}" - local vm_version="$(java-config -g PROVIDES_VERSION)" - # these tests would fail with java.lang.NoSuchMethodError if compiled with jdk-1.8 - if ver_test "${vm_version}" -eq "1.8"; then - JAVA_TEST_RUN_ONLY=${JAVA_TEST_RUN_ONLY//org.apache.fop.render.pdf.PDFEncodingTestCase} - JAVA_TEST_RUN_ONLY=${JAVA_TEST_RUN_ONLY//org.apache.fop.fonts.truetype.OTFToType1TestCase} -# org.apache.fop.render.pdf.PDFEncodingTestCase -# org.apache.fop.fonts.truetype.OTFToType1TestCase - fi - popd > /dev/null || die - # https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L297-L307 - # <workingDirectory>../fop</workingDirectory> - pushd fop > /dev/null || die - JAVA_GENTOO_CLASSPATH_EXTRA="${DISTDIR}/fop-hyph-2.0.jar" - JAVA_GENTOO_CLASSPATH_EXTRA+=":../fop-util.jar" - JAVA_GENTOO_CLASSPATH_EXTRA+=":../fop-events.jar" - JAVA_GENTOO_CLASSPATH_EXTRA+=":../fop-core.jar" - JAVA_TEST_RESOURCE_DIRS="../fop-core/src/test/resources" - JAVA_TEST_SRC_DIR="../fop-core/src/test/java" - java-pkg-simple_src_test - popd > /dev/null || die -} - -src_install() { - local module - for module in fop-util fop-events fop-core ; do - java-pkg_dojar "${module}.jar" - if use source; then - java-pkg_dosrc "${module}/src/main/java/*" - fi - done - if use doc; then - java-pkg_dojavadoc target/api - fi - java-pkg_dolauncher "fop-${SLOT}" --main "org.apache.fop.cli.Main" - einstalldocs -} diff --git a/dev-java/jakarta-annotation-api/Manifest b/dev-java/jakarta-annotation-api/Manifest new file mode 100644 index 000000000000..ede529350df3 --- /dev/null +++ b/dev-java/jakarta-annotation-api/Manifest @@ -0,0 +1,5 @@ +DIST jakarta-annotation-api-2.1.1.tar.gz 83788 BLAKE2B be9904337199bd8cf9e5748d53b4536b3562446d499992b97c7e413e2e2d9ae0c8ba50d601950a0feec8bce4c4c35093b7b8f87ad60ea407452f502996045e54 SHA512 8a61cb8a9da55efd7c5172aa9a134eae7d94489a66ef749c619a7fc596122fd50f3dda7a954d78f664132c72ce999d2d3ad01b70e1d2cb2072c881327de11d82 +DIST jakarta-annotation-api-3.0.0.tar.gz 86848 BLAKE2B 3eab46e3840bb121d1abeb1d839d00cab1db881e444613b60fa62e8412587c6a8e6a16ae89483698887631d7121f71104611dd052fd1ce6606fa2e708a4f0cc2 SHA512 9cbd14df082b2fd51e5ab92b72fad0a8f2db16e72d89f5942663dacc38ba5118ec1199a07756b9507f51ba143b9869bad32b8b8e41c9ddbef7c7c080557cb340 +EBUILD jakarta-annotation-api-2.1.1.ebuild 706 BLAKE2B 18ee2a8812acc75a14d3f2b75399253e8d88300112c5f5b0b2a2d9662be221ace452e3e13caacce4e0c0a460472683a5518820058d3a7c6bde846d3672c78b1b SHA512 31d6292d3c1774b0a039e8bfb763c0b270b9f93808cfb55a01b4ac62a2b160eb5581ffaa6b1575b5e5eb02b9d3ca61c616efb29fa06148ce5a86d475397dfdaa +EBUILD jakarta-annotation-api-3.0.0.ebuild 699 BLAKE2B 872a32f4ead018aefa404da03d9ee81caf3211b0a9d92b12e7d4050d3ff419195d46f987ea7026316214cb053b3b3188a3bd82061ae34571dbe96d15d166ebcd SHA512 baad4f3e247d293917f07d7885609c97e3484153dd6f50cee3f222ccdbc472853319110690c0c1a7ba3b3954189fd965f607841f9608df48ae748ec229b0d994 +MISC metadata.xml 374 BLAKE2B a6fa1b75532b330bd8f718f15dda6c5eb20bff27d16507b1b9124694f376b74243346ae93e201eb04b124a11a8cad4ac619c5f517994567b29c3bc64d7f0a9cf SHA512 6136a5a32b9ffae6cdfba44870fb131c49020ffe255e8aa5851f367fad15f1f9b8eaffd3ce42842aa601160ee1e7c1b08dc247f49120f0902c0037891591b5f8 diff --git a/dev-java/jakarta-annotations-api/jakarta-annotations-api-2.1.1.ebuild b/dev-java/jakarta-annotation-api/jakarta-annotation-api-2.1.1.ebuild index 01113c25736d..8de7b9bc5d1c 100644 --- a/dev-java/jakarta-annotations-api/jakarta-annotations-api-2.1.1.ebuild +++ b/dev-java/jakarta-annotation-api/jakarta-annotation-api-2.1.1.ebuild @@ -10,7 +10,8 @@ inherit java-pkg-2 java-pkg-simple DESCRIPTION="Jakarta Annotations API" HOMEPAGE="https://projects.eclipse.org/projects/ee4j.ca" -SRC_URI="https://github.com/eclipse-ee4j/${PN/jakarta/common}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/eclipse-ee4j/common-annotations-api/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/common-annotations-api-${PV}" LICENSE="EPL-2.0 GPL-2-with-classpath-exception" SLOT="0" @@ -26,6 +27,4 @@ RDEPEND=" DOCS=( {CONTRIBUTING,NOTICE,README}.md ) -S="${WORKDIR}/${P/jakarta/common}" - JAVA_SRC_DIR="api/src/main/java" diff --git a/dev-java/jakarta-annotation-api/jakarta-annotation-api-3.0.0.ebuild b/dev-java/jakarta-annotation-api/jakarta-annotation-api-3.0.0.ebuild new file mode 100644 index 000000000000..7d5404665521 --- /dev/null +++ b/dev-java/jakarta-annotation-api/jakarta-annotation-api-3.0.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="jakarta.annotation:jakarta.annotation-api:3.0.0" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jakarta Annotations API" +HOMEPAGE="https://projects.eclipse.org/projects/ee4j.ca" +SRC_URI="https://github.com/jakartaee/common-annotations-api/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/common-annotations-api-${PV}" + +LICENSE="EPL-2.0 GPL-2-with-classpath-exception" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +DEPEND=">=virtual/jdk-11:*" +RDEPEND=">=virtual/jre-1.8:*" + +DOCS=( {CONTRIBUTING,NOTICE,README}.md ) + +JAVA_SRC_DIR="api/src/main/java" diff --git a/dev-java/jakarta-annotations-api/metadata.xml b/dev-java/jakarta-annotation-api/metadata.xml index 9c98d5e873bc..a53376e684fe 100644 --- a/dev-java/jakarta-annotations-api/metadata.xml +++ b/dev-java/jakarta-annotation-api/metadata.xml @@ -5,6 +5,7 @@ <email>java@gentoo.org</email> </maintainer> <upstream> - <remote-id type="github">eclipse-ee4j/common-annotations-api</remote-id> + <doc>https://jakarta.ee/specifications/annotations/</doc> + <remote-id type="github">jakartaee/common-annotations-api</remote-id> </upstream> </pkgmetadata> diff --git a/dev-java/jakarta-annotations-api/Manifest b/dev-java/jakarta-annotations-api/Manifest deleted file mode 100644 index 16fcbd26e2d8..000000000000 --- a/dev-java/jakarta-annotations-api/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -DIST jakarta-annotations-api-2.1.1.tar.gz 83788 BLAKE2B be9904337199bd8cf9e5748d53b4536b3562446d499992b97c7e413e2e2d9ae0c8ba50d601950a0feec8bce4c4c35093b7b8f87ad60ea407452f502996045e54 SHA512 8a61cb8a9da55efd7c5172aa9a134eae7d94489a66ef749c619a7fc596122fd50f3dda7a954d78f664132c72ce999d2d3ad01b70e1d2cb2072c881327de11d82 -EBUILD jakarta-annotations-api-2.1.1.ebuild 696 BLAKE2B 5711b511271e8f423ecdbfb05c33d826265543511ae01b1cee6af7f0c07d94a5be2ac121fc0e2a42833b982620a5ce3110742aa73e610dccef0fd59b9866ef21 SHA512 39a1ceebc46e7a3553a634ceb2fbf7ebba334eb318aa07bf15d8e11ed5ee7726210d70a3fd1a1873dc79f4b787407647af4a012f510bd11f0e4a008bc0c8183f -MISC metadata.xml 317 BLAKE2B 82d85cb4f96a2b03658bd4192ced1de7af9bb2c4be9acef469f2ddd731e27d9c32b03f603cdff91c8be83a99b0b57a9788b9272705dfd6a35f88aaf3ded7c685 SHA512 71166d7552e7b5e73bafb0bfc35cbaded2fdce8d278ca83e7a394251b9e9ca909d36e50302c0e945343838a3b911fb01cf07b5222a08ff41f8f605d482541075 diff --git a/dev-java/jakarta-interceptors/Manifest b/dev-java/jakarta-interceptors/Manifest index ebc38e1f46e6..63aaef6b476a 100644 --- a/dev-java/jakarta-interceptors/Manifest +++ b/dev-java/jakarta-interceptors/Manifest @@ -1,3 +1,3 @@ DIST jakarta-interceptors-2.1.0.tar.gz 85830 BLAKE2B 044fa06fa189a7b5dc73c1a33a04939bd895f488acabecae5564cea32419f213e75a3064578ffd462fcbf6de9212178bc389912f15f5ab0f63de729c4b6acc4d SHA512 e3a72bc181101fa550088a1ea7b284d693a4222de97a4a91e0c56d8fe1a3c50da1b56d692da73c5cfc4c36ea3bcbe15d0fa8321c8e521ea7c241a48151125bc6 -EBUILD jakarta-interceptors-2.1.0.ebuild 1031 BLAKE2B 0f1f41a251c5288aec06efa393fc957776d29e32b7d90509ab124fd48a9bf96b2e1a3924060e75ac97491fe1de403f465c6700072caf98b062721fdf10696b55 SHA512 711ec0b18e87a6c8dd30b50fb1b8fbcf4ac2ca7f74887a42dca4498b24174d36c4d1c1eb01d86236979c60aa80a18ff3cbc883dfef06a5c44fc73a01d49de606 +EBUILD jakarta-interceptors-2.1.0-r1.ebuild 1028 BLAKE2B 24c5bad5bdc7ea7129cbc4c3cff378fc65b34895c7aa3caa5d9a92a75d11e8b4a3429649ff93d0b3978a0a1e363fd013f9033575a440ef3d98f31253127c3ef4 SHA512 c5d3841b26c304f69ca52648b8ac764691d1d782d6ec4d9be7ae69abb77eb5548968c7131b97f55306b4c0edd1b62b0a873be6ed23372b9aa56076aa937f3f86 MISC metadata.xml 572 BLAKE2B 4b3e55f3d7710a96a423082bd60992faf4f20d954cc49b324f816cc206ad479aa799d813fb3e6e16c1c170f35520420dc1148b0f0887d4c9df9f15e4407a8f50 SHA512 f79eb626db19b5965084d6f03b3195d80f4268f0852bc7bba5e221afc5476830e54ecb414c1f5044a9ec45be37eb2e3417b71e7e47098d31a08e543979d38070 diff --git a/dev-java/jakarta-interceptors/jakarta-interceptors-2.1.0.ebuild b/dev-java/jakarta-interceptors/jakarta-interceptors-2.1.0-r1.ebuild index 0f163e5b9ba2..6e96cc616ad1 100644 --- a/dev-java/jakarta-interceptors/jakarta-interceptors-2.1.0.ebuild +++ b/dev-java/jakarta-interceptors/jakarta-interceptors-2.1.0-r1.ebuild @@ -14,20 +14,19 @@ inherit java-pkg-2 java-pkg-simple DESCRIPTION="Jakarta Interceptors" HOMEPAGE="https://projects.eclipse.org/projects/ee4j.interceptors" SRC_URI="https://github.com/jakartaee/interceptors/archive/${PV}-RELEASE.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/interceptors-${PV}-RELEASE" LICENSE="EPL-2.0 GPL-2-with-classpath-exception" SLOT="0" KEYWORDS="amd64 arm64 ppc64" DEPEND=" - dev-java/jakarta-annotations-api:0 + dev-java/jakarta-annotation-api:0 >=virtual/jdk-11:* " RDEPEND=">=virtual/jre-1.8:*" DOCS=( {CONTRIBUTING,NOTICE,README}.md ) -S="${WORKDIR}/interceptors-${PV}-RELEASE" - -JAVA_CLASSPATH_EXTRA="jakarta-annotations-api" +JAVA_CLASSPATH_EXTRA="jakarta-annotation-api" JAVA_SRC_DIR="api/src/main/java" diff --git a/dev-java/memoryfilesystem/Manifest b/dev-java/memoryfilesystem/Manifest index 5f69e3123496..3701a6f5529c 100644 --- a/dev-java/memoryfilesystem/Manifest +++ b/dev-java/memoryfilesystem/Manifest @@ -1,3 +1,3 @@ DIST memoryfilesystem-2.3.0.tar.gz 127429 BLAKE2B 74ce26328db840d3fce6aebc089cbe6921c2ab7b7448c63aedcffc7358890785ec10f7823d7bd686e3a82bdfb84b9c7c796f49f377f577473a98b298cd04848d SHA512 1aac6b19fe0f6f6c950f13fff3507c61e3307d8d400cba664ae7907c0b4fab03166482ab6515bf355fe27498775ac8ee2850eca8c510e3e72a481b00fec63078 -EBUILD memoryfilesystem-2.3.0.ebuild 1318 BLAKE2B 2f63950793fd27a143c838fea3cba3e98ee71c336e426db65daf6bccdec7273cfdc7c24ae58d5fe6eda2bf707c8596916634f7265e0de93f8dfa0c9aaf4a44d5 SHA512 94463b07520944d451b6e218276b2e6d4620b588d929b28a268a9cdaff9cf73c350728bf645e36aa9dc171c9fd2f6febb1734740816eb36f959aae50417d1861 +EBUILD memoryfilesystem-2.3.0-r1.ebuild 1316 BLAKE2B 80170d532d1a96debfd58212bf9c4442e10559c6a54191e51192edb116e3b46c2d6981a68f16e3615c0df71b4250b744a0a4010870006f6e730e4e709545109a SHA512 7853b79d6ae51b43421ba8f5919bed6c8e2e36f9aef04dd88a15677243a74699fe2500857f36e0d437842bf767ad4e20c3a5464ae12d835c1ede32639dea43f1 MISC metadata.xml 308 BLAKE2B 799bb2d5fb213bd1804d90ddbaf4359f1d5d003b3f9a131b421241ea18be94c904067a453772c1f8a38acb07f98cdea8982c300aa9ded78432cf3bb2eae4e9a0 SHA512 2e6ea658ad60e20acbed67f9f300905a7fe84d457ab42acb1f2486e079c77860520ad8323041e14af21fd17a6d5983c66561e5345010267639aeb84d56e0c86c diff --git a/dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild b/dev-java/memoryfilesystem/memoryfilesystem-2.3.0-r1.ebuild index 3b9997332847..2d40f7efbad3 100644 --- a/dev-java/memoryfilesystem/memoryfilesystem-2.3.0.ebuild +++ b/dev-java/memoryfilesystem/memoryfilesystem-2.3.0-r1.ebuild @@ -11,13 +11,14 @@ inherit java-pkg-2 java-pkg-simple DESCRIPTION="An in memory implementation of a JSR-203 file system." HOMEPAGE="https://github.com/marschall/memoryfilesystem" SRC_URI="https://github.com/marschall/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}" LICENSE="MIT" SLOT="0" KEYWORDS="amd64 arm64 ppc64" CP_DEPEND=" - dev-java/jakarta-annotations-api:0 + dev-java/jakarta-annotation-api:0 " DEPEND=" @@ -30,8 +31,6 @@ RDEPEND=" ${CP_DEPEND} " -S="${WORKDIR}/${P}" - JAVA_SRC_DIR="src/main/java" JAVA_RESOURCE_DIRS="src/main/resources" diff --git a/dev-java/randomized-runner/Manifest b/dev-java/randomized-runner/Manifest index 1fce75e2dfbd..92dde6e1f949 100644 --- a/dev-java/randomized-runner/Manifest +++ b/dev-java/randomized-runner/Manifest @@ -1,3 +1,5 @@ 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 EBUILD randomized-runner-2.8.0.ebuild 1634 BLAKE2B aecfb7f6000a0138bf18d530c5e880963f158075125a2c0a09cc2d2ed2c76fb8c628b9282418759d81769db2df6386cd99f6f21b17a70dd41f6dc9b13869d796 SHA512 a04c24c283da4fce34612e9dce88fd0bd2cd4920cbdd2777176c0ea7bbe390f1116c74f0144bb7229d6d69d030341ee1e41a16e2aba9842cfd12fb003d0a75f5 +EBUILD randomized-runner-2.8.2.ebuild 1358 BLAKE2B 0012b9ce825d4c6daf7ea6d190d63c4d2f77752aa7baa10df071715c64c444cca03ee58afbbe78795fbff1735410b95dcdc394e085e269f4698111c12b7b970a SHA512 c0b8e4000d41d0a2a2680e17d50fb1e09ea32aba081564074be4fd2044c6ecf3b9293849f24bb8c2366960e2307e0ecdac27238dbf6f816f697d53652c941935 MISC metadata.xml 317 BLAKE2B 3da80829ccd32c18e7f9d05eaffee0f9433c2d0893363e911f1a0fb6d4260507ec4712c7035cdb2bd9d7b3fc7269d60f8346f2d82eb9bf7f3e25c03068ec1edd SHA512 f72fc2cfb58f31854ceb21c43f771b7eaf9b89d444e54179e54b2940ab7759f702640535f89b2101b65585ac8ea73d13c64583ae485608ab5a88e8f35f5a2a94 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 +} |