Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
DIST poi-src-5.2.3-20220909.tgz 117839114 BLAKE2B 8b62f212dbbb6c7c20900dad97eaee20d416129d1529f42d3f3d15c42dd737af389f3d46c0891f733ba6ce143fa30c73aa921a2f007e68ecbfcd2a61da27baec SHA512 15d1d9387a3003fa30dc77cb42721daefb07a0f8ef1a69873107fd2266d66ae5c0138f47f2867d49154bbde4f28939ac1aa1b49e367230408e67c05099addc1c | ||
DIST poi-src-5.2.5-20231118.tgz 120325373 BLAKE2B a998b874040ac2fb136b9ffa59d30cf5939434efe59d51fc2e79c63f6fd1f3ad1679b532840f0e1975aa0fe79368951ecf2ddc0259e3dfce9fc2c34d95cb7216 SHA512 d46e94cfadc3a843d8e06033a618098dde738830f20146c6e39abd8f467aa88987719363ee2b91ecf6812e604cdc72a5c0a799676e264a6f9d3799aa4639a6c9 | ||
DIST poi-src-5.2.5-20231118.tgz.asc 488 BLAKE2B 634ed5e3bacd71213a96b9da147348deb3dd2837f6cf47f4d76c254442504815e41b1d9a3facfaa27c927f11f1ba552acf4dc94c4ffbfd11cc70eefd054a1523 SHA512 3588d60ad1c5e59540f19e345f2cfd6600a592fda313ab53bfd280599906e9d3c44aedae8fb72409ebae67c0285b257290bdca9128a632379db894143585dd1e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
# No tests, #839681 | ||
JAVA_PKG_IUSE="doc source" | ||
MAVEN_ID="org.apache.poi:poi-main:${PV}" | ||
|
||
inherit java-pkg-2 java-pkg-simple verify-sig | ||
|
||
DESCRIPTION="Maven build of Apache POI for Sonar checks" | ||
HOMEPAGE="https://poi.apache.org/" | ||
RELEASE_DATE="20231118" | ||
SRC_URI="mirror://apache/poi/release/src/poi-src-${PV}-${RELEASE_DATE}.tgz | ||
verify-sig? ( https://downloads.apache.org/poi/release/src/poi-src-${PV}-${RELEASE_DATE}.tgz.asc )" | ||
S="${WORKDIR}/poi-src-${PV}-${RELEASE_DATE}" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" | ||
|
||
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/poi.apache.org.asc" | ||
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-poi )" | ||
DEPEND=" | ||
dev-java/commons-codec:0 | ||
dev-java/commons-collections:4 | ||
dev-java/commons-io:1 | ||
dev-java/commons-math:3 | ||
dev-java/log4j-api:2 | ||
>=dev-java/sparsebitset-1.3:0 | ||
>=virtual/jdk-11:* | ||
" | ||
|
||
RDEPEND=">=virtual/jre-1.8:*" | ||
|
||
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 | ||
# log4j-api does not provide Automatic-Module | ||
sed \ | ||
-e '/org.apache.logging.log4j/d' \ | ||
-i poi/src/main/java9/module-info.java || die | ||
} |