diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-05-22 14:22:29 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-11-30 11:07:40 +0100 |
commit | 61a35184b24adb0b422a7e9c53840fe21fa84b27 (patch) | |
tree | eb1f02a5a25808ac6566ede23e4b3482f6a52cab /dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild | |
parent | dev-java/bndlib: add 7.0.0 (diff) | |
download | gentoo-61a35184b24adb0b422a7e9c53840fe21fa84b27.tar.gz gentoo-61a35184b24adb0b422a7e9c53840fe21fa84b27.tar.bz2 gentoo-61a35184b24adb0b422a7e9c53840fe21fa84b27.zip |
dev-java/jtwig-reflection: new package, add 5.87.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/28334/commits/3681df6ef08c00f35784543f5bfec3ae37c69d76
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild')
-rw-r--r-- | dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild b/dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild new file mode 100644 index 000000000000..4ce9372091fa --- /dev/null +++ b/dev-java/jtwig-reflection/jtwig-reflection-5.87.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.jtwig:jtwig-reflection:${PV}.RELEASE" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Jtwig Reflection Library" +HOMEPAGE="https://github.com/jtwig/jtwig-reflection" +SRC_URI="https://github.com/jtwig/jtwig-reflection/archive/${PV}.RELEASE.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${P}.RELEASE" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-java/commons-lang:3.6 + dev-java/guava:0 + dev-java/slf4j-api:0 + >=virtual/jdk-1.8:* + test? ( + dev-java/commons-io:1 + dev-java/hamcrest:0 + dev-java/mockito:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* +" + +JAVA_CLASSPATH_EXTRA=" + commons-lang-3.6 + guava + slf4j-api +" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_EXCLUDES=( + # Invalid test class; No runnable methods + org.jtwig.reflection.integration.example.TestArgumentValueResolver + org.jtwig.reflection.integration.example.TestArgumentResolver + org.jtwig.reflection.integration.example.TestArgument +) +JAVA_TEST_GENTOO_CLASSPATH=" + commons-io-1 + hamcrest + junit-4 + mockito +" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + # Unable to make field private final byte[] java.lang.String.value accessible: + # module java.base does not "opens java.lang" to unnamed module @3bc9f433 + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge 17; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.lang=ALL-UNNAMED ) + fi + java-pkg-simple_src_test +} |