diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2022-10-22 10:13:41 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-10-22 11:31:40 +0200 |
commit | 35c727aacf33bcea29b38ae01757eaadadd282fd (patch) | |
tree | 4f653044e67e959c5ae9de2b2f7ff3e7e2171bb2 /dev-java/poi | |
parent | sys-devel/mold: add 1.6.0 (diff) | |
download | gentoo-35c727aacf33bcea29b38ae01757eaadadd282fd.tar.gz gentoo-35c727aacf33bcea29b38ae01757eaadadd282fd.tar.bz2 gentoo-35c727aacf33bcea29b38ae01757eaadadd282fd.zip |
dev-java/poi: add 5.2.3
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/27891
Signed-off-by: Miroslav Šulc <fordfrog@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.3.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/poi/Manifest b/dev-java/poi/Manifest index 446c7ed3e502..8554a4c8a5fc 100644 --- a/dev-java/poi/Manifest +++ b/dev-java/poi/Manifest @@ -1 +1,2 @@ DIST poi-src-5.2.2-20220312.tgz 117042913 BLAKE2B ef2ab433158ac51fc163e9bfa65268d246a686c7892234cdd2332bef526c69b59dd0959bdabc6a486a99e20dfcc144ff6aff775a6412136112bb6a36f10968d3 SHA512 858d6c1af8a29a22aa24bef0422b3c8329141ff026131b8354a97c87acc31ef06c91f1b9cabeb71738b3687ddc8283f19b2ac42865b7e98e91cb0d5aa6b89b40 +DIST poi-src-5.2.3-20220909.tgz 117839114 BLAKE2B 8b62f212dbbb6c7c20900dad97eaee20d416129d1529f42d3f3d15c42dd737af389f3d46c0891f733ba6ce143fa30c73aa921a2f007e68ecbfcd2a61da27baec SHA512 15d1d9387a3003fa30dc77cb42721daefb07a0f8ef1a69873107fd2266d66ae5c0138f47f2867d49154bbde4f28939ac1aa1b49e367230408e67c05099addc1c diff --git a/dev-java/poi/poi-5.2.3.ebuild b/dev-java/poi/poi-5.2.3.ebuild new file mode 100644 index 000000000000..4ac75b353fdd --- /dev/null +++ b/dev-java/poi/poi-5.2.3.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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="20220909" +SRC_URI="mirror://apache/poi/release/src/poi-src-${PV}-${RELEASE_DATE}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~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}-${PV}" + +JAVA_AUTOMATIC_MODULE_NAME="org.apache.poi.poi" +JAVA_CLASSPATH_EXTRA=" + commons-codec + commons-collections-4 + commons-io-1 + commons-math-3 + log4j-api-2 + sparsebitset + " +JAVA_RESOURCE_DIRS="poi/src/main/resources" +JAVA_SRC_DIR=( poi/src/main/java{,9} ) + +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 +} |