From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-java/joda-time/Manifest | 4 + dev-java/joda-time/files/joda-time-2.7-build.xml | 262 +++++++++++++++++++++++ dev-java/joda-time/joda-time-2.7.ebuild | 59 +++++ dev-java/joda-time/metadata.xml | 12 ++ 4 files changed, 337 insertions(+) create mode 100644 dev-java/joda-time/Manifest create mode 100644 dev-java/joda-time/files/joda-time-2.7-build.xml create mode 100644 dev-java/joda-time/joda-time-2.7.ebuild create mode 100644 dev-java/joda-time/metadata.xml (limited to 'dev-java/joda-time') diff --git a/dev-java/joda-time/Manifest b/dev-java/joda-time/Manifest new file mode 100644 index 000000000000..745399b0bca2 --- /dev/null +++ b/dev-java/joda-time/Manifest @@ -0,0 +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 1913 BLAKE2B 9f71d9c32855236f04435433b851dbe582e823dcb0727fc4e71a15ee749f6e7d46e5408bc274213f3934a0f7238b8deee9919f7faa3d4ceb656b58e96dbcee9c SHA512 ad90a7ca92d6e5f0514e9d1a6cb5693240395d470fbf5d59b5bba7678fc2ff679a0e538db638c259b92c160501519105ae3663977681a376b15b989d28b8ab38 +MISC metadata.xml 384 BLAKE2B 298d00eca8bdd34de1a3c30a423051cd62923963b1d239640690cf12c3ddbbe661bfaa689f1b225a968747bcc7d3b28aa53ccd90fa406322aeaa3e1f3703f4a6 SHA512 441aa3d5876d8ff91b9f9d368e817bf6869266c27f7f8686e9eb47812f899f37c5fa2e65337e979dd3247932b61d84e4b4f0d7325ea2659d54221ab428c9c089 diff --git a/dev-java/joda-time/files/joda-time-2.7-build.xml b/dev-java/joda-time/files/joda-time-2.7-build.xml new file mode 100644 index 000000000000..fa1fd5e25a39 --- /dev/null +++ b/dev-java/joda-time/files/joda-time-2.7-build.xml @@ -0,0 +1,262 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/joda-time/joda-time-2.7.ebuild b/dev-java/joda-time/joda-time-2.7.ebuild new file mode 100644 index 000000000000..fbf0a92b476f --- /dev/null +++ b/dev-java/joda-time/joda-time-2.7.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# 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="http://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 x86 ppc64 ~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/* +} diff --git a/dev-java/joda-time/metadata.xml b/dev-java/joda-time/metadata.xml new file mode 100644 index 000000000000..78620eff5573 --- /dev/null +++ b/dev-java/joda-time/metadata.xml @@ -0,0 +1,12 @@ + + + + + java@gentoo.org + Java + + + JodaOrg/joda-time + joda-time + + -- cgit v1.2.3