summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-07-28 09:34:11 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-09-10 18:36:10 +0200
commit7019aa3ccbb027696b76e9ad3a54db5a98fe8a7d (patch)
tree93eb4785c499dd4e226f2c55e5dfe7bc96c314f4 /dev-java/osgi-cmpn
parentdev-java/jaxrs-api: new package, add 2.1.6 (diff)
downloadgentoo-7019aa3ccbb027696b76e9ad3a54db5a98fe8a7d.tar.gz
gentoo-7019aa3ccbb027696b76e9ad3a54db5a98fe8a7d.tar.bz2
gentoo-7019aa3ccbb027696b76e9ad3a54db5a98fe8a7d.zip
dev-java/osgi-cmpn: new package, add 8.0.0
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/osgi-cmpn')
-rw-r--r--dev-java/osgi-cmpn/Manifest1
-rw-r--r--dev-java/osgi-cmpn/metadata.xml8
-rw-r--r--dev-java/osgi-cmpn/osgi-cmpn-8.0.0.ebuild45
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/osgi-cmpn/Manifest b/dev-java/osgi-cmpn/Manifest
new file mode 100644
index 000000000000..fdab030c1b9f
--- /dev/null
+++ b/dev-java/osgi-cmpn/Manifest
@@ -0,0 +1 @@
+DIST osgi-cmpn-8.0.0.jar 1897102 BLAKE2B efc22960e4f56e85c2ab5dd392c3793c69055e4c1fe19522f00863c59ebc27be817fffe678ebff876be114ae38cd09c561eb6efba3c25a5ebda96732330eec3b SHA512 194ce255a42c04f6515bfe982ea4685dbcfa6227a07572d17ead7fd0e5b07ca4c29a1cec7edf61a5d4e99fbd1bfadecdbf5a2128f73ace3812092ef9e310b727
diff --git a/dev-java/osgi-cmpn/metadata.xml b/dev-java/osgi-cmpn/metadata.xml
new file mode 100644
index 000000000000..4221e170cbc0
--- /dev/null
+++ b/dev-java/osgi-cmpn/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+ <name>Java</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-java/osgi-cmpn/osgi-cmpn-8.0.0.ebuild b/dev-java/osgi-cmpn/osgi-cmpn-8.0.0.ebuild
new file mode 100644
index 000000000000..dfe9b8303ddc
--- /dev/null
+++ b/dev-java/osgi-cmpn/osgi-cmpn-8.0.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="org.osgi:osgi.cmpn:8.0.0"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="OSGi Service Platform Compendium API (Companion Code)"
+HOMEPAGE="https://docs.osgi.org"
+SRC_URI="https://docs.osgi.org/download/r$(ver_cut 1)/${PN/-/.}-${PV}.jar -> ${P}.jar"
+
+LICENSE="Apache-2.0 OSGi-Specification-2.0"
+SLOT="8"
+KEYWORDS="~amd64"
+
+CP_DEPEND="
+ dev-java/cdi-api:0
+ dev-java/glassfish-persistence:0
+ dev-java/jakarta-servlet-api:4
+ dev-java/javax-inject:0
+ dev-java/jaxrs-api:0
+ dev-java/osgi-annotation:0
+ dev-java/osgi-core:0
+"
+
+DEPEND="${CP_DEPEND}
+ >=virtual/jdk-11:*"
+
+RDEPEND="${CP_DEPEND}
+ >=virtual/jre-1.8:*"
+
+BDEPEND="app-arch/unzip"
+
+JAVA_SRC_DIR="OSGI-OPT/src"
+
+src_prepare() {
+ default
+ java-pkg_clean org
+ sed \
+ -e 's/javax\(.enterprise\)/jakarta\1/' \
+ -i OSGI-OPT/src/org/osgi/service/cdi/*/*.java || die
+}