From b17a3ef12038de50228bade1f05502c74e135321 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 2 Sep 2020 14:09:07 +0100 Subject: gentoo resync : 02.09.2020 --- dev-java/joda-time/Manifest | 2 +- dev-java/joda-time/joda-time-2.7-r1.ebuild | 61 ++++++++++++++++++++++++++++++ dev-java/joda-time/joda-time-2.7.ebuild | 59 ----------------------------- 3 files changed, 62 insertions(+), 60 deletions(-) create mode 100644 dev-java/joda-time/joda-time-2.7-r1.ebuild delete mode 100644 dev-java/joda-time/joda-time-2.7.ebuild (limited to 'dev-java/joda-time') diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest index db875c255740..d365093b4760 100644 --- a/dev-java/joda-time/Manifest +++ b/dev-java/joda-time/Manifest @@ -1,4 +1,4 @@ AUX joda-time-2.7-build.xml 11231 BLAKE2B 9b7350270773c59f3497be28581408f9984f1151b812f3ddc4bbf8fbfe50505e36cb5fdbfc330f7f07416275adc92a8176b25d7c4cb4cecbdc9d239f711bc9e7 SHA512 c614cc2425b0cefdc5f9def196cd5014d6d65552038dd22f876bbb64ee25131ead57aa94ef967491e292cf1ddefef933d9827dd588056d58c9a311640a5af63f DIST joda-time-2.7-dist.tar.gz 4007765 BLAKE2B ed34c988dae1f1fb3359e06cccc148f680a04244987464770024635e72d5693036ec4d1648245f44db2fd57c47d9842a964d39e04e9ba510ecda7ec25c853ee7 SHA512 2a9bf91024bf20c4f1a28c87e5c6e560994ba6f7e131757c83a5ab6984ea79549e1d00452dcf767fc5cab374e531649759703acbaed724a1e49436cae0799209 -EBUILD joda-time-2.7.ebuild 1911 BLAKE2B 94a16745aee39443eb88b7c6aba6df6cfa8c5c0be82222684bbe41297bb50a95b521814eddde54e213178fd7f8573872283cc5832b931fc71f1b54d803d66c4b SHA512 5257e0719d996f065c87019827b740cac645f24992e0eee4841021534bf0719ffdcd9ad97a2c39a9d3ac83b8384f2beb70030164b660e2a0f8516f6da7abe9f0 +EBUILD joda-time-2.7-r1.ebuild 1918 BLAKE2B 397a64f536c6b1667f19af5b85f456cc375b38d166db658c395983c83c3485fb79bf07ad0e418c6fb3190e4704c98680ee914c45b563df436c9d93de6e151dcd SHA512 70755306d7c11c7a842188a5b42e12bf36f91ace4222fb925388c719cf8552caa4d363a33cb804c6146f7d1851db5868e4998a28c2084766b3ec37fe36cb5f3d MISC metadata.xml 384 BLAKE2B 298d00eca8bdd34de1a3c30a423051cd62923963b1d239640690cf12c3ddbbe661bfaa689f1b225a968747bcc7d3b28aa53ccd90fa406322aeaa3e1f3703f4a6 SHA512 441aa3d5876d8ff91b9f9d368e817bf6869266c27f7f8686e9eb47812f899f37c5fa2e65337e979dd3247932b61d84e4b4f0d7325ea2659d54221ab428c9c089 diff --git a/dev-java/joda-time/joda-time-2.7-r1.ebuild b/dev-java/joda-time/joda-time-2.7-r1.ebuild new file mode 100644 index 000000000000..bbf0efca3a84 --- /dev/null +++ b/dev-java/joda-time/joda-time-2.7-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +JAVA_PKG_IUSE="doc examples source test" +JAVA_ANT_REWRITE_CLASSPATH="true" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="A quality open-source replacement for the Java Date and Time classes" +HOMEPAGE="https://www.joda.org/joda-time/ https://github.com/JodaOrg/joda-time/" +SRC_URI="https://github.com/JodaOrg/${PN}/releases/download/v${PV}/${P}-dist.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" + +RESTRICT="test" + +DEPEND=">=virtual/jdk-1.8 + dev-java/joda-convert:0 + test? ( + dev-java/junit:0 + dev-java/ant-junit:0 + )" +RDEPEND=">=virtual/jre-1.8" + +src_prepare() { + default + + rm -v *.jar || die "Failed to remove bundled jars." + cp "${FILESDIR}"/${P}-build.xml "${S}"/build.xml || die "Failed to copy build file." + + mkdir -p "${S}"/target/classes || die "Failed to create target classes directory." + cp -Rv "${S}"/src/tz-data/* "${S}"/target/classes/ || die "Failed to copy timezone data." + + mkdir -p "${S}"/target/classes/org/joda/time/format || die "Failed to create target classes subdirectory." + cp -Rv "${S}"/src/main/java/org/joda/time/format/*properties "${S}"/target/classes/org/joda/time/format/ || die "Failed to copy message bundles." +} + +src_compile() { + EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar)" + + java-pkg-2_src_compile +} + +src_test() { + EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar):$(java-pkg_getjar --build-only junit junit.jar)" + + java-pkg-2_src_test +} + +src_install() { + java-pkg_newjar target/${P}.jar + + dodoc NOTICE.txt RELEASE-NOTES.txt + + use doc && java-pkg_dojavadoc target/site/apidocs + use examples && java-pkg_doexamples src/example + use source && java-pkg_dosrc src/main/java/* +} diff --git a/dev-java/joda-time/joda-time-2.7.ebuild b/dev-java/joda-time/joda-time-2.7.ebuild deleted file mode 100644 index 2f19a557d78d..000000000000 --- a/dev-java/joda-time/joda-time-2.7.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="5" -JAVA_PKG_IUSE="doc examples source test" -JAVA_ANT_REWRITE_CLASSPATH="true" - -inherit java-pkg-2 java-ant-2 - -DESCRIPTION="A quality open-source replacement for the Java Date and Time classes" -HOMEPAGE="https://www.joda.org/joda-time/ https://github.com/JodaOrg/joda-time/" -SRC_URI="https://github.com/JodaOrg/${PN}/releases/download/v${PV}/${P}-dist.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" - -RESTRICT="test" - -DEPEND=">=virtual/jdk-1.5 - dev-java/joda-convert:0 - test? ( - dev-java/junit:0 - dev-java/ant-junit:0 - )" -RDEPEND=">=virtual/jre-1.5" - -java_prepare() { - rm -v *.jar || die "Failed to remove bundled jars." - cp "${FILESDIR}"/${P}-build.xml "${S}"/build.xml || die "Failed to copy build file." - - mkdir -p "${S}"/target/classes || die "Failed to create target classes directory." - cp -Rv "${S}"/src/tz-data/* "${S}"/target/classes/ || die "Failed to copy timezone data." - - mkdir -p "${S}"/target/classes/org/joda/time/format || die "Failed to create target classes subdirectory." - cp -Rv "${S}"/src/main/java/org/joda/time/format/*properties "${S}"/target/classes/org/joda/time/format/ || die "Failed to copy message bundles." -} - -src_compile() { - EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar)" - - java-pkg-2_src_compile -} - -src_test() { - EANT_EXTRA_ARGS="-Dgentoo.classpath=$(java-pkg_getjar --build-only joda-convert joda-convert.jar):$(java-pkg_getjar --build-only junit junit.jar)" - - java-pkg-2_src_test -} - -src_install() { - java-pkg_newjar target/${P}.jar - - dodoc NOTICE.txt RELEASE-NOTES.txt - - use doc && java-pkg_dojavadoc target/site/apidocs - use examples && java-pkg_doexamples src/example - use source && java-pkg_dosrc src/main/java/* -} -- cgit v1.2.3