From f077c725ef746943ec7902350b30ff569f5995ba Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 8 Nov 2022 09:23:49 +0000 Subject: gentoo auto-resync : 08:11:2022 - 09:23:49 --- dev-java/Manifest.gz | Bin 55987 -> 55977 bytes dev-java/felix-main/Manifest | 2 +- dev-java/felix-main/felix-main-7.0.5-r1.ebuild | 74 +++++++++++++++++++++++++ dev-java/felix-main/felix-main-7.0.5.ebuild | 74 ------------------------- 4 files changed, 75 insertions(+), 75 deletions(-) create mode 100644 dev-java/felix-main/felix-main-7.0.5-r1.ebuild delete mode 100644 dev-java/felix-main/felix-main-7.0.5.ebuild (limited to 'dev-java') diff --git a/dev-java/Manifest.gz b/dev-java/Manifest.gz index 3bd573a63a69..4a03a4be8585 100644 Binary files a/dev-java/Manifest.gz and b/dev-java/Manifest.gz differ diff --git a/dev-java/felix-main/Manifest b/dev-java/felix-main/Manifest index 7a845afddaaa..dd981a76c46c 100644 --- a/dev-java/felix-main/Manifest +++ b/dev-java/felix-main/Manifest @@ -1,3 +1,3 @@ DIST felix-main-7.0.5.tar.gz 255198 BLAKE2B 289e2305b15c28f985bee1d8687db6ecb5098a2086da6fd32a7db8572f83a1ac37e49deeb89d657d48b943a626d400caccd8185ced565e8c65aa558395aeef05 SHA512 e06f6c330a73100a739575e92a6f0af263a98643bbd6fd6661e799c2a11c8c9d9589f1f5b8802799ffcae7007e8362c629055fa8b25a50a4fa736ed2ba2955b0 -EBUILD felix-main-7.0.5.ebuild 2245 BLAKE2B e8276bb5bdffc4bffc71d41b91d43235d21358a3b2779cc150bcae9f0b5544021be30cfd5688a0335150e031c4dacd124d6042b855b39aee4268e785e43fe9c5 SHA512 a1c30e25e3b6c253e75f9b177354e2954bd6356dbb6fd9c73060ae6bd09d1e6df39a4d85332fef8817dc07c4c832ecf55729d7972958c2a4c2d0ab8539a96400 +EBUILD felix-main-7.0.5-r1.ebuild 2244 BLAKE2B 5b056e7910703a6dc2b6571d98b0c4f8d0762626605435c0c96063d1fb4de9f6dd39d79e0da87ecd720aa31d30086b7c2129974c3d9aa02f83f5d82871ee4b85 SHA512 ddd6c49dc16ae2c39a8b6d7fe3c2fb917a627ee2445421c039aad22d014541cc2fe6936e5670ef9ab66ebd4a673f94a5d3100830955a70ffb91bfbc7fb175af0 MISC metadata.xml 594 BLAKE2B 9ec3f78cd94f82740e506f44a6494d8e60894f09cd655b022886978c41bcf73a01628c9f1850a39a78bb96ed9dc57c04e7e1f6f5193b91bd8f23f1706899ef84 SHA512 1d8fab624036e9eda29d385fd042a0ca6b130dfa943c63c09e2a161ee039c695f215da1fe6135b59ece4a0fec06399dff2f80d0a12ab690805fd718d90cc05f2 diff --git a/dev-java/felix-main/felix-main-7.0.5-r1.ebuild b/dev-java/felix-main/felix-main-7.0.5-r1.ebuild new file mode 100644 index 000000000000..0dab5d325d2d --- /dev/null +++ b/dev-java/felix-main/felix-main-7.0.5-r1.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 ~arm ~arm64" + +# 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-11:* + ${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/p' pom.xml \ + | grep -v moduleInfoSource ) + EOF + + # according to pom.xml, line 91 + local add_opens="$( sed -n '//,/<\/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/felix-main-7.0.5.ebuild b/dev-java/felix-main/felix-main-7.0.5.ebuild deleted file mode 100644 index ce90f0bb76dc..000000000000 --- a/dev-java/felix-main/felix-main-7.0.5.ebuild +++ /dev/null @@ -1,74 +0,0 @@ -# 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 ~arm ~arm64" - -# 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/p' pom.xml \ - | grep -v moduleInfoSource ) - EOF - - # according to pom.xml, line 91 - local add_opens="$( sed -n '//,/<\/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 -} -- cgit v1.2.3