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.2.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/poi/Manifest b/dev-java/poi/Manifest index ededfad48d7c..c6557f94e9f0 100644 --- a/dev-java/poi/Manifest +++ b/dev-java/poi/Manifest @@ -1,3 +1,5 @@ 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 EBUILD poi-5.0.0.ebuild 1952 BLAKE2B 92ad38903362045d539e01fe2d62bc95325e87c1224cbf1a08a9c80e61aeb195f0f388b0ab47b6def950d2b095d02b98a369f52c010f34b1fdb398012ef4cafa SHA512 c5fff618b8dcea6970b1ccc3adf52631ee731ec78b762f17896efe0f2bee907b6ad9d0fd197183a3cb9e175290915d388d014d326555bf3d2aeb8b1a4ecc1f6c +EBUILD poi-5.2.2.ebuild 1770 BLAKE2B 366c7228cf6af438faf508cf4e6b55da491e3595b991a6f13016caa4b5e259e69064dd26394b9072782e3a55125f6e5bedea535f007038abc4daf3bafa3b8249 SHA512 ee2965f45d229c6dbae4dc0a0b81617f2b86db4809605ee2311230ada5bcb243821052a6edf4fadc8c545399478ef8ac74c500d34abe22a5b3aa1f30d38974b1 MISC metadata.xml 429 BLAKE2B 5de897522625a2c4ff05fcbd8f1ffc1e58bf734febe26f28a23e9f1a3a93d3acb1d099d9cc50d329c14bf9c586e15b74bfe061ccab493ce1627161ebce46a845 SHA512 a8b3da8273c10239b9bde465b67dd818d74910bb9303462b68df5ee9487aaeefbfec324bd0492601c75adb4e9fa163bf99ca7ececf2684f4778a61041a98e75c 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 +} |