summaryrefslogtreecommitdiff
path: root/dev-java/joda-time
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-27 15:01:59 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-27 15:01:59 +0100
commitd1d8adbfd346340c3784c72a9fa0868dde6ff736 (patch)
treee10785da8133e519147d7b5fdc5e3b634a041f8b /dev-java/joda-time
parentd305208ca7a258fb77809f63c895764345c61919 (diff)
gentoo auto-resync : 27:07:2022 - 15:01:59
Diffstat (limited to 'dev-java/joda-time')
-rw-r--r--dev-java/joda-time/Manifest2
-rw-r--r--dev-java/joda-time/joda-time-2.10.14.ebuild80
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest
index 8b0047187ad6..6162f9adcabc 100644
--- a/dev-java/joda-time/Manifest
+++ b/dev-java/joda-time/Manifest
@@ -1,3 +1,5 @@
DIST joda-time-2.10.10.tar.gz 1052384 BLAKE2B 656efddf6b98f10ce6729c6fa4c76ddfeb86dd94971c2637af3ddcb8a3a47f83948dbd58b04a6249445ef2857c5c5edb994a6d56349ed4ff4130ce9aaebd57e9 SHA512 e7917fd28cd10d7fbee02016b1f13a15a80af099b952cc0e8978bfc7fa389109553804670492c206f2b49bcf910ea093fc1838cb45ce4b7a3a885aac2aaf5943
+DIST joda-time-2.10.14.tar.gz 1055876 BLAKE2B c70ad0724ad5e6d6f6a158ed05eb9711095cd353bf72a43a3edaa8ce36db1f92e0c18cd2e2b73c34e4126962d0ef97bf83844f9de924df8aadce7d38ffdb7975 SHA512 061c341c35f5187422fe402500384f5933c1eb0c77963f65b5295b8f9b479adf29f944269173d9a93e4a288c583777b21f085afe4c5da6c695f14801636f0fc1
EBUILD joda-time-2.10.10-r1.ebuild 1966 BLAKE2B 4f7b94c9db701439aaa82d4fd7762181e4e7ca57cf56f5d43fc0c95ad5f252bbb726e66b589041a53ed18b7beaaeb251aa0faef1b25301a75054e1c9d8f07431 SHA512 ee10fa7103410768ddb6f084734f90c2966b692271b1874d9dbe15cdeba6b30fbf532b31534d4d681243a8ed64dd668670e7929a567065d05a63b721b4e68310
+EBUILD joda-time-2.10.14.ebuild 2178 BLAKE2B d6b8531a49a76362dd328ddaa5fc17cd85ab94c1257a4e75920d7a2337aa320df0413f9f14f18f9f4d3865c7dad9bb9d8e7a3e676da3363e27457048ee15a27c SHA512 4108bd37652b5bb590208e7e0d71b9a08dfc2f1f11d62f51aecec390e9541df5a1b7c6cdd064a6f012297fbd7e4c63acb6c8e936a22b3b50fa8e4576bc8cf6d1
MISC metadata.xml 497 BLAKE2B 96303e9c4ee30156cb9f6dc9260155270fbc3aece7c8dcfb1fd796e69ed4ee2f3ec91030f016dcdd53f411a5c216c3d41dd68ea45079c036e0ee55d529548fd2 SHA512 9f5a300ca1ee6a68e555393879c61c6898c5ba22f0cdd83d83c1411d3009af7478ddb0e1087bc88d695b2bab162c4cc62952d3fc29b4902a857db95c2fc2f130
diff --git a/dev-java/joda-time/joda-time-2.10.14.ebuild b/dev-java/joda-time/joda-time-2.10.14.ebuild
new file mode 100644
index 000000000000..23de2c024ab5
--- /dev/null
+++ b/dev-java/joda-time/joda-time-2.10.14.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Skeleton command:
+# java-ebuilder --generate-ebuild --workdir . --pom pom.xml --download-uri https://github.com/JodaOrg/joda-time/archive/v2.10.14.tar.gz --slot 0 --keywords "~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" --ebuild joda-time-2.10.14.ebuild
+
+EAPI=8
+
+JAVA_PKG_IUSE="doc source test"
+MAVEN_ID="joda-time:joda-time:2.10.1r40"
+JAVA_TESTING_FRAMEWORKS="junit"
+
+inherit 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"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+
+# Common dependencies
+# POM: ${P}/pom.xml
+# org.joda:joda-convert:1.9.2 -> >=dev-java/joda-convert-2.2.1:0
+
+CP_DEPEND="
+ >=dev-java/joda-convert-2.2.2-r2:0
+"
+
+DEPEND="
+ >=virtual/jdk-1.8:*
+ ${CP_DEPEND}
+"
+
+RDEPEND="
+ >=virtual/jre-1.8:*
+ ${CP_DEPEND}"
+
+S="${WORKDIR}/${P}"
+
+JAVA_SRC_DIR="src/main/java"
+JAVA_RESOURCE_DIRS="src/main/res"
+JAVA_AUTOMATIC_MODULE_NAME="org.joda.time"
+
+JAVA_TEST_GENTOO_CLASSPATH="junit"
+JAVA_TEST_SRC_DIR="src/test/java"
+JAVA_TEST_RESOURCE_DIRS="src/test/resources"
+
+src_prepare() {
+ default
+ # move .properties files to JAVA_RESOURCE_DIRS
+ mkdir -p src/main/res
+ cp -r src/main/{java/*,res} || die
+ find src/main/res -type f ! -name '*.properties' -exec rm -rf {} + || die
+}
+
+src_compile() {
+ java-pkg-simple_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
+ "$(java-config -J)" \
+ -cp ${PN}.jar \
+ 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
+
+ # add org/joda/time/tz to the jar file
+ jar -uf joda-time.jar -C src/main/res org/joda/time/tz/data || die
+}