From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/joda-time/
Date: Mon, 21 Oct 2024 07:48:42 +0000 (UTC) [thread overview]
Message-ID: <1729496846.4f0dbee6ed1b7696a01b68a894094a6603e5be2c.fordfrog@gentoo> (raw)
commit: 4f0dbee6ed1b7696a01b68a894094a6603e5be2c
Author: Volkmar W. Pogatzki <gentoo <AT> pogatzki <DOT> net>
AuthorDate: Sun Oct 6 07:06:22 2024 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Mon Oct 21 07:47:26 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f0dbee6
dev-java/joda-time: add 2.13.0
Signed-off-by: Volkmar W. Pogatzki <gentoo <AT> pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/38836/commits/db05fd4bc6b0ca1ddd2303db08c6a962db297d30
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
dev-java/joda-time/Manifest | 1 +
dev-java/joda-time/joda-time-2.13.0.ebuild | 85 ++++++++++++++++++++++++++++++
2 files changed, 86 insertions(+)
diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest
index 9acad90f89bc..579996b282c0 100644
--- a/dev-java/joda-time/Manifest
+++ b/dev-java/joda-time/Manifest
@@ -1 +1,2 @@
DIST joda-time-2.11.2.tar.gz 1055885 BLAKE2B 52281dcb530734dd33d0c01b07c9fbc5e7afd507a97e6926f7ef442dc91907d999d126289bc609e6fabf6af4267e47e5a79452d462a3f0561c405e6cd7f5976f SHA512 ea43deea4ef751fc631c35589adec0c5d9d0a5c836c1a24ada5d994cb9310a55b5af69260afd2647516c64fc84b892a2e25fca4bb38e852982c40f7caa5858b3
+DIST joda-time-2.13.0.tar.gz 1076948 BLAKE2B d70be1086175c80f72c7dc945aea24f71d74552e7f8e56bd84a62f308bd9db0e006951ae415dfec6f18cb47485019e179e66a198b6c1adafaa79b3f590318825 SHA512 0e185c433891d6d6a1ac9e93e5ddf6cde4097de4b810881266ab8f149de4cfbe089b857a946e8d36731ad82f84c789e12ffcde1836cd088e9056e3533ce79200
diff --git a/dev-java/joda-time/joda-time-2.13.0.ebuild b/dev-java/joda-time/joda-time-2.13.0.ebuild
new file mode 100644
index 000000000000..687610127fae
--- /dev/null
+++ b/dev-java/joda-time/joda-time-2.13.0.ebuild
@@ -0,0 +1,85 @@
+# 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="joda-time:joda-time:2.13.0"
+JAVA_TESTING_FRAMEWORKS="junit"
+
+inherit edo java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Date and time library to replace JDK date handling"
+HOMEPAGE="https://www.joda.org/joda-time/"
+SRC_URI="https://github.com/JodaOrg/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${P}"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~amd64-linux ~x86-linux ~ppc-macos"
+
+DEPEND="
+ dev-java/joda-convert:0
+ >=virtual/jdk-1.8:*
+"
+
+RDEPEND=">=virtual/jre-1.8:*"
+
+DOCS=( NOTICE.txt README.md RELEASE-NOTES.txt )
+
+JAVA_AUTOMATIC_MODULE_NAME="org.joda.time"
+JAVA_CLASSPATH_EXTRA="joda-convert"
+JAVA_RESOURCE_DIRS="src/main/res"
+JAVA_SRC_DIR="src/main/java"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+JAVA_TEST_RUN_ONLY="org.joda.time.TestAllPackages"
+JAVA_TEST_SRC_DIR="src/test/java"
+
+src_prepare() {
+ default
+ # move .properties files to JAVA_RESOURCE_DIRS
+ mkdir -p src/main/res/META-INF
+ cp -r src/main/{java/*,res} || die
+ find src/main/res -type f ! -name '*.properties' -exec rm -rf {} + || die
+ mv src/main/res{ources,}/META-INF/native-image || die
+}
+
+src_compile() {
+ # Generate the missing "org/joda/time/tz/data/ZoneInfoMap"
+ # Arguments from https://github.com/JodaOrg/joda-time/blob/v2.10.10/pom.xml#L413-L427
+ ejavac \
+ -d ZoneInfoCompiler \
+ -cp ${JAVA_SRC_DIR}:$(java-pkg_getjars --build-only joda-convert) \
+ src/main/java/org/joda/time/tz/ZoneInfoCompiler.java || die
+
+ edo "$(java-config -J)" \
+ -cp ZoneInfoCompiler \
+ org.joda.time.tz.ZoneInfoCompiler \
+ -src "${JAVA_SRC_DIR}/org/joda/time/tz/src" \
+ -dst src/main/res/org/joda/time/tz/data \
+ africa \
+ antarctica \
+ asia \
+ australasia \
+ europe \
+ northamerica \
+ southamerica \
+ etcetera \
+ backward || die
+
+ java-pkg-simple_src_compile
+}
+
+src_test() {
+ # There was 1 error:
+ # 1) testZoneInfoProviderResourceLoading(org.joda.time.TestDateTimeZone)java.lang.UnsupportedOperationException:
+ # The Security Manager is deprecated and will be removed in a future release
+ local vm_version="$(java-config -g PROVIDES_VERSION)"
+ if ver_test "${vm_version}" -lt 21 ; then
+ java-pkg-simple_src_test
+ else
+ einfo "Tests restricted to <jdk-21"
+ fi
+}
next reply other threads:[~2024-10-21 7:48 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 7:48 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 14:32 [gentoo-commits] repo/gentoo:master commit in: dev-java/joda-time/ Michał Górny
2024-11-22 18:24 Arthur Zamarin
2024-11-22 10:20 Sam James
2024-11-22 7:48 Miroslav Šulc
2024-10-23 7:04 Miroslav Šulc
2022-10-12 20:02 Arthur Zamarin
2022-10-12 19:22 Sam James
2022-10-10 18:39 Arthur Zamarin
2022-10-10 7:02 Agostino Sarubbo
2022-10-09 12:46 Arthur Zamarin
2022-10-03 7:55 Florian Schmaus
2022-09-06 8:20 Florian Schmaus
2022-08-28 5:17 Miroslav Šulc
2022-08-26 23:27 Sam James
2022-08-26 10:23 Arthur Zamarin
2022-08-26 10:08 Sam James
2022-08-26 9:55 Arthur Zamarin
2022-07-27 8:54 Florian Schmaus
2021-12-17 10:57 Arthur Zamarin
2021-11-24 23:31 Sam James
2021-10-19 0:15 Sam James
2021-04-13 18:23 Sergei Trofimovich
2021-04-11 0:13 Thomas Deutschmann
2021-04-05 9:54 Miroslav Šulc
2021-04-05 9:54 Miroslav Šulc
2021-04-03 10:59 Miroslav Šulc
2020-08-25 9:46 Miroslav Šulc
2020-05-17 16:55 Aaron Bauman
2016-03-31 18:00 Patrice Clement
2016-03-31 16:56 Patrice Clement
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=1729496846.4f0dbee6ed1b7696a01b68a894094a6603e5be2c.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