dev-java/felix-gogo-runtime: new package, add 1.1.6

Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: 42244f59e3
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
This commit is contained in:
Volkmar W. Pogatzki
2023-05-22 21:00:22 +02:00
committed by Miroslav Šulc
parent f11981b5d3
commit 60cdbd1189
3 changed files with 78 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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>