summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2011-01-26 23:31:33 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2011-01-26 23:31:33 +0000
commit995a0db4e53f7f08e567026a15cc41ed4d4d0b4a (patch)
tree7fa345756e4dde1f09b84d2770a88170fd2f56ef /dev-java/commons-io
parentfix compile failure (largefile issue, thanks to Diego for this, bug #350018) (diff)
downloadgentoo-2-995a0db4e53f7f08e567026a15cc41ed4d4d0b4a.tar.gz
gentoo-2-995a0db4e53f7f08e567026a15cc41ed4d4d0b4a.tar.bz2
gentoo-2-995a0db4e53f7f08e567026a15cc41ed4d4d0b4a.zip
dev-java/commons-io: version bump
(Portage version: 2.1.9.35/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/commons-io')
-rw-r--r--dev-java/commons-io/ChangeLog13
-rw-r--r--dev-java/commons-io/commons-io-2.0.1.ebuild57
2 files changed, 68 insertions, 2 deletions
diff --git a/dev-java/commons-io/ChangeLog b/dev-java/commons-io/ChangeLog
index 601a8a3c854b..4ddeb2118d6e 100644
--- a/dev-java/commons-io/ChangeLog
+++ b/dev-java/commons-io/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-java/commons-io
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.48 2010/04/24 16:15:33 grobian Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.49 2011/01/26 23:31:33 fordfrog Exp $
+
+*commons-io-2.0.1 (26 Jan 2011)
+
+ 26 Jan 2011; Miroslav Šulc <fordfrog@gentoo.org> +commons-io-2.0.1.ebuild:
+ Version bump. Though this is major version release, it is fully compatible
+ with 1.4 release except NullWriter append() methods, which did throw
+ IOException in 1.4 but do not throw it in 2.x series, which would cause
+ compilation exception in case some package would use these methods. The fix
+ is to remove the catch block for IOException from affected package.
24 Apr 2010; Fabian Groffen <grobian@gentoo.org> commons-io-1.4.ebuild:
Marked ~sparc-solaris ~x86-solaris, bug #314093
diff --git a/dev-java/commons-io/commons-io-2.0.1.ebuild b/dev-java/commons-io/commons-io-2.0.1.ebuild
new file mode 100644
index 000000000000..decbe27ed2b5
--- /dev/null
+++ b/dev-java/commons-io/commons-io-2.0.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/commons-io-2.0.1.ebuild,v 1.1 2011/01/26 23:31:33 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/commons/io/source/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
+IUSE="test"
+
+DEPEND=">=virtual/jdk-1.5
+ test? ( dev-java/ant-junit )"
+RDEPEND=">=virtual/jre-1.5"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ java-ant_ignore-system-classes
+ java-ant_rewrite-classpath
+ # 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"
+}
+
+EANT_EXTRA_ARGS="-Duser.home=${T}"
+
+src_test() {
+ if [[ ${EUID} -ne 0 ]]; then
+ ANT_OPTS="-Djava.io.tmpdir=${T} -Duser.home=${T}" \
+ ANT_TASKS="ant-junit" \
+ eant test \
+ -Dgentoo.classpath="$(java-pkg_getjars junit)" \
+ -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 ${PN}.jar
+
+ dodoc RELEASE-NOTES.txt NOTICE.txt || die
+ use doc && java-pkg_dojavadoc target/apidocs
+ use source && java-pkg_dosrc src/main/java/*
+}