diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-04-17 21:17:23 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-04-19 09:39:19 +0200 |
commit | 1db4ddd2309ec5712c04b3878ec6984803deb8a4 (patch) | |
tree | 673f281757e0d9e1187e6243fbcde2ed5876c11d /dev-java/jcommander | |
parent | dev-python/watchgod: Remove old (diff) | |
download | gentoo-1db4ddd2309ec5712c04b3878ec6984803deb8a4.tar.gz gentoo-1db4ddd2309ec5712c04b3878ec6984803deb8a4.tar.bz2 gentoo-1db4ddd2309ec5712c04b3878ec6984803deb8a4.zip |
dev-java/jcommander: add 1.82
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/25071
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/jcommander')
-rw-r--r-- | dev-java/jcommander/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jcommander/jcommander-1.82.ebuild | 60 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-java/jcommander/Manifest b/dev-java/jcommander/Manifest index a13270c2b00d..d3d0e76ac3da 100644 --- a/dev-java/jcommander/Manifest +++ b/dev-java/jcommander/Manifest @@ -1 +1,2 @@ DIST jcommander-1.48.tar.gz 64544 BLAKE2B 29ed81d5f9a7e4ec193c8fa03cdd67481e9904898bee2730c585be6b6beb2e0ec37b31634513095b660655b8202c42077361318a83c1e016c9450d7d7ff30244 SHA512 1304bb14ecb89f9945e8219f3229941e556c7cccef52a2eb4e4663da9dbf9fa5ecec4914275a743fb7d90ca301153284dc76dd380903aac93db1507894d72a6e +DIST jcommander-1.82.tar.gz 4433079 BLAKE2B 08111ae7a85202dc3a082db58f42ef5183b05cae827bc304ba426a3d02bf7a4123f84500e6ec5694578a7aa29c631cca692fe71d67e12a1107c57e1858be4dcf SHA512 1abcb54cec21e95a3e5fc952320a7fca1d480f9900992e686f66df49749b6eee79e18dc670f10cc05b0d2a4f0a72fae302568a51ff193788897878aefc3ff67b diff --git a/dev-java/jcommander/jcommander-1.82.ebuild b/dev-java/jcommander/jcommander-1.82.ebuild new file mode 100644 index 000000000000..eec93ae2b126 --- /dev/null +++ b/dev-java/jcommander/jcommander-1.82.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +JAVA_TESTING_FRAMEWORKS="testng" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Command line parsing framework for Java" +HOMEPAGE="https://github.com/cbeust/jcommander" +SRC_URI="https://github.com/cbeust/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DEPEND=" + >=virtual/jdk-1.8:* + test? ( dev-java/jackson-annotations:2 ) +" +RDEPEND=" + >=virtual/jre-1.8:* +" + +S="${WORKDIR}/${P}" + +JAVA_SRC_DIR="src/main/java" + +# =============================================== +# Command line suite +# Total tests run: 258, Failures: 3, Skips: 0 +# =============================================== +# +# * ERROR: dev-java/jcommander-1.82::gentoo failed (test phase): +# * Running TestNG failed. + +# https://bugs.gentoo.org/801694 +# Needs "java-util-2-runner-args.patch" from https://github.com/gentoo/gentoo/pull/21319#issuecomment-878128343 +JAVA_TEST_RUNNER_EXTRA_ARGS=( -verbose 3 -usedefaultlisteners true ) + +JAVA_TEST_EXTRA_ARGS="-Djava.io.tmpdir=${T}" +JAVA_TEST_GENTOO_CLASSPATH="jackson-annotations-2,testng" +JAVA_TEST_SRC_DIR="src/test/java" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" + +src_prepare() { + default + java-pkg_clean +} + +src_test() { + # because module java.base does not export sun.reflect.annotation to unnamed module @0x42bb2aee + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -ge 17; then + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/sun.reflect.annotation=ALL-UNNAMED ) + fi + java-pkg-simple_src_test +} |