commit:     6a74605bd883ab6360c4e15d7d85c91d8e57e867
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Wed Dec  3 08:18:55 2025 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Dec 14 20:27:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a74605b

dev-java/rhino: add 1.8.1

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Part-of: https://github.com/gentoo/gentoo/pull/44872
Closes: https://github.com/gentoo/gentoo/pull/44872
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/rhino/Manifest           |  1 +
 dev-java/rhino/rhino-1.8.1.ebuild | 50 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/dev-java/rhino/Manifest b/dev-java/rhino/Manifest
index 60eca865a569..f5274f09e828 100644
--- a/dev-java/rhino/Manifest
+++ b/dev-java/rhino/Manifest
@@ -1 +1,2 @@
 DIST rhino-1.8.0.tar.gz 5003746 BLAKE2B 
101e9ab0c7612402de15936d932af1e1cc40078d1da9fed7390984603bd1f900bcfc6cc548ccd35f57e55bb00b801d374beb0d7653ce95a2d1a086bdb03550b3
 SHA512 
6f0397d9aaee775e4beefd3ff7aaf726e547d5f6e88ac652bd2c37fb12b6d559d7715f89f39843338937c93a027a81947f2316cabce1441f9b30da65986d087c
+DIST rhino-1.8.1.tar.gz 10407301 BLAKE2B 
26ff4dcadcf8af2c0c2ab217382525b97f0cdc9a59bbac7fa826e335205523304ca13fb8c66936d3f5e5e1d93bcf2030ba0ca31e9ba7bec696c8ee3405ec2394
 SHA512 
f432f73daea82f0aeb78c442ecede2641e0b78b3be5e6410d69d4bf7cc15a26bdd946605336c6251f1980393148ed869b3ed651ecf9cffc206bf7924d510930a

diff --git a/dev-java/rhino/rhino-1.8.1.ebuild 
b/dev-java/rhino/rhino-1.8.1.ebuild
new file mode 100644
index 000000000000..59c7a0d11f5a
--- /dev/null
+++ b/dev-java/rhino/rhino-1.8.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+JAVA_TESTING_FRAMEWORKS="junit-vintage"
+MAVEN_ID="org.mozilla:rhino:${PV}"
+
+inherit java-pkg-2 java-pkg-simple junit5
+
+DESCRIPTION="Rhino JavaScript runtime jar, excludes XML, tools, and 
ScriptEngine wrapper"
+HOMEPAGE="https://github.com/mozilla/rhino";
+SRC_URI="https://github.com/mozilla/rhino/archive/Rhino${PV//./_}_Release.tar.gz
 -> ${P}.tar.gz"
+S="${WORKDIR}/rhino-Rhino${PV//./_}_Release"
+
+LICENSE="MPL-1.1 GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+
+DEPEND="
+       >=virtual/jdk-11
+       test? (
+               dev-java/junit:4
+               dev-java/junit:5[vintage]
+       )
+"
+
+# rhino/src/main/java/org/mozilla/javascript/Slot.java:29: error: cannot find 
symbol
+#         var newSlot = new Slot(this);
+#         ^
+#   symbol:   class var
+RDEPEND=">=virtual/jre-11:*"
+
+DOCS=( {CODE_OF_CONDUCT,README,RELEASE-NOTES,RELEASE-STEPS}.md 
{NOTICE-tools,NOTICE}.txt )
+
+JAVA_RESOURCE_DIRS="rhino/src/main/resources"
+JAVA_SRC_DIR="rhino/src/main/java"
+JAVA_TEST_GENTOO_CLASSPATH="junit-4 junit-5"
+JAVA_TEST_RESOURCE_DIRS="rhino/src/test/resources"
+JAVA_TEST_SRC_DIR=( {rhino/src/test,testutils/src/main}/java )
+
+src_test() {
+       # One test needs to run first, otherwise it would fail.
+       JAVA_TEST_RUN_ONLY=( org.mozilla.javascript.tests.ErrorHandlingTest )
+       local JAVA_TEST_RUN_LATER=$(find rhino/src/test/java -name '*Test.java' 
-printf '%P\n')
+       JAVA_TEST_RUN_LATER="${JAVA_TEST_RUN_LATER//.java}"
+       JAVA_TEST_RUN_ONLY+=( ${JAVA_TEST_RUN_LATER//\//.} )
+       junit5_src_test
+}

Reply via email to