From 9991465b0b90d77b2a8a2ae833b6ecd99e6b5101 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 8 Jan 2025 06:41:21 +0000 Subject: gentoo auto-resync : 08:01:2025 - 06:41:21 --- dev-java/Manifest.gz | Bin 55351 -> 55359 bytes dev-java/bnd/Manifest | 2 +- dev-java/bnd/bnd-7.1.0-r1.ebuild | 100 ++++++ dev-java/bnd/bnd-7.1.0.ebuild | 100 ------ dev-java/jakarta-annotation-api/Manifest | 2 +- .../jakarta-annotation-api-3.0.0.ebuild | 4 +- dev-java/javaparser-core/Manifest | 2 + .../javaparser-core/javaparser-core-3.26.3.ebuild | 59 ++++ dev-java/json-simple/Manifest | 2 + dev-java/json-simple/json-simple-4.0.1.ebuild | 26 ++ dev-java/json-smart/Manifest | 2 + dev-java/json-smart/json-smart-2.5.1.ebuild | 70 +++++ dev-java/json/Manifest | 2 + dev-java/json/json-20241224.ebuild | 81 +++++ dev-java/junit/Manifest | 2 +- dev-java/junit/junit-5.10.3-r1.ebuild | 349 +++++++++++++++++++++ dev-java/junit/junit-5.10.3.ebuild | 349 --------------------- dev-java/open-test-reporting-events/Manifest | 2 + .../open-test-reporting-events-0.2.0_pre1.ebuild | 68 ++++ dev-java/randomized-runner/Manifest | 2 +- .../randomized-runner-2.8.2.ebuild | 4 +- 21 files changed, 771 insertions(+), 457 deletions(-) create mode 100644 dev-java/bnd/bnd-7.1.0-r1.ebuild delete mode 100644 dev-java/bnd/bnd-7.1.0.ebuild create mode 100644 dev-java/javaparser-core/javaparser-core-3.26.3.ebuild create mode 100644 dev-java/json-simple/json-simple-4.0.1.ebuild create mode 100644 dev-java/json-smart/json-smart-2.5.1.ebuild create mode 100644 dev-java/json/json-20241224.ebuild create mode 100644 dev-java/junit/junit-5.10.3-r1.ebuild delete mode 100644 dev-java/junit/junit-5.10.3.ebuild create mode 100644 dev-java/open-test-reporting-events/open-test-reporting-events-0.2.0_pre1.ebuild (limited to 'dev-java') diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz index e8a706c32e1e..f5fdd731deee 100644 Binary files a/dev-java/Manifest.gz and b/dev-java/Manifest.gz differ diff --git a/dev-java/bnd/Manifest b/dev-java/bnd/Manifest index 99781da478c8..2902dbc52d3d 100644 --- a/dev-java/bnd/Manifest +++ b/dev-java/bnd/Manifest @@ -1,4 +1,4 @@ AUX bnd-7.0.0-aQute.bnd.main.bnd.patch 1092 BLAKE2B 46df1673fb5e6a8e456aa7e66974333d0680bd7a8e2332e4d3d39c92d9f8fc2e3ffb0fa7fc6127f7d9747858f46f0f984a92ebed7beee9af9110d7df9c9c29ac SHA512 abd5bf36d6dc02562b9f209f85f96eb6e2a14797372a38d1e64aa76bb8e2c1b625707895e8ec9e05359de182d71e025d025bbaf00a372bbe29b9663a090d2588 DIST aQute.bnd-7.1.0.tar.gz 173448302 BLAKE2B 53c7fbbde15f27b0f96e1685ce7d4a03951360f57c9139ee36013138fae70034b0fe6b72300c2d9a0fe9dc5d2f8b5a75462e396e0383dd8b46237b43021bb35b SHA512 161a383b37cd2e6f75958d68c476c1e4fa581afc095e6c6081e4aa1822672f7ace0ec0948ee6bd5eba0c5d3490ef081bb7f4e5851ef590d4e6b9634a75963028 -EBUILD bnd-7.1.0.ebuild 2277 BLAKE2B 375f7a5ef8813696e272a8fb3a91dff758fbf0a34f84175d151a0531c2b6002b91de9cdfe67d9b3b567e6ae9284d6c2fad1b3ef6d9997c99d68ac4aba53db230 SHA512 1b48480b7b08c9c6f688d160dcd7a162e2cd166f112982a57b1b3ccb93be460e7d6122720cba9bde0208d8601985a0cec4d88018d312dfb356c3780d8023c397 +EBUILD bnd-7.1.0-r1.ebuild 2287 BLAKE2B e60fd2eda51b33ffcf362ad769ae73080938429e4fb04a70c435359161a5ba2b808c44edc33743b06853dd1dfe380179c7b08f88192e44e43303e241a8688366 SHA512 28eeaac67c98acc3ba0fdb72a2caaaaee874f21d8bd56c07e1192ed520a82dff2bd4aabb915c232fd07af13ea558c2c5263d171d393bdb083e65a36904c48055 MISC metadata.xml 294 BLAKE2B 66837ec99fde5f758bfca40e387481d9e99d8ea6c520b4ec74fd83cf51670aa2626277f231fb6e0159495da497d8c74725ec18fa2d09d4fc1223e0e84a13f58a SHA512 e79f2bc0d9b0e9981f3688d97299a4897f453695dbeebb6bd44e93706bb19e6b2542d3d89cc8f222cf353604bf47b6134ab8f67bb070650a558736a9ff5e6cc4 diff --git a/dev-java/bnd/bnd-7.1.0-r1.ebuild b/dev-java/bnd/bnd-7.1.0-r1.ebuild new file mode 100644 index 000000000000..b7a5ea224d45 --- /dev/null +++ b/dev-java/bnd/bnd-7.1.0-r1.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="biz.aQute.bnd:biz.aQute.bnd:${PV}" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="bndlib: A Swiss Army Knife for OSGi" +HOMEPAGE="https://bnd.bndtools.org/" +SRC_URI="https://github.com/bndtools/bnd/archive/${PV/_rc/.RC}.tar.gz -> aQute.bnd-${PV}.tar.gz" +S="${WORKDIR}/${P/_rc/.RC}" + +LICENSE="Apache-2.0 EPL-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm64" + +BDEPEND="app-arch/zip" + +CP_DEPEND=" + ~dev-java/bndlib-${PV}:0 + dev-java/felix-resolver:0 + dev-java/guava:0 + <=dev-java/javaparser-core-3.13.10:0 + dev-java/jline:2 + dev-java/jtwig-core:0 + dev-java/osgi-annotation:0 + dev-java/osgi-cmpn:8 + dev-java/osgi-core:0 + dev-java/slf4j-simple:0 + dev-java/snakeyaml:0 + dev-java/xz-java:0 +" + +DEPEND="${CP_DEPEND} + dev-java/commons-lang:3.6 + dev-java/eclipse-jdt-annotation:0 + dev-java/felix-gogo-runtime:0 + dev-java/slf4j-api:0 + dev-java/jtwig-reflection:0 + dev-java/osgi-service-log:0 + dev-java/osgi-service-subsystem:0 + >=virtual/jdk-17:*" + +RDEPEND="${CP_DEPEND} + >=virtual/jre-17:*" + +PATCHES=( + "${FILESDIR}/bnd-7.0.0-aQute.bnd.main.bnd.patch" +) + +JAVA_AUTOMATIC_MODULE_NAME="biz.aQute.bnd" +JAVA_CLASSPATH_EXTRA=" + commons-lang-3.6 + eclipse-jdt-annotation + jtwig-reflection + felix-gogo-runtime + osgi-service-subsystem + slf4j-api +" +JAVA_MAIN_CLASS="aQute.bnd.main.bnd" +JAVA_RESOURCE_DIRS="res" +JAVA_SRC_DIR=( + "biz.aQute.bnd.exporters/src" + "biz.aQute.bnd.reporter/src" + "biz.aQute.bnd/src" + "biz.aQute.remote/src" + "biz.aQute.repository/src" + "biz.aQute.resolve/src" +) + +src_prepare() { + default #780585 + java-pkg-2_src_prepare + mkdir res || die + + # java-pkg-simple wants resources in JAVA_RESOURCE_DIRS + pushd biz.aQute.bnd/src > /dev/null || die + find -type f \ + ! -name '*.java' \ + | xargs cp --parent -t ../../res || die + popd > /dev/null || die +} + +src_compile() { + # There is another version of osgi-service-log in osgi-core-0 + JAVA_GENTOO_CLASSPATH_EXTRA=":$(java-pkg_getjars --build-only osgi-service-log)" + java-pkg-simple_src_compile + + # remove classes which are not in upstream's jar file + zip -d ${PN}.jar \ + "*/remote/agent/*" \ + "*/remote/embedded/*" \ + "*/remote/main/*" \ + "*/remote/plugin/*" \ + "*/remote/test/*" \ + || die +} diff --git a/dev-java/bnd/bnd-7.1.0.ebuild b/dev-java/bnd/bnd-7.1.0.ebuild deleted file mode 100644 index 23e53796649e..000000000000 --- a/dev-java/bnd/bnd-7.1.0.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -JAVA_PKG_IUSE="doc source" -MAVEN_ID="biz.aQute.bnd:biz.aQute.bnd:${PV}" - -inherit java-pkg-2 java-pkg-simple - -DESCRIPTION="bndlib: A Swiss Army Knife for OSGi" -HOMEPAGE="https://bnd.bndtools.org/" -SRC_URI="https://github.com/bndtools/bnd/archive/${PV/_rc/.RC}.tar.gz -> aQute.bnd-${PV}.tar.gz" -S="${WORKDIR}/${P/_rc/.RC}" - -LICENSE="Apache-2.0 EPL-2.0" -SLOT="0" -KEYWORDS="amd64 ~arm64" - -BDEPEND="app-arch/zip" - -CP_DEPEND=" - ~dev-java/bndlib-${PV}:0 - dev-java/felix-resolver:0 - dev-java/guava:0 - dev-java/javaparser-core:0 - dev-java/jline:2 - dev-java/jtwig-core:0 - dev-java/osgi-annotation:0 - dev-java/osgi-cmpn:8 - dev-java/osgi-core:0 - dev-java/slf4j-simple:0 - dev-java/snakeyaml:0 - dev-java/xz-java:0 -" - -DEPEND="${CP_DEPEND} - dev-java/commons-lang:3.6 - dev-java/eclipse-jdt-annotation:0 - dev-java/felix-gogo-runtime:0 - dev-java/slf4j-api:0 - dev-java/jtwig-reflection:0 - dev-java/osgi-service-log:0 - dev-java/osgi-service-subsystem:0 - >=virtual/jdk-17:*" - -RDEPEND="${CP_DEPEND} - >=virtual/jre-17:*" - -PATCHES=( - "${FILESDIR}/bnd-7.0.0-aQute.bnd.main.bnd.patch" -) - -JAVA_AUTOMATIC_MODULE_NAME="biz.aQute.bnd" -JAVA_CLASSPATH_EXTRA=" - commons-lang-3.6 - eclipse-jdt-annotation - jtwig-reflection - felix-gogo-runtime - osgi-service-subsystem - slf4j-api -" -JAVA_MAIN_CLASS="aQute.bnd.main.bnd" -JAVA_RESOURCE_DIRS="res" -JAVA_SRC_DIR=( - "biz.aQute.bnd.exporters/src" - "biz.aQute.bnd.reporter/src" - "biz.aQute.bnd/src" - "biz.aQute.remote/src" - "biz.aQute.repository/src" - "biz.aQute.resolve/src" -) - -src_prepare() { - default #780585 - java-pkg-2_src_prepare - mkdir res || die - - # java-pkg-simple wants resources in JAVA_RESOURCE_DIRS - pushd biz.aQute.bnd/src > /dev/null || die - find -type f \ - ! -name '*.java' \ - | xargs cp --parent -t ../../res || die - popd > /dev/null || die -} - -src_compile() { - # There is another version of osgi-service-log in osgi-core-0 - JAVA_GENTOO_CLASSPATH_EXTRA=":$(java-pkg_getjars --build-only osgi-service-log)" - java-pkg-simple_src_compile - - # remove classes which are not in upstream's jar file - zip -d ${PN}.jar \ - "*/remote/agent/*" \ - "*/remote/embedded/*" \ - "*/remote/main/*" \ - "*/remote/plugin/*" \ - "*/remote/test/*" \ - || die -} diff --git a/dev-java/jakarta-annotation-api/Manifest b/dev-java/jakarta-annotation-api/Manifest index ede529350df3..c3b8900340cb 100644 --- a/dev-java/jakarta-annotation-api/Manifest +++ b/dev-java/jakarta-annotation-api/Manifest @@ -1,5 +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 +EBUILD jakarta-annotation-api-3.0.0.ebuild 696 BLAKE2B 12b4cae253e87cc7c1632e88a068a8c47cc69346473f73981802fb295e1473db0a14ff0f0a36fd4a219886aaa4efd4e948e83d37d9ce2dfbf13aeeaa5722ec96 SHA512 194b252c750330ca4b5269a9f04d28836cdfb635e3db2787b994b47059cb5dbda2a1e4a13cbb59d4f0e4a940d48b74613be74bc3b695114dc6fbc36d9446f03e MISC metadata.xml 374 BLAKE2B a6fa1b75532b330bd8f718f15dda6c5eb20bff27d16507b1b9124694f376b74243346ae93e201eb04b124a11a8cad4ac619c5f517994567b29c3bc64d7f0a9cf SHA512 6136a5a32b9ffae6cdfba44870fb131c49020ffe255e8aa5851f367fad15f1f9b8eaffd3ce42842aa601160ee1e7c1b08dc247f49120f0902c0037891591b5f8 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 index 7d5404665521..1003626c65b7 100644 --- 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 @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,7 +15,7 @@ S="${WORKDIR}/common-annotations-api-${PV}" LICENSE="EPL-2.0 GPL-2-with-classpath-exception" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64" +KEYWORDS="amd64 arm64 ppc64" DEPEND=">=virtual/jdk-11:*" RDEPEND=">=virtual/jre-1.8:*" diff --git a/dev-java/javaparser-core/Manifest b/dev-java/javaparser-core/Manifest index 8a70eac32915..bae5f2191af0 100644 --- a/dev-java/javaparser-core/Manifest +++ b/dev-java/javaparser-core/Manifest @@ -1,3 +1,5 @@ DIST javaparser-3.13.10.tar.gz 7043664 BLAKE2B 5d2e35cfa22dbcb425365e2e7806c46b989b92a84472fbd80d42716fbb2a5ddcad2daec6214be689b1dcc6541890527e422953c083e713e9f1d22ce5b3035e90 SHA512 b90a6b7b2fbb6a13cc36cdd17acd09a22adb9e62311862c2a67a9ea339b98e245c93ba371645e3c695e76966b21e3bc01accf040482e30b2b6882a5569db5806 +DIST javaparser-3.26.3.tar.gz 18493336 BLAKE2B a3a01239caf9f215bb470c060eff82b8db607fab6cffa637b06937f4e80f1fd530f1991e750aa5c91b9b0b5a173e77eb84c104a14d1353b7de233a56cd8284dc SHA512 8e109eec868e5aeceb2c91e09f04286f4e9944601359febe80bc29074b6eb306fd058a93e41cf7824ce88a392026321cca637a8cf601e6100b74b06a4fe39b80 EBUILD javaparser-core-3.13.10.ebuild 1211 BLAKE2B 22e8f40bfb00e55a292fdb61814f31aeb351ec8013369671158cbe3802beec03aa42e3347bc102d203c59a2af02109e7168ee9b172f482f2fa0fd7e0e2200900 SHA512 231035f0eedb88f6a5b86738a41ed42f78913f7890ab802f4ba9f679ef8aea9e612072d16db25177c4e4b96cc6d4d51ca50a14e147758a59edfd5b9f03a02924 +EBUILD javaparser-core-3.26.3.ebuild 2046 BLAKE2B 6d5ffcb1cc26619b0e9cb47e1f387da9f1c035c83a611b44b604b2738a19df79e35a4af6acf5f1a64a0b831204342f9a34f8fd0d2c3a29817b8fb6ed817b2c83 SHA512 f97e80dcfb9f343f675d88446ef915f12ec85413f00ac4c1f992a4061041bd1d98549dfb468464bc9d1c5d419b5f4ff9f52c93a5e01c5292010d9ae94811800c MISC metadata.xml 303 BLAKE2B ca2ecedcd6040bfd810f56a32a4134a24013fda0f6c4571db1b01e5549d8e677e02fce8569222532cbdf77ce9a59d770740fa9b604f19de439a9ebb10ce7f15a SHA512 61913597281b7b29a767d4ab04d31aa92b7645ca2cf631c8ca233d7b6293d678c3e8b937375518391c695fb1fa44a2546f7883352729c9b3b0751d687416ceae diff --git a/dev-java/javaparser-core/javaparser-core-3.26.3.ebuild b/dev-java/javaparser-core/javaparser-core-3.26.3.ebuild new file mode 100644 index 000000000000..d623f5d390b8 --- /dev/null +++ b/dev-java/javaparser-core/javaparser-core-3.26.3.ebuild @@ -0,0 +1,59 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="com.github.javaparser:javaparser-core:${PV}" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Java 1-21 Parser and Abstract Syntax Tree for Java" +HOMEPAGE="https://javaparser.org/" +SRC_URI="https://github.com/javaparser/javaparser/archive/${P/core/parent}.tar.gz -> javaparser-${PV}.tar.gz" +S="${WORKDIR}/javaparser-${P/core/parent}" + +LICENSE="Apache-2.0 LGPL-3" +# dev-java/bnd-7.1.0 seems not to like this version. +# biz.aQute.bnd.reporter/src/biz/aQute/bnd/reporter/codesnippet/JavaSnippetReader.java:20: error: cannot find symbol +# import com.github.javaparser.printer.PrettyPrinterConfiguration; +# ^ +# symbol: class PrettyPrinterConfiguration +# location: package com.github.javaparser.printer +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +JAVACC_SLOT="7.0.13" +BDEPEND="dev-java/javacc:${JAVACC_SLOT}" + +# Does not compile with >=jdk:21 (not even with 'mvn clean compile'): +# javaparser-core/src/main/java/com/github/javaparser/ast/NodeList.java:243: +# error: getLast() in NodeList cannot implement getLast() in List +# public Optional getLast() { +# ^ +# return type Optional is not compatible with N +# where N,E are type-variables: +# N extends Node declared in class NodeList +# E extends Object declared in interface List +DEPEND="=11 for module-info.java in this package +# https://bugs.gentoo.org/796875#c3 +DEPEND=" + >=virtual/jdk-11:* + ${CP_DEPEND} + ${COND_DEPEND} + test? ( dev-java/jimfs:0 ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} + ${COND_DEPEND} +" + +PATCHES=( + "${FILESDIR}/junit5-java18-compatibility.patch" +) + +src_prepare() { + default #780585 + java-pkg-2_src_prepare +} + +src_configure() { + # Please make sure to declare a module's dependencies before the module itself. + # Useful upstream documentation regarding modules and dependencies: + # https://junit.org/junit5/docs/current/user-guide/index.html#dependency-metadata + # https://junit.org/junit5/docs/current/user-guide/index.html#dependency-diagram + JUNIT5_MODULES=( + junit-platform-commons + junit-platform-engine + junit-platform-launcher + junit-platform-reporting + junit-platform-console # For launching tests from CLI; + # an eclass would need it to support running tests using JUnit 5 + + $(use suite && echo \ + junit-platform-suite-api \ + junit-platform-suite-commons \ + junit-platform-suite-engine \ + ) + + junit-jupiter-api + junit-jupiter-engine # For JUnit Jupiter tests -- the so-called + # "JUnit 5 tests", which cannot run on earlier JUnit versions + junit-jupiter-params # For parameterized tests; the junit-jupiter + # aggregator module includes it, so building it unconditionally + $(usev migration-support junit-jupiter-migrationsupport) + + $(usev vintage junit-vintage-engine) + + # Modules not included: + # - junit-bom: Has no sources; solely for helping Maven and Gradle + # projects that use JUnit 5 manage dependencies easier + # - junit-jupiter: Aggregator; does not have 'src/main/java' + # - junit-platform-console-standalone: Has no sources; solely used + # by the upstream to build a fat JAR that bundles everything, so + # users can use just this single JAR to run JUnit 5 + # - junit-platform-jfr: For an experimental feature + # - junit-platform-runner: Deprecated + # - junit-platform-suite: Aggregator; does not have 'src/main/java' + # - junit-platform-testkit: Requires >=dev-java/assertj-core-3.14.0 + ) + local cp_packages=() + (use migration-support || use vintage) && cp_packages+=( junit-4 ) + local save_IFS="${IFS}" + IFS=',' JAVA_GENTOO_CLASSPATH="${cp_packages[*]}" + IFS="${save_IFS}" + + JUNIT5_VM_VERSION="$(java-config --get-env PROVIDES_VERSION)" +} + +junit5_foreach_module() { + local module + for module in "${JUNIT5_MODULES[@]}"; do + junit5_module_do "${module}" "${@}" + done +} + +junit5_module_do() { + local module="${1}" + # Invocation of the passed function will not be guarded by '|| die'. + # Like the case for multibuild_foreach_variant(), it is recommended + # that the passed function itself calls 'die'. + local func=( "${@:2}" ) + + einfo "Running '${func[@]}' for ${module} ..." + pushd "${module}" > /dev/null || die "Failed to enter directory '${module}'" + + # Set up Java eclass variables that are + # supposed to be set in the ebuild global scope + + local JAVA_JAR_FILENAME="${module}.jar" + + local JAVA_SRC_DIR=( + src/main/java + src/module + ) + + local JAVA_RESOURCE_DIRS=() + local default_resource_dir="src/main/resources" + [[ -d "${default_resource_dir}" ]] && + JAVA_RESOURCE_DIRS+=( "${default_resource_dir}" ) + + if [[ "${module}" == junit-platform-console ]]; then + local JAVA_MAIN_CLASS="org.junit.platform.console.ConsoleLauncher" + local JAVA_LAUNCHER_FILENAME="${module}" + fi + + # Invoke the passed function + "${func[@]}" + local ret="${?}" + + popd > /dev/null || die "Failed to leave directory '${module}'" + return "${ret}" +} + +junit5_gen_cp() { + echo "$(java-pkg_getjars --build-only --with-dependencies \ + "${JAVA_GENTOO_CLASSPATH}"):${JAVA_GENTOO_CLASSPATH_EXTRA}" +} + +junit5_module_compile() { + if [[ "${module}" == junit-platform-console ]]; then + # Unlike other modules that have a src/main/java9 directory, for this + # module, the upstream puts the class files built from src/main/java9 + # in their JAR's top-level directory instead of META-INF/versions/9 + cp -rv src/main/java9/* src/main/java/ || + die "Failed to merge ${module}'s sources for Java 9+" + # Remove for the [[ -d src/main/java9 ]] test + # during versioned directory handling + rm -rv src/main/java9 || + die "Failed to remove ${module}'s Java 9+ source directory" + fi + + java-pkg-simple_src_compile + local sources="sources.lst" + local classes="target/classes" + + # Collect a list of all compiler input files for building Javadoc + local source + while read source; do + echo "${module}/${source}" >> "${all_sources}" + done < "${sources}" || + die "Failed to add ${module}'s sources to Javadoc input list" + + # Handle classes that will go into versioned directories. This will be + # no longer needed after https://bugs.gentoo.org/900433 is implemented. + local vm_ver + for vm_ver in 9 17; do + local versioned_src="src/main/java${vm_ver}" + if [[ -d "${versioned_src}" ]]; then + if ver_test "${JUNIT5_VM_VERSION}" -ge "${vm_ver}"; then + local versioned_classes="target/${vm_ver}/classes" + mkdir -p "${versioned_classes}" || + die "Failed to create directory for ${module}'s Java ${vm_ver}+ classes" + ejavac -d "${versioned_classes}" -encoding "${JAVA_ENCODING}" \ + -classpath "${classes}:$(junit5_gen_cp)" ${JAVAC_ARGS} \ + $(find "${versioned_src}" -type f -name '*.java') + "$(java-config --jar)" -uvf "${JAVA_JAR_FILENAME}" \ + --release "${vm_ver}" -C "${versioned_classes}" . || + die "Failed to add ${module}'s Java ${vm_ver}+ classes to JAR" + else + # Modules that may hit this branch as of 5.9.2: + # - junit-platform-console: + # src/main/java17/.../ConsoleUtils.java tries to use + # java.io.Console.charset() (available since Java 17) to get + # the default output charset. It is fine to not use this + # file, even if the built artifacts will be used on JRE 17+, + # as src/main/java/.../ConsoleUtils.java still gets the + # default from java.nio.charset.Charset.defaultCharset(). + elog "JDK ${JUNIT5_VM_VERSION} used; skipping Java ${vm_ver}-dependent parts in ${module}" + fi + fi + done + + # Add the current module's JAR to classpath + # for the module's reverse dependencies in this package + JAVA_GENTOO_CLASSPATH_EXTRA+=":${S}/${module}/${JAVA_JAR_FILENAME}" +} + +src_compile() { + local all_sources="${S}/all-sources.lst" + junit5_foreach_module junit5_module_compile + + if use doc; then + einfo "Generating Javadoc for all modules ..." + local apidoc="target/api" + mkdir -p "${apidoc}" || die "Failed to create Javadoc directory" + ejavadoc -d "${apidoc}" \ + -encoding "${JAVA_ENCODING}" -docencoding UTF-8 -charset UTF-8 \ + -classpath "$(junit5_gen_cp)" ${JAVADOC_ARGS:- -quiet} \ + -windowtitle "JUnit ${PV} API" \ + "@${all_sources}" + fi +} + +src_test() { + # Running the JUnit 5 modules' tests (located in each module's + # 'src/test/java') has a few obstacles: + # - Some test sources use text blocks -- a feature introduced in Java 15. + # A JDK at a lower version, e.g. 11, cannot compile them. + # - Some test classes depend on JUnit 5 modules that this ebuild does not + # include, like junit-platform-runner and junit-platform-testkit. + # + # Therefore, this ebuild uses a simpler approach to test the artifacts just + # built: it uses the artifacts to run tests in examples under the + # 'documentation/src' directory. The test coverage will not be impressive, + # but at least this approach verifies that the copy of JUnit 5 just built + # is capable of running some simple tests launched from CLI. + + local JUNIT5_TEST_SRC_DIR="documentation/src/test/java" + local JUNIT5_TEST_RESOURCE_DIR="documentation/src/test/resources" + local JUNIT5_TEST_RM=( + $(usev !migration-support example/IgnoredTestsDemo.java) + $(use !suite && echo \ + example/DocumentationTestSuite.java \ + example/SuiteDemo.java \ + ) + $(usev !vintage example/JUnit4Tests.java) + + # Need excluded module junit-platform-runner + example/JUnitPlatformClassDemo.java + example/JUnitPlatformSuiteDemo.java + + # Need excluded module junit-platform-testkit + example/testkit/ + + # Not necessary for the tests; some files even require extra dependency + org/junit/api/tools/ + + # Needs dev-java/hamcrest; no need to pull in extra dependency + # as the examples already provide ample tests to run + example/HamcrestAssertionsDemo.java + + # Makes an HTTP request and expects a certain response + example/session/HttpTests.java + ) + + pushd "${JUNIT5_TEST_SRC_DIR}" > /dev/null || + die "Failed to enter test source directory" + rm -rv "${JUNIT5_TEST_RM[@]}" || + die "Failed to remove unneeded test sources" + # Test sources expect the working directory to be 'documentation' + sed -i -e "s|src/test/resources|${JUNIT5_TEST_RESOURCE_DIR}|g" \ + example/ParameterizedTestDemo.java || + die "Failed to update file paths in test sources" + popd > /dev/null || die "Failed to leave test source directory" + + local test_dir="${T}/junit5_src_test" + local example_classes="${test_dir}/classes" + local test_classes="${test_dir}/test-classes" + mkdir -p "${example_classes}" "${test_classes}" || + die "Failed to create test directories" + + local example_sources="${test_dir}/sources.lst" + local test_sources="${test_dir}/test-sources.lst" + find documentation/src/main/java -type f -name '*.java' > "${example_sources}" || + die "Failed to get a list of example sources" + find documentation/src/test/java -type f -name '*.java' > "${test_sources}" || + die "Failed to get a list of test sources" + + ejavac -d "${example_classes}" -encoding "${JAVA_ENCODING}" \ + -classpath "$(junit5_gen_cp)" ${JAVAC_ARGS} \ + "@${example_sources}" + + local test_cp="${example_classes}:${JUNIT5_TEST_RESOURCE_DIR}:$(junit5_gen_cp)" + test_cp="${test_cp}:$(java-pkg_getjars --build-only --with-dependencies jimfs)" + ejavac -d "${test_classes}" -encoding "${JAVA_ENCODING}" \ + -classpath "${test_cp}" ${JAVAC_ARGS} \ + "@${test_sources}" + + set -- "$(java-config --java)" -classpath "${test_classes}:${test_cp}" \ + org.junit.platform.console.ConsoleLauncher \ + --disable-ansi-colors --fail-if-no-tests --scan-classpath \ + --include-classname='^(Test.*|.+[.$]Test.*|.*Tests?|.*Demo)$' \ + --exclude-tag="exclude" + echo "${@}" >&2 + "${@}" + local status="${?}" + [[ "${status}" -eq 2 ]] && die "JUnit did not discover any tests" + [[ "${status}" -eq 0 ]] || die "ConsoleLauncher failed" +} + +junit5_module_install() { + # It is OK to let java-pkg-simple_src_install call einstalldocs for + # each module as long as each documentation file being installed + # has a unique filename among _all_ modules; otherwise, some files + # would overwrite other ones. + if [[ -f README.md ]]; then + mv -v README.md "README-${module}.md" || + die "Failed to rename ${module}'s README.md" + fi + java-pkg-simple_src_install +} + +src_install() { + junit5_foreach_module junit5_module_install + einstalldocs # For project-global documentation + + if use doc; then + einfo "Installing Javadoc for all modules ..." + local apidoc="target/api" + java-pkg_dojavadoc "${apidoc}" + fi +} diff --git a/dev-java/junit/junit-5.10.3.ebuild b/dev-java/junit/junit-5.10.3.ebuild deleted file mode 100644 index 81a4571700d9..000000000000 --- a/dev-java/junit/junit-5.10.3.ebuild +++ /dev/null @@ -1,349 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# Declare the 'doc' USE flag in IUSE -- not JAVA_PKG_IUSE -- to -# prevent java-pkg-simple.eclass from handling Javadoc; instead, -# let this ebuild handle Javadoc generation and installation itself. -# This ebuild invokes java-pkg-simple.eclass's phase functions -# multiple times to build multiple modules, but the eclass always -# installs each module's Javadoc to the same directory, which would -# trigger an error when the second module's Javadoc is installed. -JAVA_PKG_IUSE="source test" - -inherit java-pkg-2 java-pkg-simple - -DESCRIPTION="Simple framework to write repeatable tests" -HOMEPAGE="https://junit.org/junit5/" -DEB="5.10.1-1" -SRC_URI="https://github.com/junit-team/junit5/archive/r${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/junit5-r${PV}" - -LICENSE="EPL-2.0" -SLOT="5" -KEYWORDS="amd64 arm64 ppc64" -IUSE="doc migration-support suite vintage" - -CP_DEPEND=" - dev-java/apiguardian-api:0 - dev-java/opentest4j:0 - dev-java/open-test-reporting-events:0 - dev-java/picocli:0 - dev-java/univocity-parsers:0 -" - -# java-utils-2.eclass does not support -# USE-conditional dependencies in CP_DEPEND -COND_DEPEND=" - migration-support? ( dev-java/junit:4 ) - vintage? ( dev-java/junit:4 ) -" - -# Limiting JDK version to >=11 for module-info.java in this package -# https://bugs.gentoo.org/796875#c3 -DEPEND=" - >=virtual/jdk-11:* - ${CP_DEPEND} - ${COND_DEPEND} - test? ( dev-java/jimfs:0 ) -" - -RDEPEND=" - >=virtual/jre-1.8:* - ${CP_DEPEND} - ${COND_DEPEND} -" - -PATCHES=( - "${FILESDIR}/junit5-java18-compatibility.patch" -) - -src_prepare() { - default #780585 - java-pkg-2_src_prepare -} - -src_configure() { - # Please make sure to declare a module's dependencies before the module itself. - # Useful upstream documentation regarding modules and dependencies: - # https://junit.org/junit5/docs/current/user-guide/index.html#dependency-metadata - # https://junit.org/junit5/docs/current/user-guide/index.html#dependency-diagram - JUNIT5_MODULES=( - junit-platform-commons - junit-platform-engine - junit-platform-launcher - junit-platform-reporting - junit-platform-console # For launching tests from CLI; - # an eclass would need it to support running tests using JUnit 5 - - $(use suite && echo \ - junit-platform-suite-api \ - junit-platform-suite-commons \ - junit-platform-suite-engine \ - ) - - junit-jupiter-api - junit-jupiter-engine # For JUnit Jupiter tests -- the so-called - # "JUnit 5 tests", which cannot run on earlier JUnit versions - junit-jupiter-params # For parameterized tests; the junit-jupiter - # aggregator module includes it, so building it unconditionally - $(usev migration-support junit-jupiter-migrationsupport) - - $(usev vintage junit-vintage-engine) - - # Modules not included: - # - junit-bom: Has no sources; solely for helping Maven and Gradle - # projects that use JUnit 5 manage dependencies easier - # - junit-jupiter: Aggregator; does not have 'src/main/java' - # - junit-platform-console-standalone: Has no sources; solely used - # by the upstream to build a fat JAR that bundles everything, so - # users can use just this single JAR to run JUnit 5 - # - junit-platform-jfr: For an experimental feature - # - junit-platform-runner: Deprecated - # - junit-platform-suite: Aggregator; does not have 'src/main/java' - # - junit-platform-testkit: Requires >=dev-java/assertj-core-3.14.0 - ) - local cp_packages=() - (use migration-support || use vintage) && cp_packages+=( junit-4 ) - local save_IFS="${IFS}" - IFS=',' JAVA_GENTOO_CLASSPATH="${cp_packages[*]}" - IFS="${save_IFS}" - - JUNIT5_VM_VERSION="$(java-config --get-env PROVIDES_VERSION)" -} - -junit5_foreach_module() { - local module - for module in "${JUNIT5_MODULES[@]}"; do - junit5_module_do "${module}" "${@}" - done -} - -junit5_module_do() { - local module="${1}" - # Invocation of the passed function will not be guarded by '|| die'. - # Like the case for multibuild_foreach_variant(), it is recommended - # that the passed function itself calls 'die'. - local func=( "${@:2}" ) - - einfo "Running '${func[@]}' for ${module} ..." - pushd "${module}" > /dev/null || die "Failed to enter directory '${module}'" - - # Set up Java eclass variables that are - # supposed to be set in the ebuild global scope - - local JAVA_JAR_FILENAME="${module}.jar" - - local JAVA_SRC_DIR=( - src/main/java - src/module - ) - - local JAVA_RESOURCE_DIRS=() - local default_resource_dir="src/main/resources" - [[ -d "${default_resource_dir}" ]] && - JAVA_RESOURCE_DIRS+=( "${default_resource_dir}" ) - - if [[ "${module}" == junit-platform-console ]]; then - local JAVA_MAIN_CLASS="org.junit.platform.console.ConsoleLauncher" - local JAVA_LAUNCHER_FILENAME="${module}" - fi - - # Invoke the passed function - "${func[@]}" - local ret="${?}" - - popd > /dev/null || die "Failed to leave directory '${module}'" - return "${ret}" -} - -junit5_gen_cp() { - echo "$(java-pkg_getjars --build-only --with-dependencies \ - "${JAVA_GENTOO_CLASSPATH}"):${JAVA_GENTOO_CLASSPATH_EXTRA}" -} - -junit5_module_compile() { - if [[ "${module}" == junit-platform-console ]]; then - # Unlike other modules that have a src/main/java9 directory, for this - # module, the upstream puts the class files built from src/main/java9 - # in their JAR's top-level directory instead of META-INF/versions/9 - cp -rv src/main/java9/* src/main/java/ || - die "Failed to merge ${module}'s sources for Java 9+" - # Remove for the [[ -d src/main/java9 ]] test - # during versioned directory handling - rm -rv src/main/java9 || - die "Failed to remove ${module}'s Java 9+ source directory" - fi - - java-pkg-simple_src_compile - local sources="sources.lst" - local classes="target/classes" - - # Collect a list of all compiler input files for building Javadoc - local source - while read source; do - echo "${module}/${source}" >> "${all_sources}" - done < "${sources}" || - die "Failed to add ${module}'s sources to Javadoc input list" - - # Handle classes that will go into versioned directories. This will be - # no longer needed after https://bugs.gentoo.org/900433 is implemented. - local vm_ver - for vm_ver in 9 17; do - local versioned_src="src/main/java${vm_ver}" - if [[ -d "${versioned_src}" ]]; then - if ver_test "${JUNIT5_VM_VERSION}" -ge "${vm_ver}"; then - local versioned_classes="target/${vm_ver}/classes" - mkdir -p "${versioned_classes}" || - die "Failed to create directory for ${module}'s Java ${vm_ver}+ classes" - ejavac -d "${versioned_classes}" -encoding "${JAVA_ENCODING}" \ - -classpath "${classes}:$(junit5_gen_cp)" ${JAVAC_ARGS} \ - $(find "${versioned_src}" -type f -name '*.java') - "$(java-config --jar)" -uvf "${JAVA_JAR_FILENAME}" \ - --release "${vm_ver}" -C "${versioned_classes}" . || - die "Failed to add ${module}'s Java ${vm_ver}+ classes to JAR" - else - # Modules that may hit this branch as of 5.9.2: - # - junit-platform-console: - # src/main/java17/.../ConsoleUtils.java tries to use - # java.io.Console.charset() (available since Java 17) to get - # the default output charset. It is fine to not use this - # file, even if the built artifacts will be used on JRE 17+, - # as src/main/java/.../ConsoleUtils.java still gets the - # default from java.nio.charset.Charset.defaultCharset(). - elog "JDK ${JUNIT5_VM_VERSION} used; skipping Java ${vm_ver}-dependent parts in ${module}" - fi - fi - done - - # Add the current module's JAR to classpath - # for the module's reverse dependencies in this package - JAVA_GENTOO_CLASSPATH_EXTRA+=":${S}/${module}/${JAVA_JAR_FILENAME}" -} - -src_compile() { - local all_sources="${S}/all-sources.lst" - junit5_foreach_module junit5_module_compile - - if use doc; then - einfo "Generating Javadoc for all modules ..." - local apidoc="target/api" - mkdir -p "${apidoc}" || die "Failed to create Javadoc directory" - ejavadoc -d "${apidoc}" \ - -encoding "${JAVA_ENCODING}" -docencoding UTF-8 -charset UTF-8 \ - -classpath "$(junit5_gen_cp)" ${JAVADOC_ARGS:- -quiet} \ - -windowtitle "JUnit ${PV} API" \ - "@${all_sources}" - fi -} - -src_test() { - # Running the JUnit 5 modules' tests (located in each module's - # 'src/test/java') has a few obstacles: - # - Some test sources use text blocks -- a feature introduced in Java 15. - # A JDK at a lower version, e.g. 11, cannot compile them. - # - Some test classes depend on JUnit 5 modules that this ebuild does not - # include, like junit-platform-runner and junit-platform-testkit. - # - # Therefore, this ebuild uses a simpler approach to test the artifacts just - # built: it uses the artifacts to run tests in examples under the - # 'documentation/src' directory. The test coverage will not be impressive, - # but at least this approach verifies that the copy of JUnit 5 just built - # is capable of running some simple tests launched from CLI. - - local JUNIT5_TEST_SRC_DIR="documentation/src/test/java" - local JUNIT5_TEST_RESOURCE_DIR="documentation/src/test/resources" - local JUNIT5_TEST_RM=( - $(usev !migration-support example/IgnoredTestsDemo.java) - $(use !suite && echo \ - example/DocumentationTestSuite.java \ - example/SuiteDemo.java \ - ) - $(usev !vintage example/JUnit4Tests.java) - - # Need excluded module junit-platform-runner - example/JUnitPlatformClassDemo.java - example/JUnitPlatformSuiteDemo.java - - # Need excluded module junit-platform-testkit - example/testkit/ - - # Not necessary for the tests; some files even require extra dependency - org/junit/api/tools/ - - # Needs dev-java/hamcrest; no need to pull in extra dependency - # as the examples already provide ample tests to run - example/HamcrestAssertionsDemo.java - - # Makes an HTTP request and expects a certain response - example/session/HttpTests.java - ) - - pushd "${JUNIT5_TEST_SRC_DIR}" > /dev/null || - die "Failed to enter test source directory" - rm -rv "${JUNIT5_TEST_RM[@]}" || - die "Failed to remove unneeded test sources" - # Test sources expect the working directory to be 'documentation' - sed -i -e "s|src/test/resources|${JUNIT5_TEST_RESOURCE_DIR}|g" \ - example/ParameterizedTestDemo.java || - die "Failed to update file paths in test sources" - popd > /dev/null || die "Failed to leave test source directory" - - local test_dir="${T}/junit5_src_test" - local example_classes="${test_dir}/classes" - local test_classes="${test_dir}/test-classes" - mkdir -p "${example_classes}" "${test_classes}" || - die "Failed to create test directories" - - local example_sources="${test_dir}/sources.lst" - local test_sources="${test_dir}/test-sources.lst" - find documentation/src/main/java -type f -name '*.java' > "${example_sources}" || - die "Failed to get a list of example sources" - find documentation/src/test/java -type f -name '*.java' > "${test_sources}" || - die "Failed to get a list of test sources" - - ejavac -d "${example_classes}" -encoding "${JAVA_ENCODING}" \ - -classpath "$(junit5_gen_cp)" ${JAVAC_ARGS} \ - "@${example_sources}" - - local test_cp="${example_classes}:${JUNIT5_TEST_RESOURCE_DIR}:$(junit5_gen_cp)" - test_cp="${test_cp}:$(java-pkg_getjars --build-only --with-dependencies jimfs)" - ejavac -d "${test_classes}" -encoding "${JAVA_ENCODING}" \ - -classpath "${test_cp}" ${JAVAC_ARGS} \ - "@${test_sources}" - - set -- "$(java-config --java)" -classpath "${test_classes}:${test_cp}" \ - org.junit.platform.console.ConsoleLauncher \ - --disable-ansi-colors --fail-if-no-tests --scan-classpath \ - --include-classname='^(Test.*|.+[.$]Test.*|.*Tests?|.*Demo)$' \ - --exclude-tag="exclude" - echo "${@}" >&2 - "${@}" - local status="${?}" - [[ "${status}" -eq 2 ]] && die "JUnit did not discover any tests" - [[ "${status}" -eq 0 ]] || die "ConsoleLauncher failed" -} - -junit5_module_install() { - # It is OK to let java-pkg-simple_src_install call einstalldocs for - # each module as long as each documentation file being installed - # has a unique filename among _all_ modules; otherwise, some files - # would overwrite other ones. - if [[ -f README.md ]]; then - mv -v README.md "README-${module}.md" || - die "Failed to rename ${module}'s README.md" - fi - java-pkg-simple_src_install -} - -src_install() { - junit5_foreach_module junit5_module_install - einstalldocs # For project-global documentation - - if use doc; then - einfo "Installing Javadoc for all modules ..." - local apidoc="target/api" - java-pkg_dojavadoc "${apidoc}" - fi -} diff --git a/dev-java/open-test-reporting-events/Manifest b/dev-java/open-test-reporting-events/Manifest index c357a4d2d4f3..b1a0be637f05 100644 --- a/dev-java/open-test-reporting-events/Manifest +++ b/dev-java/open-test-reporting-events/Manifest @@ -1,3 +1,5 @@ DIST open-test-reporting-0.1.0-M1.tar.gz 98076 BLAKE2B 1780f24776ddbb31752044c7ebee85cd852425b295b2c61d25e36856123e0d9cd4420ecb4f88e17bba52746dd209a5160bfe3bf0c05ac544a0a94e74c49ce1b2 SHA512 75523de2342b1b1027e68eb738ffef8571d6bb81b2cb0d87c26b097d8aac98f52728a6a5f46420ce8bb051d60b226646aef47ec00eee5876b833ba4e1121f5c7 +DIST open-test-reporting-0.2.0-M1.tar.gz 1055220 BLAKE2B 9e0431e607ec9e4b4584d0a4508f4522724df851c3fcda4ddfbdd3b7202569c414de19bd45cb1093fd38dc7d4c7c982ee38b20cbec5d61b5e7d7baf5869f7efe SHA512 89ea03cf4e4b46a781d081cf7191f82f89c32c33f79bdc9b16f6f9046dc6913621d4a67885932f6dba4915a4357d0e77fd9f6b48f81d13aa601d75faeef9f77c EBUILD open-test-reporting-events-0.1.0_pre1.ebuild 870 BLAKE2B 5e72c23ad718a602f846ed735a600915df9e856be02775ddfa7b67f3cd905b54de098f25ee2812a9e70c814c9e03778a48e9f7c5e2d495c3c10e317c2efa30a7 SHA512 dc3876a4c11ba64ea3f1be0a9478a4e12aaae0b096674a8a5b3c6c1d01ffbdb91be1df662b637e90f131b428ae44d80974f5043192fc02099b5458b6b697cce8 +EBUILD open-test-reporting-events-0.2.0_pre1.ebuild 1880 BLAKE2B c0d891e80baceb77713b5ff1f386a72b90934e3e6c299bc0c9d1c81e61161f65d4861b929f70232edbeef929a8d0797a5b8b1cc71e9c80c7ba006f2c9e1d820d SHA512 90f24dee47581264e1a53cb27e7cd7d475c3510b90f9c5da91054362f2cfe8959641ef934a3cf94417056c851fa5959c4c25ab6210b2e7caa19cb3ab625070db MISC metadata.xml 312 BLAKE2B f86b07af484d130ae5c23e9058b5b23e2bef39aee20c40d5b2cafa22932efe57d4b9191bf67c1d68ef382db74cb6e18a4940ca5b7f4319a7b73651603797797b SHA512 3c5c337327f941f4d89fef44ea9681b307b0319408c150fa01a7b35564d2885db0a1aaad9d20af3c717cc43d2bea0337f39c8a62094da93e9acd0e765197ef0b diff --git a/dev-java/open-test-reporting-events/open-test-reporting-events-0.2.0_pre1.ebuild b/dev-java/open-test-reporting-events/open-test-reporting-events-0.2.0_pre1.ebuild new file mode 100644 index 000000000000..730a117287bf --- /dev/null +++ b/dev-java/open-test-reporting-events/open-test-reporting-events-0.2.0_pre1.ebuild @@ -0,0 +1,68 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source" +MAVEN_PROVIDES=( + "org.opentest4j.reporting:open-test-reporting-schema:${PV}-M1" + "org.opentest4j.reporting:open-test-reporting-events:${PV}-M1" +) + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Language-agnostic test reporting format and tooling" +HOMEPAGE="https://github.com/ota4j-team/open-test-reporting" +MY_PV="${PV/_pre/-M}" +SRC_URI="https://github.com/ota4j-team/open-test-reporting/archive/r${MY_PV}.tar.gz -> open-test-reporting-${MY_PV}.tar.gz" +S="${WORKDIR}/open-test-reporting-r${MY_PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +DEPEND=" + dev-java/apiguardian-api:0 + >=virtual/jdk-1.8:* +" + +RDEPEND=">=virtual/jre-1.8:*" + +JAVA_CLASSPATH_EXTRA="apiguardian-api" +JAVADOC_CLASSPATH="${JAVA_CLASSPATH_EXTRA}" +JAVADOC_SRC_DIRS=( + "schema/src/main/java" + "events/src/main/java" +) + +src_compile() { + einfo "open-test-reporting-schema.jar" + JAVA_AUTOMATIC_MODULE_NAME="org.opentest4j.reporting.schema" + JAVA_JAR_FILENAME="open-test-reporting-schema.jar" + JAVA_RESOURCE_DIRS="schema/src/main/resources" + JAVA_SRC_DIR="schema/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":open-test-reporting-schema.jar" + rm -r target || die + + einfo "open-test-reporting-events.jar" + JAVA_AUTOMATIC_MODULE_NAME="org.opentest4j.reporting.events" + JAVA_JAR_FILENAME="open-test-reporting-events.jar" + JAVA_RESOURCE_DIRS=() + JAVA_SRC_DIR="events/src/main/java" + java-pkg-simple_src_compile + JAVA_GENTOO_CLASSPATH_EXTRA+=":open-test-reporting-events.jar" + rm -r target || die + + use doc && ejavadoc +} + +src_install() { + java-pkg_dojar "open-test-reporting-schema.jar" + java-pkg-simple_src_install + + if use source; then + java-pkg_dosrc "schema/src/main/java/*" + java-pkg_dosrc "events/src/main/java/*" + fi +} diff --git a/dev-java/randomized-runner/Manifest b/dev-java/randomized-runner/Manifest index 92dde6e1f949..5558e495f0fe 100644 --- a/dev-java/randomized-runner/Manifest +++ b/dev-java/randomized-runner/Manifest @@ -1,5 +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 +EBUILD randomized-runner-2.8.2.ebuild 1355 BLAKE2B 1e25b3c2127e82ad33b403ee168505ba204f6ade9d7e8f1ef83e6ae8cde311dce7b9d2bfd1c122dfbd8def509666c9c330ef0d210b19472a74b781e694982f3a SHA512 7fb3f7ec3318c890aa754d25e810a1986aa398c229a299d558dc0023173c3978278af65e3fd63d95aa75e06e17dac8d59e2b97e992f92d9f28383f13b89b38f0 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 index 4ad376fc8c6a..cf6edd323b25 100644 --- a/dev-java/randomized-runner/randomized-runner-2.8.2.ebuild +++ b/dev-java/randomized-runner/randomized-runner-2.8.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -16,7 +16,7 @@ S="${WORKDIR}/randomizedtesting-release-${PV}/${PN}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64" +KEYWORDS="amd64 arm64 ppc64" CP_DEPEND="dev-java/junit:4" -- cgit v1.2.3