summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2007-03-16 20:18:00 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2007-03-16 20:18:00 +0000
commitd9457645bb74da7cc04412a4e3373786ea2ba5f1 (patch)
tree83613f4ffca5a4f6baa13dcfefe707a097fe0097 /dev-java/commons-io
parentStable on ppc wrt bug 167664 (diff)
downloadgentoo-2-d9457645bb74da7cc04412a4e3373786ea2ba5f1.tar.gz
gentoo-2-d9457645bb74da7cc04412a4e3373786ea2ba5f1.tar.bz2
gentoo-2-d9457645bb74da7cc04412a4e3373786ea2ba5f1.zip
Version bump.
(Portage version: 2.1.2.2)
Diffstat (limited to 'dev-java/commons-io')
-rw-r--r--dev-java/commons-io/ChangeLog8
-rw-r--r--dev-java/commons-io/commons-io-1.3.1.ebuild58
-rw-r--r--dev-java/commons-io/files/commons-io-1.3.1-build.xml.patch20
-rw-r--r--dev-java/commons-io/files/digest-commons-io-1.3.13
4 files changed, 88 insertions, 1 deletions
diff --git a/dev-java/commons-io/ChangeLog b/dev-java/commons-io/ChangeLog
index 5aad67c7cb13..3228adc65709 100644
--- a/dev-java/commons-io/ChangeLog
+++ b/dev-java/commons-io/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/commons-io
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.21 2007/03/12 17:55:32 corsair Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.22 2007/03/16 20:18:00 fordfrog Exp $
+
+*commons-io-1.3.1 (16 Mar 2007)
+
+ 16 Mar 2007; Miroslav Šulc <fordfrog@gentoo.org>
+ +files/commons-io-1.3.1-build.xml.patch, +commons-io-1.3.1.ebuild:
+ Version bump.
12 Mar 2007; Markus Rothe <corsair@gentoo.org> commons-io-1.3.ebuild:
Stable on ppc64; bug #168793
diff --git a/dev-java/commons-io/commons-io-1.3.1.ebuild b/dev-java/commons-io/commons-io-1.3.1.ebuild
new file mode 100644
index 000000000000..101ac7a33147
--- /dev/null
+++ b/dev-java/commons-io/commons-io-1.3.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/commons-io-1.3.1.ebuild,v 1.1 2007/03/16 20:18:00 fordfrog Exp $
+
+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://jakarta.apache.org/commons/io"
+SRC_URI="mirror://apache/jakarta/commons/io/source/${MY_P}.tar.gz"
+
+LICENSE="Apache-1.1"
+SLOT="1"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
+IUSE="test"
+
+DEPEND=">=virtual/jdk-1.4
+ source? ( app-arch/zip )
+ test? (
+ =dev-java/junit-3.8*
+ dev-java/ant
+ )
+ !test? ( dev-java/ant-core )"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}"
+ rm *.jar
+ epatch ${FILESDIR}/${P}-build.xml.patch
+ java-ant_ignore-system-classes
+ java-ant_rewrite-classpath
+}
+
+src_test() {
+ if hasq userpriv ${FEATURES}; then
+ #By default libdir is ${HOME}/.maven so it can be /root/.maven
+ ANT_OPTS="-Djava.io.tmpdir=${T}" eant test \
+ -Dgentoo.classpath="$(java-pkg_getjars junit)" \
+ -Dlibdir="libdir"
+ else
+ elog "Tests require userpriv in FEATURES because they test"
+ elog "accessing files which always succeeds for root."
+ fi
+}
+
+src_install() {
+ java-pkg_newjar build/${P}.jar ${PN}.jar
+
+ dodoc RELEASE-NOTES.txt NOTICE.txt || die
+ use doc && java-pkg_dojavadoc build/dist-build/${P}/docs
+ use source && java-pkg_dosrc src/java/*
+}
diff --git a/dev-java/commons-io/files/commons-io-1.3.1-build.xml.patch b/dev-java/commons-io/files/commons-io-1.3.1-build.xml.patch
new file mode 100644
index 000000000000..cf509dcd51df
--- /dev/null
+++ b/dev-java/commons-io/files/commons-io-1.3.1-build.xml.patch
@@ -0,0 +1,20 @@
+--- build.xml.original 2007-02-09 21:36:40.000000000 +0100
++++ build.xml 2007-02-09 21:38:25.000000000 +0100
+@@ -92,7 +92,7 @@
+ </copy>
+ </target>
+
+- <target name="jar" description="o Create the jar" depends="compile,test">
++ <target name="jar" description="o Create the jar" depends="compile">
+ <jar jarfile="${defaulttargetdir}/${final.name}.jar" excludes="**/*.html" basedir="${classesdir}" manifest="${basedir}/src/conf/MANIFEST.MF" />
+ </target>
+ <target name="dist-jar" depends="compile">
+@@ -196,7 +196,7 @@
+ <target name="internal-test" if="Junit.present" depends="junit-present,compile-tests">
+ <mkdir dir="${testreportdir}">
+ </mkdir>
+- <junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
++ <junit dir="${basedir}" failureproperty="test.failure" printSummary="yes" fork="false" haltonerror="true">
+ <sysproperty key="basedir" value="." />
+ <formatter type="plain" />
+ <formatter usefile="false" type="plain" />
diff --git a/dev-java/commons-io/files/digest-commons-io-1.3.1 b/dev-java/commons-io/files/digest-commons-io-1.3.1
new file mode 100644
index 000000000000..167bb0fed7c4
--- /dev/null
+++ b/dev-java/commons-io/files/digest-commons-io-1.3.1
@@ -0,0 +1,3 @@
+MD5 44ef5bc01ed8f8f645fec2bcc94e600a commons-io-1.3.1-src.tar.gz 689667
+RMD160 0b063b148c75b35667756bca0ad62401fb5819df commons-io-1.3.1-src.tar.gz 689667
+SHA256 879c22591694bfee6e4d74f613c7369f8f030362e5e7a8f4c20975fc773e3acc commons-io-1.3.1-src.tar.gz 689667