aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimeraider@gmx.at <timeraider@gmx.at>2015-10-05 21:25:24 +0200
committertimeraider@gmx.at <timeraider@gmx.at>2015-10-05 21:25:24 +0200
commita8c129d039fdbb80e212f3b21b67d150bc0d0d55 (patch)
tree8ac3600436f4fa5d64fdb9a26f61400bdb080016
parentdev-java/w3c-dom-*: Call rm without -f (diff)
downloadeclipse-a8c129d039fdbb80e212f3b21b67d150bc0d0d55.tar.gz
eclipse-a8c129d039fdbb80e212f3b21b67d150bc0d0d55.tar.bz2
eclipse-a8c129d039fdbb80e212f3b21b67d150bc0d0d55.zip
added commons-io-2.2
-rw-r--r--dev-java/commons-io/Manifest1
-rw-r--r--dev-java/commons-io/commons-io-2.2.ebuild57
-rw-r--r--dev-java/commons-io/metadata.xml8
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-java/commons-io/Manifest b/dev-java/commons-io/Manifest
new file mode 100644
index 0000000..fca086a
--- /dev/null
+++ b/dev-java/commons-io/Manifest
@@ -0,0 +1 @@
+DIST commons-io-2.2-src.tar.gz 320596 SHA256 5d25e8a52739cfdaa0373dc3b1d34b1df94cdcced54a97a82ccbab8512c68bb8 SHA512 e536752bf906b880295e781969744635a418aa0d3efac8c90bc5757586eb3f7842c5cfc5bd2925d3c9b4246c35032ba5d43aec163579177bf5b7877b93f74462 WHIRLPOOL 50a8dd5ff951e79d4170cbde73592d758933e35b7233652390ea0e41ad69c8a0be6e0362bb512a216e376b18f0c3a66df3281318cef7f60e00e2800c8ee82379
diff --git a/dev-java/commons-io/commons-io-2.2.ebuild b/dev-java/commons-io/commons-io-2.2.ebuild
new file mode 100644
index 0000000..e48e857
--- /dev/null
+++ b/dev-java/commons-io/commons-io-2.2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+MY_P=${P}-src
+DESCRIPTION="Commons-IO contains utility classes, stream implementations, file filters, and endian classes"
+HOMEPAGE="http://commons.apache.org/io/"
+SRC_URI="http://archive.apache.org/dist/commons/io/source/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~amd64 ~x86"
+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_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 0000000..c517ec5
--- /dev/null
+++ b/dev-java/commons-io/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>harald.weiner@jku.at</email>
+ <name>Harald Weiner</name>
+ </maintainer>
+</pkgmetadata>