dev-java/rhino: add 1.8.1

Signed-off-by: Volkmar W. Pogatzki <gentoo@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@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2025-12-14 21:27:10 +01:00
committed by Miroslav Šulc
parent 498a0b203c
commit 6a74605bd8
2 changed files with 51 additions and 0 deletions
+1
View File
@@ -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
+50
View File
@@ -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
}