diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2023-05-22 21:00:22 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2023-12-01 11:02:29 +0100 |
commit | 60cdbd11894c3b59c032a86ece611439b7331baf (patch) | |
tree | df882a129523652549d7da16f3c13e0eb2e00f03 /dev-java/felix-gogo-runtime | |
parent | sci-libs/vtk: require <sci-libs/pdal-2.6.0 (diff) | |
download | gentoo-60cdbd11894c3b59c032a86ece611439b7331baf.tar.gz gentoo-60cdbd11894c3b59c032a86ece611439b7331baf.tar.bz2 gentoo-60cdbd11894c3b59c032a86ece611439b7331baf.zip |
dev-java/felix-gogo-runtime: new package, add 1.1.6
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/28334/commits/42244f59e3e0cf6c451084a5ece8ea5adcf42a71
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/felix-gogo-runtime')
-rw-r--r-- | dev-java/felix-gogo-runtime/Manifest | 2 | ||||
-rw-r--r-- | dev-java/felix-gogo-runtime/felix-gogo-runtime-1.1.6.ebuild | 64 | ||||
-rw-r--r-- | dev-java/felix-gogo-runtime/metadata.xml | 12 |
3 files changed, 78 insertions, 0 deletions
diff --git a/dev-java/felix-gogo-runtime/Manifest b/dev-java/felix-gogo-runtime/Manifest new file mode 100644 index 000000000000..a252dc474e84 --- /dev/null +++ b/dev-java/felix-gogo-runtime/Manifest @@ -0,0 +1,2 @@ +DIST felix-gogo-runtime-1.1.6.tar.gz 117060 BLAKE2B 5ffbc36688f7f69595c5087910e6b9007b57d4b60a6d18d9adee473987193b5fc478cf241229a32044abebf3e796394591e2626ad5560d1cbde0dfb572d62f7f SHA512 0cf431767506a0ca3f78a4e7c666bb9da7301d9968078653ef67deccc73da80e15e01e19ecd6e499215faa4236d46a4f4179b54798ba4d847cfe8a0d858e44ee +DIST felix-gogo-runtime-1.1.6.tar.gz.asc 833 BLAKE2B 12ef2c9bf4d5f6e5dee1a10b1d6afcd366805361181f2621ed98f3c4a36db155e7c1b493152e528cd3a8e46ca12e61bda140a2e4c13b133374bb10ec47c4554a SHA512 05b8247508c477ad374f18e7dc22faa9d116c3416b6390173366391b6f7a726cbb604adcaecc013faf51b03cbde57f09d95891a283045d35ed809e01ae7d5dae diff --git a/dev-java/felix-gogo-runtime/felix-gogo-runtime-1.1.6.ebuild b/dev-java/felix-gogo-runtime/felix-gogo-runtime-1.1.6.ebuild new file mode 100644 index 000000000000..2b36a365fe85 --- /dev/null +++ b/dev-java/felix-gogo-runtime/felix-gogo-runtime-1.1.6.ebuild @@ -0,0 +1,64 @@ +# 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.apache.felix:org.apache.felix.gogo.runtime:${PV}" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple verify-sig + +DESCRIPTION="Apache Felix Gogo Runtime" +HOMEPAGE="https://felix.apache.org/documentation/subprojects/apache-felix-gogo.html" +SRC_URI="mirror://apache/felix/org.apache.${PN//-/.}-${PV}-source-release.tar.gz -> ${P}.tar.gz + verify-sig? ( https://dlcdn.apache.org/felix/org.apache.${PN//-/.}-${PV}-source-release.tar.gz.asc -> ${P}.tar.gz.asc )" +S="${WORKDIR}/org.apache.felix.gogo.runtime-${PV}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +CP_DEPEND=" + dev-java/osgi-annotation:0 + dev-java/osgi-cmpn:8 + dev-java/osgi-core:0 +" +DEPEND="${CP_DEPEND} + >=virtual/jdk-1.8:* + test? ( + dev-java/mockito:2 + ) +" +RDEPEND="${CP_DEPEND} + >=virtual/jre-1.8:* +" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-felix )" +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/felix.apache.org.asc" + +JAVA_SRC_DIR="src/main/java" +JAVA_TEST_EXCLUDES=( + #Invalid test class No runnable methods + org.apache.felix.gogo.runtime.TestEvaluate +) +JAVA_TEST_GENTOO_CLASSPATH=" + junit-4 + mockito-2 +" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + local vm_version="$(java-config -g PROVIDES_VERSION)" + if ver_test "${vm_version}" -lt 11; then + java-pkg-simple_src_test + else + # There was 1 failure: + # 1) testPipe(org.apache.felix.gogo.runtime.TestParser) + # org.junit.ComparisonFailure: expected:<[def]> but was:<[]> + # at org.junit.Assert.assertEquals(Assert.java:117) + # at org.junit.Assert.assertEquals(Assert.java:146) + # at org.apache.felix.gogo.runtime.TestParser.testPipe(TestParser.java:152) + einfo "Tests would fail with Java 11 or higher" + fi +} diff --git a/dev-java/felix-gogo-runtime/metadata.xml b/dev-java/felix-gogo-runtime/metadata.xml new file mode 100644 index 000000000000..b2e227e0b6b2 --- /dev/null +++ b/dev-java/felix-gogo-runtime/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> + <upstream> + <bugs-to>https://issues.apache.org/jira/browse/FELIX</bugs-to> + <doc>https://felix.apache.org/documentation/subprojects/apache-felix-gogo.html</doc> + <remote-id type="github">apache/felix-dev</remote-id> + </upstream> +</pkgmetadata> |