From 7fa8a1e3f149eea4c844c47cfe26136ed7614c58 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 15 Apr 2024 12:04:03 +0100 Subject: gentoo auto-resync : 15:04:2024 - 12:04:02 --- dev-java/rhino/Manifest | 2 +- dev-java/rhino/rhino-1.7.14-r1.ebuild | 113 ++++++++++++++++++++++++++++++++++ dev-java/rhino/rhino-1.7.14.ebuild | 113 ---------------------------------- 3 files changed, 114 insertions(+), 114 deletions(-) create mode 100644 dev-java/rhino/rhino-1.7.14-r1.ebuild delete mode 100644 dev-java/rhino/rhino-1.7.14.ebuild (limited to 'dev-java/rhino') diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest index cc53f586d638..bb6b01768a68 100644 --- a/dev-java/rhino/Manifest +++ b/dev-java/rhino/Manifest @@ -1,3 +1,3 @@ DIST rhino-1.7.14.tar.gz 4694660 BLAKE2B d6ba958265c4ebf881161d0b61f598ac7e82d7be4e6b0fbd6416e7b0af7835058a2744ab5524b6ff698159898e962cc246ac559e9c5db1b4467b147700e894e0 SHA512 f20e8a8f7c78c88d815c53f89f3f18a53c2e86d92a284cd275aa5556c08962d2905f2d4fc829e5cb61d416cd55b13323d9a110f4f492f588a149b4d2105b21a1 -EBUILD rhino-1.7.14.ebuild 3851 BLAKE2B 91be866b8bb6f7fcfe571ea236d9091fdfd503e1b70b785c83fe325eb3c541f4fd1d1e1c4851653c2a0bf5f31e647a1a7929bffb795fc35e6177c9f9e26c1f6a SHA512 b6998a1846346f92fd6b2515ebc2a3cdd30e2ad4989b26c3869c3056cf61a1e669acb39b0713d411a29c0563f938524ff0a44f6730a130b441c74f7614db00ae +EBUILD rhino-1.7.14-r1.ebuild 3859 BLAKE2B f49af978d2e02d11b66a4ae7a2e05ac07582222b8de0bc041bd87609318842eb5b740e423454742d1e1ff996717f0d6aca88e5c3497bfa176ad7be829df651a3 SHA512 2760ccdfeb55637ff87ad0c348c500de31417d24c10be0f008a1c96adc8035afcbdd383020bbbcd9408bbb0e5fe77a062d22c9e0c514778fe14a37274be9242b MISC metadata.xml 658 BLAKE2B 95a465da3522f815ddd5576c81bb54e9d8ce55da3ec055cd80568fd919227360a10d86e2134db02a4d5bb669a8f3c34c05f0bb879924a008ccaf7ebd2ccdf3ad SHA512 477809635ecc04713f8d9d5f00d17b298597555a30cc9d6aacd6353ae17c98de41d0f83596a004dc96859799948e9ca813a9825577c2869bc6279ccabf20ba51 diff --git a/dev-java/rhino/rhino-1.7.14-r1.ebuild b/dev-java/rhino/rhino-1.7.14-r1.ebuild new file mode 100644 index 000000000000..8676a8e192ab --- /dev/null +++ b/dev-java/rhino/rhino-1.7.14-r1.ebuild @@ -0,0 +1,113 @@ +# 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.mozilla:rhino:1.7.14" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="An open-source implementation of JavaScript written in Java" +HOMEPAGE="https://github.com/mozilla/rhino" +SRC_URI="https://github.com/mozilla/rhino/archive/Rhino${PV//./_}_Release.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-1.1 GPL-2" +KEYWORDS="amd64 ~arm arm64 ppc64 x86" +SLOT="1.6" + +# There are too many test failures: +# FAILURES!!! +# Tests run: 10504, Failures: 613 +# With openjdk-11 tests even fail to compile: +# ./testsrc/tests/src/com/netscape/javascript/qa/liveconnect/LiveConnectTest.java:104: error: cannot find symbol +# global = JSObject.getWindow( this ); +# ^ +# symbol: method getWindow(LiveConnectTest) +# location: class JSObject +RESTRICT="test" + +DEPEND=">=virtual/jdk-1.8:* + test? ( + >=dev-java/ant-1.10.14-r3:0[junit] + dev-java/emma:0 + dev-java/jakarta-xml-soap-api:1 + dev-java/jmh-core:0 + dev-java/hamcrest-core:1.3 + dev-java/snakeyaml:0 + ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.8:* + ${CDEPEND}" + +DOCS=( {CODE_OF_CONDUCT,README,RELEASE-NOTES,RELEASE-STEPS}.md {NOTICE-tools,NOTICE}.txt ) + +S="${WORKDIR}/rhino-Rhino${PV//./_}_Release" + +JAVA_SRC_DIR=( "src" "toolsrc" "xmlimplsrc" ) +JAVA_RESOURCE_DIRS="res" +JAVA_MAIN_CLASS="org.mozilla.javascript.tools.shell.Main" + +JAVA_TEST_GENTOO_CLASSPATH="ant,emma,hamcrest-core-1.3,jakarta-xml-soap-api-1,jmh-core,junit-4,snakeyaml" +JAVA_TEST_SRC_DIRS="testsrc" +JAVA_TEST_RESOURCE_DIRS="testres" + +# https://github.com/mozilla/rhino/blob/Rhino1_7_14_Release/build.gradle#L81-L87 +JAVA_TEST_EXTRA_ARGS=( + -Djava.awt.headless=true + -Dmozilla.js.tests=testsrc/tests + -Dmozilla.js.tests.timeout=60000 + -Duser.language=en + -Duser.country=US + -Duser.timezone=America/Los_Angeles + -Dfile.encoding=UTF-8 +) + +src_prepare() { + default + java-pkg_clean + + mkdir -p res/org/mozilla/javascript/tools/{resources,debugger} || die + + cp -r "src/org" "res" || die + find "res" -type f -name '*.java' -exec rm -rf {} + || die + + cp {toolsrc,res}/org/mozilla/javascript/tools/resources/Messages.properties || die + cp {toolsrc,res}/org/mozilla/javascript/tools/debugger/test.js || die + + mv {src,testsrc}/org/mozilla/javascript/engine || die + cp -r "testsrc" "testres" || die + find "testres" -type f -name '*.java' -exec rm -rf {} + || die + + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveConnectDrv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveConnectEnv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveNavDrv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveNavEnv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/MacRefEnv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/NavDrv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/NavEnv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/ObservedTask.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RefDrv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RefEnv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RhinoDrv.java || die + rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RhinoEnv.java || die +} + +src_test() { + # https://github.com/mozilla/rhino/blob/Rhino1_7_14_Release/build.gradle#L71-L77 + rm -r testsrc/benchmarks || die + + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -gt "1.8" ; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.desktop/javax.swing.table=ALL-UNNAMED ) + fi + + java-pkg-simple_src_test +} + +src_install() { + default # https://bugs.gentoo.org/789582 + java-pkg-simple_src_install +} diff --git a/dev-java/rhino/rhino-1.7.14.ebuild b/dev-java/rhino/rhino-1.7.14.ebuild deleted file mode 100644 index 0826d783bf62..000000000000 --- a/dev-java/rhino/rhino-1.7.14.ebuild +++ /dev/null @@ -1,113 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -JAVA_PKG_IUSE="doc source test" -MAVEN_ID="org.mozilla:rhino:1.7.14" -JAVA_TESTING_FRAMEWORKS="junit-4" - -inherit java-pkg-2 java-pkg-simple - -DESCRIPTION="An open-source implementation of JavaScript written in Java" -HOMEPAGE="https://github.com/mozilla/rhino" -SRC_URI="https://github.com/mozilla/rhino/archive/Rhino${PV//./_}_Release.tar.gz -> ${P}.tar.gz" - -LICENSE="MPL-1.1 GPL-2" -KEYWORDS="amd64 ~arm arm64 ppc64 x86" -SLOT="1.6" - -# There are too many test failures: -# FAILURES!!! -# Tests run: 10504, Failures: 613 -# With openjdk-11 tests even fail to compile: -# ./testsrc/tests/src/com/netscape/javascript/qa/liveconnect/LiveConnectTest.java:104: error: cannot find symbol -# global = JSObject.getWindow( this ); -# ^ -# symbol: method getWindow(LiveConnectTest) -# location: class JSObject -RESTRICT="test" - -DEPEND=">=virtual/jdk-1.8:* - test? ( - dev-java/ant-junit:0 - dev-java/emma:0 - dev-java/jakarta-xml-soap-api:1 - dev-java/jmh-core:0 - dev-java/hamcrest-core:1.3 - dev-java/snakeyaml:0 - ) - ${CDEPEND}" - -RDEPEND=">=virtual/jre-1.8:* - ${CDEPEND}" - -DOCS=( {CODE_OF_CONDUCT,README,RELEASE-NOTES,RELEASE-STEPS}.md {NOTICE-tools,NOTICE}.txt ) - -S="${WORKDIR}/rhino-Rhino${PV//./_}_Release" - -JAVA_SRC_DIR=( "src" "toolsrc" "xmlimplsrc" ) -JAVA_RESOURCE_DIRS="res" -JAVA_MAIN_CLASS="org.mozilla.javascript.tools.shell.Main" - -JAVA_TEST_GENTOO_CLASSPATH="ant-junit,emma,hamcrest-core-1.3,jakarta-xml-soap-api-1,jmh-core,junit-4,snakeyaml" -JAVA_TEST_SRC_DIRS="testsrc" -JAVA_TEST_RESOURCE_DIRS="testres" - -# https://github.com/mozilla/rhino/blob/Rhino1_7_14_Release/build.gradle#L81-L87 -JAVA_TEST_EXTRA_ARGS=( - -Djava.awt.headless=true - -Dmozilla.js.tests=testsrc/tests - -Dmozilla.js.tests.timeout=60000 - -Duser.language=en - -Duser.country=US - -Duser.timezone=America/Los_Angeles - -Dfile.encoding=UTF-8 -) - -src_prepare() { - default - java-pkg_clean - - mkdir -p res/org/mozilla/javascript/tools/{resources,debugger} || die - - cp -r "src/org" "res" || die - find "res" -type f -name '*.java' -exec rm -rf {} + || die - - cp {toolsrc,res}/org/mozilla/javascript/tools/resources/Messages.properties || die - cp {toolsrc,res}/org/mozilla/javascript/tools/debugger/test.js || die - - mv {src,testsrc}/org/mozilla/javascript/engine || die - cp -r "testsrc" "testres" || die - find "testres" -type f -name '*.java' -exec rm -rf {} + || die - - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveConnectDrv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveConnectEnv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveNavDrv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/LiveNavEnv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/MacRefEnv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/NavDrv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/NavEnv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/ObservedTask.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RefDrv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RefEnv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RhinoDrv.java || die - rm testsrc/tests/src/com/netscape/javascript/qa/drivers/RhinoEnv.java || die -} - -src_test() { - # https://github.com/mozilla/rhino/blob/Rhino1_7_14_Release/build.gradle#L71-L77 - rm -r testsrc/benchmarks || die - - local vm_version="$(java-config -g PROVIDES_VERSION)" - if ver_test "${vm_version}" -gt "1.8" ; then - JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.desktop/javax.swing.table=ALL-UNNAMED ) - fi - - java-pkg-simple_src_test -} - -src_install() { - default # https://bugs.gentoo.org/789582 - java-pkg-simple_src_install -} -- cgit v1.2.3