diff options
Diffstat (limited to 'dev-java/felix-resolver')
-rw-r--r-- | dev-java/felix-resolver/Manifest | 3 | ||||
-rw-r--r-- | dev-java/felix-resolver/felix-resolver-2.0.4.ebuild | 71 | ||||
-rw-r--r-- | dev-java/felix-resolver/metadata.xml | 11 |
3 files changed, 85 insertions, 0 deletions
diff --git a/dev-java/felix-resolver/Manifest b/dev-java/felix-resolver/Manifest new file mode 100644 index 000000000000..bee400afe3be --- /dev/null +++ b/dev-java/felix-resolver/Manifest @@ -0,0 +1,3 @@ +DIST felix-resolver-2.0.4.tar.gz 164538 BLAKE2B 38d979557e484692bc6e47ce069bac5ca3c19f4b01b2d6222760708da571ca79166f4821c0b79c181a40c4228095dbe28f051e7d84d696cfddeef63f5a006ddd SHA512 bf4da4550b208dbe9e74cb4f66e9456fb0a3da66f6e60c08ebea88b68cc6f71200dcf324d22d85e6f5558e7f67335f8899e932de3b813a7fc7e9325eb8a31b61 +EBUILD felix-resolver-2.0.4.ebuild 2113 BLAKE2B de38ac614ff7582d7bd3562b4c9da22d2260aed2ce0e6f93c735388929da2cece65b50386e7232ebb8d226d0c413ac7f4d27d6a7d8addcca70f29455a0f7ea62 SHA512 465592736caaa84f1dbdd62caea8e0292434c87bac725382bedd89dbb333a47f607b014375631ece15754d1cc10c60ccbd52e7fab481b7c11b082c0d02ca9e0f +MISC metadata.xml 369 BLAKE2B 9cd4712616cc7fbb8010c253c0f6edf4855e190f79eac831794cf53e966f2963945f5432ae3a9f12534cbb5611986247e00b7c2981c0604e7fa0c3fffa42ec4c SHA512 1b18db4dd45409a4296c24c198e5aeaad34fd8901c041f490a2c1ecaf4f692e3140c304fd76faa18644ad0f359b551443bba096445efb819503434e35636e791 diff --git a/dev-java/felix-resolver/felix-resolver-2.0.4.ebuild b/dev-java/felix-resolver/felix-resolver-2.0.4.ebuild new file mode 100644 index 000000000000..771b23571b6f --- /dev/null +++ b/dev-java/felix-resolver/felix-resolver-2.0.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri mirror://apache/felix/org.apache.felix.resolver-2.0.4-source-release.tar.gz --slot 0 --keywords "~amd64" --ebuild felix-resolver-2.0.4.ebuild + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.felix:org.apache.felix.resolver:2.0.4" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Provide OSGi resolver service." +HOMEPAGE="https://felix.apache.org/documentation/index.html" +SRC_URI="mirror://apache/felix/org.apache.${PN//-/.}-${PV}-source-release.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# Common dependencies +# POM: pom.xml +# org.osgi:org.osgi.core:5.0.0 -> >=dev-java/osgi-core-api-5.0.0:0 +# org.osgi:osgi.annotation:6.0.1 -> >=dev-java/osgi-annotation-8.1.0:0 + +CP_DEPEND=" + dev-java/osgi-annotation:0 + dev-java/osgi-core:0 +" + +# Compile dependencies +# POM: pom.xml +# test? junit:junit:4.11 -> >=dev-java/junit-4.13.2:4 +# test? org.apache.felix:org.apache.felix.utils:1.8.0 -> >=dev-java/felix-utils-1.11.8:0 +# test? org.mockito:mockito-all:1.10.19 -> !!!artifactId-not-found!!! + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} + test? ( + dev-java/felix-utils:0 + dev-java/mockito:0 + ) +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND}" + +DOCS=( DEPENDENCIES NOTICE doc/changelog.txt ) + +S="${WORKDIR}/org.apache.felix.resolver-${PV}" + +JAVA_RESOURCE_DIRS="src/main/resources" +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH="felix-utils,junit-4,mockito" +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +src_test() { + # java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @73ec6027 + 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 ) + JAVA_TEST_EXTRA_ARGS+=( --add-opens=java.base/java.io=ALL-UNNAMED ) + fi + java-pkg-simple_src_test +} diff --git a/dev-java/felix-resolver/metadata.xml b/dev-java/felix-resolver/metadata.xml new file mode 100644 index 000000000000..4af2d5d52d45 --- /dev/null +++ b/dev-java/felix-resolver/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <doc>https://felix.apache.org/documentation/documentation.html</doc> + <remote-id type="github">apache/felix-dev</remote-id> + </upstream> +</pkgmetadata> |