summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolkmar W. Pogatzki <gentoo@pogatzki.net>2022-09-21 19:43:47 +0200
committerFlorian Schmaus <flow@gentoo.org>2022-11-03 21:45:46 +0100
commit6f6e1abdeb7485ecdeeeb134dea2206490e16b0d (patch)
treed7dcc8be63b4cd7c275d9241172b8bb9c1de64bd /dev-java/felix-main
parentdev-java/greenmail: add 2.0.0_alpha2 (diff)
downloadgentoo-6f6e1abdeb7485ecdeeeb134dea2206490e16b0d.tar.gz
gentoo-6f6e1abdeb7485ecdeeeb134dea2206490e16b0d.tar.bz2
gentoo-6f6e1abdeb7485ecdeeeb134dea2206490e16b0d.zip
dev-java/felix-main: new package, add 7.0.5
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/felix-main')
-rw-r--r--dev-java/felix-main/Manifest1
-rw-r--r--dev-java/felix-main/felix-main-7.0.5.ebuild74
-rw-r--r--dev-java/felix-main/metadata.xml15
3 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/felix-main/Manifest b/dev-java/felix-main/Manifest
new file mode 100644
index 000000000000..91eadc1ce506
--- /dev/null
+++ b/dev-java/felix-main/Manifest
@@ -0,0 +1 @@
+DIST felix-main-7.0.5.tar.gz 255198 BLAKE2B 289e2305b15c28f985bee1d8687db6ecb5098a2086da6fd32a7db8572f83a1ac37e49deeb89d657d48b943a626d400caccd8185ced565e8c65aa558395aeef05 SHA512 e06f6c330a73100a739575e92a6f0af263a98643bbd6fd6661e799c2a11c8c9d9589f1f5b8802799ffcae7007e8362c629055fa8b25a50a4fa736ed2ba2955b0
diff --git a/dev-java/felix-main/felix-main-7.0.5.ebuild b/dev-java/felix-main/felix-main-7.0.5.ebuild
new file mode 100644
index 000000000000..2fbccc53b90c
--- /dev/null
+++ b/dev-java/felix-main/felix-main-7.0.5.ebuild
@@ -0,0 +1,74 @@
+# 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.main-7.0.5-source-release.tar.gz --slot 0 --keywords "~amd64" --ebuild felix-main-7.0.5.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source"
+MAVEN_ID="org.apache.felix:org.apache.felix.main:7.0.5"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Open source OSGi framework by Apache Software Foundation"
+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.apache.felix:org.apache.felix.framework:7.0.5 -> >=dev-java/felix-framework-7.0.5:0
+
+CP_DEPEND="~dev-java/felix-framework-${PV}:0"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}
+"
+
+DOCS=( DEPENDENCIES NOTICE )
+
+S="${WORKDIR}/org.apache.felix.main-${PV}"
+
+JAVA_MAIN_CLASS="org.apache.felix.main.Main"
+JAVA_RESOURCE_DIRS="src/main/resources"
+JAVA_SRC_DIR="src/main/java"
+
+src_prepare() {
+ default
+ # 58,91 pom.xml
+ cat > src/main/java/module-info.java <<-EOF || die
+ $( sed -n '/<moduleInfoSource>/,/<\/moduleInfoSource/p' pom.xml \
+ | grep -v moduleInfoSource )
+ EOF
+
+ # according to pom.xml, line 91
+ local add_opens="$( sed -n '/<Add-opens>/,/<\/Add-opens/p' pom.xml \
+ | grep -v Add-opens | tr -s '[:space:]')" || die
+ mkdir src/main/resources/META-INF || die
+ echo "Add-opens:${add_opens}" >> src/main/resources/META-INF/MANIFEST.MF \
+ || die "creating MANIFEST.MF failed"
+
+ # no idea what to do with felix.log.level=${log.level} here, but ...
+ sed -e 's/{dollar}//' -i src/main/resources/config.properties || die
+
+ # bundling some classes from felix-framework according to 78,94 pom.xml
+ # if we don't bundle compilation of module-info would fail
+ cd src/main/resources || die
+ jar xvf "$(java-pkg_getjar --build-only felix-framework felix-framework.jar)" \
+ default.properties org/ || die "felix-framework.jar does not exist"
+}
+
+src_install() {
+ dodoc -r doc
+ java-pkg-simple_src_install
+}
diff --git a/dev-java/felix-main/metadata.xml b/dev-java/felix-main/metadata.xml
new file mode 100644
index 000000000000..2052253c1b6e
--- /dev/null
+++ b/dev-java/felix-main/metadata.xml
@@ -0,0 +1,15 @@
+<?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/</doc>
+ <remote-id type="github">apache/felix-dev</remote-id>
+ </upstream>
+ <longdescription>
+ Apache Felix is a community effort to implement the OSGi Framework and Service platform and other interesting OSGi-related technologies.
+ </longdescription>
+</pkgmetadata>