public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-csv/
Date: Sun, 20 Oct 2024 10:07:41 +0000 (UTC)	[thread overview]
Message-ID: <1729418681.79e86386bd7513f29495c5a3283a158ec8446217.fordfrog@gentoo> (raw)

commit:     79e86386bd7513f29495c5a3283a158ec8446217
Author:     Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Mon Sep 30 08:19:41 2024 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Oct 20 10:04:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79e86386

dev-java/commons-csv: add 1.12.0

Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/38836/commits/6ca724d74a4516c2c132853fd8d4105b230fd86b
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 dev-java/commons-csv/Manifest                  |  2 +
 dev-java/commons-csv/commons-csv-1.12.0.ebuild | 96 ++++++++++++++++++++++++++
 2 files changed, 98 insertions(+)

diff --git a/dev-java/commons-csv/Manifest b/dev-java/commons-csv/Manifest
index 0bc18bae17ce..82556142c5a2 100644
--- a/dev-java/commons-csv/Manifest
+++ b/dev-java/commons-csv/Manifest
@@ -1 +1,3 @@
+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

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
+}


             reply	other threads:[~2024-10-20 10:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-20 10:07 Miroslav Šulc [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-28  6:21 [gentoo-commits] repo/gentoo:master commit in: dev-java/commons-csv/ Miroslav Šulc
2022-03-08 13:06 Jakov Smolić
2022-02-16 20:31 Arthur Zamarin
2022-02-11 19:58 Arthur Zamarin
2021-10-28 14:06 Miroslav Šulc
2021-10-28 14:03 Agostino Sarubbo
2021-10-28 14:02 Agostino Sarubbo
2021-10-27 22:33 Sam James
2021-09-24  7:14 Miroslav Šulc
2021-07-02  6:29 Agostino Sarubbo
2021-07-02  6:28 Agostino Sarubbo
2021-07-02  6:26 Agostino Sarubbo
2021-07-01 14:15 Miroslav Šulc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1729418681.79e86386bd7513f29495c5a3283a158ec8446217.fordfrog@gentoo \
    --to=fordfrog@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox