-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
COMMON_DEPEND="dev-java/jdom:0"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
- test? ( dev-java/ant-junit )
+ test? ( dev-java/ant-junit:0 )
${COMMON_DEPEND}"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPEND}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+JAVA_ANT_REWRITE_CLASSPATH="true"
+EANT_GENTOO_CLASSPATH="jdom"
+java_prepare() {
# Patch build.xml so the tests pass
epatch "${FILESDIR}/${P}-build.xml-test-upstream.patch"
- # Symlink jars
- mkdir -p target/lib
- cd target/lib
- java-pkg_jar-from jdom-1.0
+ # Keep Ant happy.
+ mkdir -p target/lib || die
}
src_install() {
}
src_test() {
- java-pkg_jar-from --into target/lib junit
- ANT_TASKS="ant-junit" eant test
+ java-pkg-2_src_test
}