From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/commons-io/Manifest | 5 +++ dev-java/commons-io/commons-io-2.4.ebuild | 57 +++++++++++++++++++++++++++++++ dev-java/commons-io/metadata.xml | 8 +++++ 3 files changed, 70 insertions(+) create mode 100644 dev-java/commons-io/Manifest create mode 100644 dev-java/commons-io/commons-io-2.4.ebuild create mode 100644 dev-java/commons-io/metadata.xml (limited to 'dev-java/commons-io') diff --git a/dev-java/commons-io/Manifest b/dev-java/commons-io/Manifest new file mode 100644 index 000000000000..8d0c2cc615ad --- /dev/null +++ b/dev-java/commons-io/Manifest @@ -0,0 +1,5 @@ +DIST commons-io-2.4-src.tar.gz 330961 SHA256 961c8b41a891933c2d662d8e490667243ac82422668d1ccdd7bfedfdb944bb58 SHA512 69ac5f7b8de952d8b519ad89d4e9a33a9d269af0e68b735c0180ee8853a30e2a09147ceac362626a2fb3a041bd46eca094be2661ff280c1bab54a0548cae0aee WHIRLPOOL 4db6be6dbba4e3c9f67c471eff709ade22594ef1cea759da5651fa5788b1bcfeca689621eb3ff7ca52dca0229b096d597e9f5cb969ebcc7a06ff18f28ccc3551 +EBUILD commons-io-2.4.ebuild 1568 SHA256 a2b6881c1aa18699e6e82a875eea071b1f2771d6cf57de6084038d766a6ba488 SHA512 c647961b7f5267f97aecf5009b1963d28262968c914a61ac18b6d990d8fc4f28fdfe571f3b978fe6ba4725ece019c3d0be4d3ed8a00da1413f6371453c3d7d48 WHIRLPOOL 1c97a3309248466587787ad352c7ac2ec2d9cddabdb48ffcb75249b880f0a1c3bea6d356d4188c7019ac87e1ce44b9d76757dcd8a5eeabbf23e3eadffce9183c +MISC ChangeLog 2981 SHA256 44c4ed21c8bc335b21203b564efa08139ff2f20807715337241a6ebbee83741e SHA512 45e8e6b8e4b6eff06fa5211ce2dfe805b42243c7798a2165e5872359d0a4694ada3aa15c94792a4a8aa32d42290a1e787e74fc9ec2e4b9b524792b2be015602c WHIRLPOOL f0ed23ef290fadcb2b31df6dafbab6c06a586f6144dd98e6cb0cfeebf7b810147ebc14ba10607329b48696ae91eff35e79218219211d6b76674fc3d9b8494610 +MISC ChangeLog-2015 8105 SHA256 693e00a76609ae7452eecbff2d3b60d505a234060d120f08f8d40ad1f9e89c8f SHA512 2b71c274b460e22c56193636bc91ed972bbf566ce9a8cea3b7b4d2a2a99585f811f3e8456e385497677267e59c3291ee1ba07e2de953caaf6dadb1c97b7f1512 WHIRLPOOL 93c942ad6338484e2f977b1e4b26f7ce5111c945c0c3182a0684dc3a3912c8498a883e323fc270b74c9b225753d3779d58f6f9cfd33db9ccdd396e9fc3f98f5f +MISC metadata.xml 232 SHA256 0c8d91b3d514ac42d0eaca567346ab909c0f947049c85c25a380ec2400f1b3fb SHA512 00beaf2c81112ff757c4395f4ea47e85f2d48e369e241f10ddf200090dd6513d52ae2b1aef6d28b7417f1cf34608a7258a167eb307d5670323a2190f3710f893 WHIRLPOOL 3a1a6d054edc9177d85ca868f9b0a6e84ee51bab4fbdbb9b1ead1a03874036bcc3f96e903fb751dc4d29fdb7d6b5f3d8dbe7b042fc697c887e23f41cc9c8c4ac diff --git a/dev-java/commons-io/commons-io-2.4.ebuild b/dev-java/commons-io/commons-io-2.4.ebuild new file mode 100644 index 000000000000..a300a552a885 --- /dev/null +++ b/dev-java/commons-io/commons-io-2.4.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 eutils + +MY_P=${P}-src +DESCRIPTION="Utility classes, stream implementations, file filters, and endian classes" +HOMEPAGE="http://commons.apache.org/io/" +SRC_URI="mirror://apache/commons/io/source/${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1" +KEYWORDS="amd64 ~arm64 ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris" +IUSE="test" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/ant-junit:0 + dev-java/junit:4 + )" + +S=${WORKDIR}/${MY_P} + +EANT_EXTRA_ARGS="-Dcomponent.version=${PV}" +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_ENCODING="ISO-8859-1" + +java_prepare() { + # Setting java.io.tmpdir doesn't have effect unless we do this because the vm is forked + java-ant_xml-rewrite -f build.xml --change -e junit -a clonevm -v "true" +} + +src_test() { + if [[ ${EUID} -ne 0 ]] ; then + ANT_OPTS="-Dskip.download=1 -Djava.io.tmpdir=${T} -Duser.home=${T}" \ + ANT_TASKS="ant-junit" \ + eant test \ + -Dgentoo.classpath="$(java-pkg_getjars junit-4):${S}/src/test/resources" \ + -Dlibdir="libdir" \ + -Djava.io.tmpdir="${T}" + else + elog "Tests fail unless userpriv is enabled because they test for" + elog "file permissions which doesn't work when run as root." + fi +} + +src_install() { + java-pkg_newjar target/${P}.jar + + dodoc RELEASE-NOTES.txt + use doc && java-pkg_dojavadoc target/apidocs + use source && java-pkg_dosrc src/main/java/* +} diff --git a/dev-java/commons-io/metadata.xml b/dev-java/commons-io/metadata.xml new file mode 100644 index 000000000000..2444066aa02b --- /dev/null +++ b/dev-java/commons-io/metadata.xml @@ -0,0 +1,8 @@ + + + + + java@gentoo.org + Java + + -- cgit v1.2.3