diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-22 04:04:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-22 04:04:46 +0100 |
commit | a15e8dc7444560123d7d4be1bccb19afd5b611d0 (patch) | |
tree | 6e26ee0323c09494a66d0f78c4b81e305bb0d096 /dev-java/joda-time | |
parent | 3dc4de6331223493015f198dc61854af604da86c (diff) |
gentoo auto-resync : 22:10:2024 - 04:04:46
Diffstat (limited to 'dev-java/joda-time')
-rw-r--r-- | dev-java/joda-time/Manifest | 2 | ||||
-rw-r--r-- | dev-java/joda-time/joda-time-2.13.0.ebuild | 85 |
2 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest index 74b9855175d6..83f06267acb5 100644 --- a/dev-java/joda-time/Manifest +++ b/dev-java/joda-time/Manifest @@ -1,4 +1,6 @@ AUX joda-time-2.11.0-test.patch 577 BLAKE2B 072cb890960ae26fef7297e7e7af18ab36f5f2ed3d94f370e1ba4d873c3625ed291ead37b05ad8ac0b53da04c2bd0bef4e7b2e4039a450f6466d58d1f0fec1a8 SHA512 77430e5d0829b1de0d621956731f896c644fb4529b6f3e0fe741266661c7b027a3a3bbe0747875a74746c18f4bb7e31eff185121b21de9cdd5e2210aab5e673f 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 EBUILD joda-time-2.11.2.ebuild 2593 BLAKE2B d6da0b344ee28b387078cbe6ce0e44a2b28ed8ed0089ebd9e4d84dd848e2c8c1eab994498af210708cdf2011c221b13d3b4a127b95ae6b70d1b57946eae99773 SHA512 714fbc61dbadbbf8e23f70a9c29df58d0fb20704ca91c3e7410190bf6559117948e118f1d145c4be847dd535a43da74267169364fdf68ae32741525956d56b5f +EBUILD joda-time-2.13.0.ebuild 2358 BLAKE2B b7e03b5c924b1be56648e639a47db28d3c770f47df0d34a18c00e53536c93a313adf23a68843a38a3cc05d6888c1441b52d7af5cbe423f223916763ce4309979 SHA512 8b386be94f773ae0e5fff21da26362f48b21c0970bdef3422c4f514ebd58d69371962e94ed40c3d3f051903328692fc3e38f49590d6e8ebc06c67bdbc770a245 MISC metadata.xml 497 BLAKE2B 96303e9c4ee30156cb9f6dc9260155270fbc3aece7c8dcfb1fd796e69ed4ee2f3ec91030f016dcdd53f411a5c216c3d41dd68ea45079c036e0ee55d529548fd2 SHA512 9f5a300ca1ee6a68e555393879c61c6898c5ba22f0cdd83d83c1411d3009af7478ddb0e1087bc88d695b2bab162c4cc62952d3fc29b4902a857db95c2fc2f130 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 +} |