From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3690015808B for ; Tue, 15 Mar 2022 17:23:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 684EAE0830; Tue, 15 Mar 2022 17:23:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27959E0830 for ; Tue, 15 Mar 2022 17:23:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9FEA134358E for ; Tue, 15 Mar 2022 17:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5892E326 for ; Tue, 15 Mar 2022 17:23:03 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1647364924.3e16b3ba49d912597b978a901b0d111331f29061.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/rhino/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/rhino/Manifest dev-java/rhino/rhino-1.7.14.ebuild X-VCS-Directories: dev-java/rhino/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3e16b3ba49d912597b978a901b0d111331f29061 X-VCS-Branch: master Date: Tue, 15 Mar 2022 17:23:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3964f6ca-5c26-4d78-bd20-c57e5ca528cb X-Archives-Hash: d80429666926a38c3de5354b4ae1bc48 commit: 3e16b3ba49d912597b978a901b0d111331f29061 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Wed Feb 2 20:58:06 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Mar 15 17:22:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e16b3ba dev-java/rhino: Bump to 1.7.14 Closes: https://bugs.gentoo.org/575590 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Signed-off-by: Sam James gentoo.org> dev-java/rhino/Manifest | 1 + dev-java/rhino/rhino-1.7.14.ebuild | 113 +++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest index c66f7621da10..569bb6a5f328 100644 --- a/dev-java/rhino/Manifest +++ b/dev-java/rhino/Manifest @@ -1 +1,2 @@ DIST Rhino1_7_7_RELEASE.zip 6059127 BLAKE2B 431885bf287da524cfc82e6594802c93e75d48177b4056e9b893d7c852c3c3b30291d616a140981e520fdebacf5cbc8b802a6137f0e29a369f1d01cc771c6b77 SHA512 ce89b6a153d62dd459a86360c67d6db4b05922d8ab49a8d45ccb0deb0f639cd819f0ad75cb4929eda6b7f0fd6ddb5879a4035de6968283317bfd0e93d2bb744e +DIST rhino-1.7.14.tar.gz 4694660 BLAKE2B d6ba958265c4ebf881161d0b61f598ac7e82d7be4e6b0fbd6416e7b0af7835058a2744ab5524b6ff698159898e962cc246ac559e9c5db1b4467b147700e894e0 SHA512 f20e8a8f7c78c88d815c53f89f3f18a53c2e86d92a284cd275aa5556c08962d2905f2d4fc829e5cb61d416cd55b13323d9a110f4f492f588a149b4d2105b21a1 diff --git a/dev-java/rhino/rhino-1.7.14.ebuild b/dev-java/rhino/rhino-1.7.14.ebuild new file mode 100644 index 000000000000..e2d55459ce0f --- /dev/null +++ b/dev-java/rhino/rhino-1.7.14.ebuild @@ -0,0 +1,113 @@ +# 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 ~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 +}