Gentoo Archives: gentoo-commits

From: "Miroslav Sulc (fordfrog)" <fordfrog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/commons-io: ChangeLog commons-io-2.0.1.ebuild
Date: Wed, 26 Jan 2011 23:31:44
Message-Id: 20110126233134.146AD20054@flycatcher.gentoo.org
1 fordfrog 11/01/26 23:31:34
2
3 Modified: ChangeLog
4 Added: commons-io-2.0.1.ebuild
5 Log:
6 dev-java/commons-io: version bump
7
8 (Portage version: 2.1.9.35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.49 dev-java/commons-io/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-io/ChangeLog?rev=1.49&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-io/ChangeLog?rev=1.49&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-io/ChangeLog?r1=1.48&r2=1.49
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v
20 retrieving revision 1.48
21 retrieving revision 1.49
22 diff -u -r1.48 -r1.49
23 --- ChangeLog 24 Apr 2010 16:15:33 -0000 1.48
24 +++ ChangeLog 26 Jan 2011 23:31:33 -0000 1.49
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-java/commons-io
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.48 2010/04/24 16:15:33 grobian Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-io/ChangeLog,v 1.49 2011/01/26 23:31:33 fordfrog Exp $
31 +
32 +*commons-io-2.0.1 (26 Jan 2011)
33 +
34 + 26 Jan 2011; Miroslav Ć ulc <fordfrog@g.o> +commons-io-2.0.1.ebuild:
35 + Version bump. Though this is major version release, it is fully compatible
36 + with 1.4 release except NullWriter append() methods, which did throw
37 + IOException in 1.4 but do not throw it in 2.x series, which would cause
38 + compilation exception in case some package would use these methods. The fix
39 + is to remove the catch block for IOException from affected package.
40
41 24 Apr 2010; Fabian Groffen <grobian@g.o> commons-io-1.4.ebuild:
42 Marked ~sparc-solaris ~x86-solaris, bug #314093
43
44
45
46 1.1 dev-java/commons-io/commons-io-2.0.1.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-io/commons-io-2.0.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/commons-io/commons-io-2.0.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: commons-io-2.0.1.ebuild
52 ===================================================================
53 # Copyright 1999-2011 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $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 $
56
57 JAVA_PKG_IUSE="doc source"
58
59 inherit java-pkg-2 java-ant-2 eutils
60
61 MY_P="${P}-src"
62 DESCRIPTION="Commons-IO contains utility classes, stream implementations, file filters, and endian classes."
63 HOMEPAGE="http://jakarta.apache.org/commons/io"
64 SRC_URI="mirror://apache/commons/io/source/${MY_P}.tar.gz"
65
66 LICENSE="Apache-2.0"
67 SLOT="1"
68 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
69 IUSE="test"
70
71 DEPEND=">=virtual/jdk-1.5
72 test? ( dev-java/ant-junit )"
73 RDEPEND=">=virtual/jre-1.5"
74
75 S="${WORKDIR}/${MY_P}"
76
77 src_unpack() {
78 unpack ${A}
79 cd "${S}"
80 java-ant_ignore-system-classes
81 java-ant_rewrite-classpath
82 # Setting java.io.tmpdir doesn't have effect unless we do this because the
83 # vm is forked
84 java-ant_xml-rewrite -f build.xml --change -e junit -a clonevm -v "true"
85 }
86
87 EANT_EXTRA_ARGS="-Duser.home=${T}"
88
89 src_test() {
90 if [[ ${EUID} -ne 0 ]]; then
91 ANT_OPTS="-Djava.io.tmpdir=${T} -Duser.home=${T}" \
92 ANT_TASKS="ant-junit" \
93 eant test \
94 -Dgentoo.classpath="$(java-pkg_getjars junit)" \
95 -Dlibdir="libdir" \
96 -Djava.io.tmpdir="${T}"
97 else
98 elog "Tests fail unless userpriv is enabled because they test for"
99 elog "file permissions which doesn't work when run as root."
100 fi
101 }
102
103 src_install() {
104 java-pkg_newjar target/${P}.jar ${PN}.jar
105
106 dodoc RELEASE-NOTES.txt NOTICE.txt || die
107 use doc && java-pkg_dojavadoc target/apidocs
108 use source && java-pkg_dosrc src/main/java/*
109 }