From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CCA311382C5 for ; Mon, 5 Apr 2021 09:54:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2A048E086F; Mon, 5 Apr 2021 09:54:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F043EE086F for ; Mon, 5 Apr 2021 09:54:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EA9E733BE54 for ; Mon, 5 Apr 2021 09:54:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D51A47 for ; Mon, 5 Apr 2021 09:54:19 +0000 (UTC) From: "Miroslav Šulc" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Miroslav Šulc" Message-ID: <1617616453.3bee014b10165220f166f76e6879fc7748b71ee5.fordfrog@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/joda-time/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/joda-time/Manifest dev-java/joda-time/joda-time-2.10.10-r1.ebuild X-VCS-Directories: dev-java/joda-time/ X-VCS-Committer: fordfrog X-VCS-Committer-Name: Miroslav Šulc X-VCS-Revision: 3bee014b10165220f166f76e6879fc7748b71ee5 X-VCS-Branch: master Date: Mon, 5 Apr 2021 09:54:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6acdd79e-bd36-4a44-adbb-2afe0dd8f5b9 X-Archives-Hash: f7371e395e627378711f5d223f92333a commit: 3bee014b10165220f166f76e6879fc7748b71ee5 Author: Volkmar W. Pogatzki pogatzki net> AuthorDate: Sat Apr 3 22:12:07 2021 +0000 Commit: Miroslav Šulc gentoo org> CommitDate: Mon Apr 5 09:54:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bee014b dev-java/joda-time: bugfix Generate missing files using "org/joda/time/tz/data/ZoneInfoMap" Closes: https://bugs.gentoo.org/779892 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/20176/commits/ddefe3c3bf3a1dc6d3efb09792929bb55fcec4cd Signed-off-by: Miroslav Šulc gentoo.org> dev-java/joda-time/Manifest | 1 + dev-java/joda-time/joda-time-2.10.10-r1.ebuild | 75 ++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest index 23b3649d4b7..291708b4869 100644 --- a/dev-java/joda-time/Manifest +++ b/dev-java/joda-time/Manifest @@ -1,2 +1,3 @@ DIST joda-time-2.10.10-sources.tar.gz 1052384 BLAKE2B 656efddf6b98f10ce6729c6fa4c76ddfeb86dd94971c2637af3ddcb8a3a47f83948dbd58b04a6249445ef2857c5c5edb994a6d56349ed4ff4130ce9aaebd57e9 SHA512 e7917fd28cd10d7fbee02016b1f13a15a80af099b952cc0e8978bfc7fa389109553804670492c206f2b49bcf910ea093fc1838cb45ce4b7a3a885aac2aaf5943 +DIST joda-time-2.10.10.tar.gz 1052384 BLAKE2B 656efddf6b98f10ce6729c6fa4c76ddfeb86dd94971c2637af3ddcb8a3a47f83948dbd58b04a6249445ef2857c5c5edb994a6d56349ed4ff4130ce9aaebd57e9 SHA512 e7917fd28cd10d7fbee02016b1f13a15a80af099b952cc0e8978bfc7fa389109553804670492c206f2b49bcf910ea093fc1838cb45ce4b7a3a885aac2aaf5943 DIST joda-time-2.7-dist.tar.gz 4007765 BLAKE2B ed34c988dae1f1fb3359e06cccc148f680a04244987464770024635e72d5693036ec4d1648245f44db2fd57c47d9842a964d39e04e9ba510ecda7ec25c853ee7 SHA512 2a9bf91024bf20c4f1a28c87e5c6e560994ba6f7e131757c83a5ab6984ea79549e1d00452dcf767fc5cab374e531649759703acbaed724a1e49436cae0799209 diff --git a/dev-java/joda-time/joda-time-2.10.10-r1.ebuild b/dev-java/joda-time/joda-time-2.10.10-r1.ebuild new file mode 100644 index 00000000000..f72c34bc8ab --- /dev/null +++ b/dev-java/joda-time/joda-time-2.10.10-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom joda-time-2.10.10/pom.xml --download-uri https://github.com/JodaOrg/joda-time/archive/refs/tags/v2.10.10.tar.gz --slot 0 --keywords "~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris" --ebuild joda-time-2.10.10.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" +MAVEN_ID="joda-time:joda-time:2.10.10" +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/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~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 + +CDEPEND=" + dev-java/joda-convert:0 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CDEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CDEPEND}" + +S="${WORKDIR}" + +JAVA_GENTOO_CLASSPATH="joda-convert" +JAVA_SRC_DIR="${P}/src/main/java" +JAVA_RESOURCE_DIRS=( + "${P}/src/main/java" +) + +JAVA_TEST_GENTOO_CLASSPATH="junit" +JAVA_TEST_SRC_DIR="${P}/src/test/java" +JAVA_TEST_RESOURCE_DIRS=( + "${P}/src/test/resources" +) + +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 "${P}/src/main/resources/org/joda/time/tz/data" \ + africa \ + antarctica \ + asia \ + australasia \ + europe \ + northamerica \ + southamerica \ + etcetera \ + backward + + java-pkg_addres ${PN}.jar "${P}"/src/main/resources || die +}