diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-21 04:04:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-21 04:04:33 +0100 |
commit | 3dc4de6331223493015f198dc61854af604da86c (patch) | |
tree | 626add8c88d96adf9429cdb19226d9de60e6dafd /dev-java/commons-csv | |
parent | d895362f98ae63a6ed12cd16d3b3df95d6967f25 (diff) |
gentoo auto-resync : 21:10:2024 - 04:04:33
Diffstat (limited to 'dev-java/commons-csv')
-rw-r--r-- | dev-java/commons-csv/Manifest | 3 | ||||
-rw-r--r-- | dev-java/commons-csv/commons-csv-1.12.0.ebuild | 96 |
2 files changed, 99 insertions, 0 deletions
diff --git a/dev-java/commons-csv/Manifest b/dev-java/commons-csv/Manifest index 9fb9e3a80534..ba48a5459f49 100644 --- a/dev-java/commons-csv/Manifest +++ b/dev-java/commons-csv/Manifest @@ -1,3 +1,6 @@ +DIST commons-csv-1.12.0-src.tar.gz 36993963 BLAKE2B ae6e207906efa3265ba92e1919356c77fa75616eaae0b095d9795100df2c5eb514c73a855ab4fc7a77c7958aff2eacaac860775b514e705e010e6cd3e5fb9e8c SHA512 67d8fd651a9785825b2f13c5f6bd95e0f2649ef9f65ec6889a2f9fcb34bd7a2a8c2b2df06e71eb0bcb1d0063953696daadbe06cf87624714682f0c3235fe7d11 +DIST commons-csv-1.12.0-src.tar.gz.asc 488 BLAKE2B a8185e5625b87fa6040b989f3c5d768c6cd689a63ddcec871b4a38ac1b4b8ae053f03d2a5f1a8e209205c1203f3514e8ef352e7c61eef009508cc0271a3944ad SHA512 0a74375a57a585cb7182cbd1935850b456ad33c119111eff8bac9c39470ed522ad64527b759eb1df5563ca12ca7dab983b7bf6eec3565970969e8d94ba357d4b DIST commons-csv-1.9.0-sources.tar.gz 36975991 BLAKE2B b2e2091556f3766968dbe660e4059f491eedc458d3c15c0372770d144737ab3ddcc78ff36f674759bde8aa9690e4bbe14866f8546e1de3b67498736678650697 SHA512 4610197fbbf1b3fb3ff19ff8f5ee0ffe945c34c05e3db71b89156bf17aa7f6b2816ddace85457fec82cb22337f777e08eac5984d7299e702b537f0d242d368d8 +EBUILD commons-csv-1.12.0.ebuild 2340 BLAKE2B d0134d6af52b1f7ae82b49f789ba975104f1abecb427e68493d61ccb72f788095309e5eb179b91da49b2a1732d02537ba2be8cb31b1b8268586c7a427f6a99e1 SHA512 8fda52ae8a0b0ef3959750532f31ecd426b5f17dca09de9c5f3ccb2d38e5ef021e73da2d8077b38ff52bf73663e2f308f4f35ad5fadb278e6e9bef88e6ec50d3 EBUILD commons-csv-1.9.0.ebuild 1662 BLAKE2B c8d57f66182a8c4338d4c13cee4ce8b9804dc2071298576c5871f53b40c88fe77f95e35c51362a7c28f8673940a697f03e5dcac93c5bd690e72dce9e8f97b241 SHA512 f17b7cbf6f44e114f20b60ed0abda6efe6eb04b87ff05bca0c2617dd2ca65b8c76452a7f7534735be75536ed373016b57139e9f2fc76092af71940a1baa11c8b MISC metadata.xml 416 BLAKE2B 193c84e7cdd7d31c475be29d0f00c44f86dba7226d4c9d3de052b9ecc8e2dae8fe9b402cdd797b04d714253591b39b3f858be13caf0584b1e67f6756cbae7bce SHA512 9c3695f3b80d8efb699cf1f1b8801aa173480a71604abdcc8cf3d093f9631fbf0ef2c6cfbf22ae106831b0b58747219184966904b9c3622c1ce424d4325e18b6 diff --git a/dev-java/commons-csv/commons-csv-1.12.0.ebuild b/dev-java/commons-csv/commons-csv-1.12.0.ebuild new file mode 100644 index 000000000000..a85b884d5160 --- /dev/null +++ b/dev-java/commons-csv/commons-csv-1.12.0.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="org.apache.commons:commons-csv:1.12.0" +JAVA_TESTING_FRAMEWORKS="junit-4" + +inherit java-pkg-2 java-pkg-simple verify-sig + +DESCRIPTION="Simple interface for reading and writing CSV files of various types" +HOMEPAGE="https://commons.apache.org/proper/commons-csv/" +SRC_URI="mirror://apache/commons/csv/source/${P}-src.tar.gz + verify-sig? ( https://archive.apache.org/dist/commons/csv/source/${P}-src.tar.gz.asc )" +S="${WORKDIR}/${P}-src" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +RESTRICT="test" #839681 + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/commons.apache.org.asc" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-commons )" + +DEPEND=" + >=virtual/jdk-11:* + dev-java/commons-codec:0 + dev-java/commons-io:1 + test? ( + >=dev-java/commons-lang-3.12.0:3.6 + dev-java/junit:5 + dev-java/mockito:4 + ) +" + +RDEPEND=">=virtual/jre-1.8:*" + +DOCS=( LICENSE.txt NOTICE.txt RELEASE-NOTES.txt ) + +JAVA_CLASSPATH_EXTRA=" + commons-codec + commons-io-1 +" + +JAVA_SRC_DIR="src/main/java" + +JAVA_TEST_GENTOO_CLASSPATH=" + commons-io-1 + commons-lang-3.6 + junit-5 + mockito-4 +" + +JAVA_TEST_RESOURCE_DIRS="src/test/resources" +JAVA_TEST_SRC_DIR="src/test/java" + +src_compile() { + # getting dependencies into the modulepath + DEPENDENCIES=( + commons-codec + commons-io-1 + ) + local modulepath + for dependency in ${DEPENDENCIES[@]}; do + modulepath="${modulepath}:$(java-pkg_getjars --build-only ${dependency})" + done + + local JAVA_MODULE_NAME="org.apache.${PN/-/.}" + JAVA_JAR_FILENAME="${JAVA_MODULE_NAME}.jar" + java-pkg-simple_src_compile # creates a legacy jar file without module-info + + # generate module-info.java + jdeps \ + --module-path "${modulepath}" \ + --add-modules=ALL-MODULE-PATH \ + --generate-module-info src/main \ + --multi-release 9 \ + "${JAVA_MODULE_NAME}.jar" || die + + # compile module-info.java + ejavac \ + -source 9 -target 9 \ + --module-path "${modulepath}" \ + --patch-module "${JAVA_MODULE_NAME}"="${JAVA_MODULE_NAME}.jar" \ + -d target/versions/9 \ + src/main/"${JAVA_MODULE_NAME}"/versions/9/module-info.java + + # package + JAVA_JAR_FILENAME="${PN}.jar" + jar cvf "${JAVA_JAR_FILENAME}" \ + -C target/classes . \ + --release 9 -C target/versions/9 . || die +} |