diff options
Diffstat (limited to 'dev-java/poi')
-rw-r--r-- | dev-java/poi/Manifest | 2 | ||||
-rw-r--r-- | dev-java/poi/poi-5.2.3.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/poi/Manifest b/dev-java/poi/Manifest index 59dc5d6db8fc..99bee2b9d9bc 100644 --- a/dev-java/poi/Manifest +++ b/dev-java/poi/Manifest @@ -1,3 +1,5 @@ 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 EBUILD poi-5.2.2.ebuild 1771 BLAKE2B 86316563c399935d856b4dde69f9c157769e21d830ef001e324a309eea6852aa67caa557d0d248c5c7c38be9a17f4587e69c6278af51d3a4d15ea8588be8f1b0 SHA512 e26b994b3a99b03926be315cffd47da711a4f844139e5b87fad3e84e57a8218ffb969d1607c0143ad30fc430abef838a1cff6c7a72c3eb19e9fb3c912afbbeb9 +EBUILD poi-5.2.3.ebuild 1560 BLAKE2B 1bf512df668bbb384f74e2ca9bf702037cf2464351d683e96a9d14af7f7d4217fa61ca514820c729f54421e9078b5ddf4a3fd22363836db0e63c7914c4986ea0 SHA512 89867ef524657214e96077993c6aec476bf639b0eaa634047a9df77e035baeae41fc3ec980d3d2d32fc7e5d64ce46ef828a78b973e60be9a3bcca58a1d68a16b MISC metadata.xml 429 BLAKE2B 5de897522625a2c4ff05fcbd8f1ffc1e58bf734febe26f28a23e9f1a3a93d3acb1d099d9cc50d329c14bf9c586e15b74bfe061ccab493ce1627161ebce46a845 SHA512 a8b3da8273c10239b9bde465b67dd818d74910bb9303462b68df5ee9487aaeefbfec324bd0492601c75adb4e9fa163bf99ca7ececf2684f4778a61041a98e75c 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 +} |