summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2024-10-06 11:37:34 +0200
committerMiroslav Šulc <fordfrog@gentoo.org>2024-10-09 11:36:02 +0200
commitc75076e867d8d25cfd4c597f3086a7b05d9df159 (patch)
tree14d75d725592dfc6fb76b9ff8332acc145d9a3ec /dev-java/mvel
parentdev-java/*: default slot for dev-java/mvel (diff)
downloadgentoo-c75076e867d8d25cfd4c597f3086a7b05d9df159.tar.gz
gentoo-c75076e867d8d25cfd4c597f3086a7b05d9df159.tar.bz2
gentoo-c75076e867d8d25cfd4c597f3086a7b05d9df159.zip
dev-java/mvel: add 2.5.2
Bug: https://bugs.gentoo.org/923610 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38891 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/mvel')
-rw-r--r--dev-java/mvel/Manifest1
-rw-r--r--dev-java/mvel/mvel-2.5.2.ebuild67
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/mvel/Manifest b/dev-java/mvel/Manifest
index 41568dbf8e17..f3955c69ec4b 100644
--- a/dev-java/mvel/Manifest
+++ b/dev-java/mvel/Manifest
@@ -1 +1,2 @@
DIST mvel2-2.5.0.Final.tar.gz 2182715 BLAKE2B 1e8dbde4b75e36ea4d285ab45c0040957b9af7b5819786daf6469ae509c9c1e16ba2b201a05f9f9cf1c694bac816afd2d613226a8eb3b06f9049a898c6586b85 SHA512 29ca1ef8fdc4cbb97b5847f59e7c3118e837022d7292b507869208da1798b55d0445c40214d72c159e610d7094df7002c091296b2b31775a1ad0606f622d12b5
+DIST mvel2-2.5.2.Final.tar.gz 2184489 BLAKE2B 4e7b79f096a2a87a1d60b5edc0909fbadc754aa3927d5d439ebf8f2df2b05b6a85248d31d720b3a4f13e5890c45079388f8745baba32cffe5a2c998748cfb1a6 SHA512 ff1c0ee2b3cbce9d5f996e16df72cd1620087543b74c65c52632951a4842a7dc17d764303eac48c2df6a94feda0bbfffae7573b44409647db16ef2066930b4f1
diff --git a/dev-java/mvel/mvel-2.5.2.ebuild b/dev-java/mvel/mvel-2.5.2.ebuild
new file mode 100644
index 000000000000..bc25f1af94ef
--- /dev/null
+++ b/dev-java/mvel/mvel-2.5.2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2021-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.mvel:mvel2:${PV}.Final"
+JAVA_TESTING_FRAMEWORKS="junit-4"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="MVFLEX Expression Language"
+HOMEPAGE="https://github.com/mvel/mvel"
+SRC_URI="https://github.com/mvel/mvel/archive/mvel2-${PV}.Final.tar.gz"
+S="${WORKDIR}/${PN}-${PN}2-${PV}.Final"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+DEPEND="
+ dev-java/asm:9
+ >=virtual/jdk-1.8:*
+"
+RDEPEND=">=virtual/jre-1.8:*"
+
+# Required due to use of '_' as identifiers in source files
+JAVADOC_ARGS="-source 8"
+JAVA_CLASSPATH_EXTRA="asm-9"
+JAVA_MAIN_CLASS="org.mvel2.sh.Main"
+JAVA_SRC_DIR="src/main/java"
+
+# Significantly speed up test execution
+# https://github.com/mvel/mvel/blob/mvel2-2.3.2.Final/pom.xml#L158-L171
+JAVA_TEST_EXTRA_ARGS=(
+ -Dfile.encoding=UTF-8
+ -Dmvel.disable.jit=true
+ -Dmvel.tests.quick=true
+)
+JAVA_TEST_GENTOO_CLASSPATH="junit-4"
+JAVA_TEST_RESOURCE_DIRS=( "src/test/resources" )
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_test() {
+ # ${S}/pom.xml#201-214
+ pushd src/test/java || die
+ local JAVA_TEST_RUN_ONLY=$(find * \
+ \( -name "*Test.java" \
+ -o -name '*Tests.java' \
+ -o -name 'UsageDemos.java' \)\
+ ! -name "AbstractTest.java*" \
+ ! -name "CompiledUnitTestEx.java" \
+ ! -name "PerfTest.java" \
+ ! -name "DroolsTest.java" \
+ ! -name "FailureTests.java" \
+ ! -name "PerformanceTest.java" \
+ ! -name "CompiledPerformanceTests.java" \
+ ! -name "MVELThreadTest.java*" \
+ ! -name "SimpleTests.java*" \
+ ! -name "BaseOperatorsTest.java*" \
+ ! -name "BaseMvelTest.java*" \
+ )
+ popd
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
+ JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
+ java-pkg-simple_src_test
+}