diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-07-10 12:31:06 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-07-24 18:51:50 +0200 |
commit | f66d7dd5432a8bd8b5f072a276f6c2b5a04ba16a (patch) | |
tree | 25081f601eecdb8330113b1957ab2473fffdecc0 /dev-java/poi | |
parent | dev-java/commons-math: add missing Automatic-Module-Name (diff) | |
download | gentoo-f66d7dd5432a8bd8b5f072a276f6c2b5a04ba16a.tar.gz gentoo-f66d7dd5432a8bd8b5f072a276f6c2b5a04ba16a.tar.bz2 gentoo-f66d7dd5432a8bd8b5f072a276f6c2b5a04ba16a.zip |
dev-java/poi: add 5.2.2
Bug: https://bugs.gentoo.org/857468
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/26327
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/poi')
-rw-r--r-- | dev-java/poi/Manifest | 1 | ||||
-rw-r--r-- | dev-java/poi/poi-5.2.2.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/poi/Manifest b/dev-java/poi/Manifest index 712b8ee1f6e0..be75761a39eb 100644 --- a/dev-java/poi/Manifest +++ b/dev-java/poi/Manifest @@ -1 +1,2 @@ DIST poi-5.0.0.tar.gz 111429369 BLAKE2B b29e754fb709d01ff4d68e9227f4c4739384bd02934b6860e8a0e96552d9e9ff1c5c665bc0b701f79226505fd98373fe6ad160c72735903eae388f0cd6618337 SHA512 e79d15b42d8ec389fd15b7714faf7b49b9fb4d57014cb341fff0f061393f4ea7dfcbd3810a6ec19539eabddbb1d0690aa56de4a1a412d05a527e11797047023a +DIST poi-src-5.2.2-20220312.tgz 117042913 BLAKE2B ef2ab433158ac51fc163e9bfa65268d246a686c7892234cdd2332bef526c69b59dd0959bdabc6a486a99e20dfcc144ff6aff775a6412136112bb6a36f10968d3 SHA512 858d6c1af8a29a22aa24bef0422b3c8329141ff026131b8354a97c87acc31ef06c91f1b9cabeb71738b3687ddc8283f19b2ac42865b7e98e91cb0d5aa6b89b40 diff --git a/dev-java/poi/poi-5.2.2.ebuild b/dev-java/poi/poi-5.2.2.ebuild new file mode 100644 index 000000000000..054dcda2ddc5 --- /dev/null +++ b/dev-java/poi/poi-5.2.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom poi-5.2.2/sonar/main/pom.xml --download-uri https://archive.apache.org/dist/poi/release/src/poi-src-5.2.2-20210120.tar.gz --slot 0 --keywords "~amd64 ~arm64 ~ppc64 ~x86" --ebuild poi-5.0.0.ebuild + +EAPI=8 + +# tests depend on junit-jupiter which is not packaged +# https://github.com/apache/poi/blob/REL_5_2_2/poi/build.gradle#L51-L56 +JAVA_PKG_IUSE="doc source" +MAVEN_ID="org.apache.poi:poi-main:5.2.2" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Maven build of Apache POI for Sonar checks" +HOMEPAGE="https://poi.apache.org/" +RELEASE_DATE="20220312" +SRC_URI="mirror://apache/poi/release/src/poi-src-${PV}-${RELEASE_DATE}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" + +DEPEND=" + >=dev-java/commons-codec-1.15-r1:0 + >=dev-java/commons-collections-4.4-r1:4 + >=dev-java/commons-io-2.11.0-r1:1 + >=dev-java/commons-math-3.6.1-r2:3 + dev-java/log4j-api:2 + dev-java/sparsebitset:0 + >=virtual/jdk-11:* +" + +RDEPEND=" + >=virtual/jre-1.8:*" + +S="${WORKDIR}/poi-src-${PV}-${RELEASE_DATE}" + +JAVA_CLASSPATH_EXTRA=" + commons-codec + commons-collections-4 + commons-io-1 + commons-math-3 + log4j-api-2 + sparsebitset + " +JAVA_SRC_DIR=( poi/src/main/java{,9} ) +JAVA_RESOURCE_DIRS="poi/src/main/resources" + +src_prepare() { + default + sed \ + -e "s:@VERSION@:${PV}:g" \ + -e "s:@DSTAMP@:${RELEASE_DATE}:g" \ + poi/src/main/version/Version.java.template \ + > poi/src/main/java/org/apache/poi/Version.java || die + # Neither log4j-api nor SparseBitSet provide Automatic-Module + sed \ + -e '/SparseBitSet/d' \ + -e '/org.apache.logging.log4j/d' \ + -i poi/src/main/java9/module-info.java || die +} |