1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit eutils java-pkg-2 java-ant-2
10 DESCRIPTION="Generic interface for reading configuration data from a variety of sources"
11 HOMEPAGE="http://commons.apache.org/configuration/"
12 SRC_URI="mirror://apache/commons/configuration/source/${P}-src.tar.gz"
14 # it needs functionality from ant-core, although not providing an ant task
15 # the functionality is apparently needed only for 1.4 jdk
16 # but I don't feel like adding virtual for this
18 >=dev-java/commons-beanutils-1.7.0:1.7
19 >=dev-java/commons-codec-1.3:0
20 >=dev-java/commons-collections-3.1:0
21 >=dev-java/commons-digester-1.8:0
22 >=dev-java/commons-jxpath-1.2:0
23 >=dev-java/commons-lang-2.4:2.1
24 >=dev-java/commons-logging-1.1.1:0
25 java-virtuals/servlet-api:3.0
28 DEPEND=">=virtual/jdk-1.6
30 RDEPEND=">=virtual/jre-1.6
35 KEYWORDS="amd64 ppc64 x86"
38 S="${WORKDIR}/${P}-src"
40 JAVA_ANT_REWRITE_CLASSPATH="yes"
43 # Tweak build classpath and don't automatically run tests
44 epatch "${FILESDIR}/${P}-gentoo.patch"
47 EANT_GENTOO_CLASSPATH="
58 # Would need mockobjects with j2ee support which we don't have
59 # Check overlay for ebuild with test support
63 java-pkg_newjar target/${P}.jar
64 dodoc RELEASE-NOTES.txt
65 use doc && java-pkg_dohtml -r dist/docs/api
66 use source && java-pkg_dosrc src/java/*