diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-09 15:15:39 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-09 15:15:39 +0000 |
commit | 05d9b8cbddcf103e73addfabe5b45829c6542044 (patch) | |
tree | 5cb22bc420f9d473ad6afc7bfdbb56a720ca1678 /dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild | |
parent | Backported support for tcl/tk-8.5 from cvs head (fixes bug 212700). (diff) | |
download | gentoo-2-05d9b8cbddcf103e73addfabe5b45829c6542044.tar.gz gentoo-2-05d9b8cbddcf103e73addfabe5b45829c6542044.tar.bz2 gentoo-2-05d9b8cbddcf103e73addfabe5b45829c6542044.zip |
Use EANT_ variables and add a src_test but had to RESTRICT it because they failed to find bcel.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild')
-rw-r--r-- | dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild b/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild index 5208e9b1d34e..9e3b334bdac0 100644 --- a/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild +++ b/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild,v 1.7 2007/11/25 10:12:01 nelchael Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/ant-contrib/ant-contrib-1.0_beta2-r2.ebuild,v 1.8 2008/03/09 15:15:39 betelgeuse Exp $ JAVA_PKG_IUSE="doc source" @@ -12,8 +12,9 @@ SRC_URI="mirror://sourceforge/ant-contrib/${PN}-${PV/_beta/b}-src.tar.bz2" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ppc ppc64 x86 ~x86-fbsd" -IUSE="doc source" +IUSE="" +# test? ( dev-java/ant-junit dev-java/ant-testutil ) RDEPEND=">=virtual/jre-1.4 >=dev-java/bcel-5.1 >=dev-java/xerces-2.7 @@ -25,14 +26,28 @@ S=${WORKDIR}/${PN} src_unpack() { unpack ${A} + cd "${S}" + epatch "${FILESDIR}/tests-visibility.patch" cd "${S}/lib" java-pkg_jar-from ant-core ant.jar java-pkg_jar-from bcel bcel.jar bcel-5.1.jar java-pkg_jar-from xerces-2 } -src_compile() { - eant jar -Dversion=${PV} $(use_doc docs) +EANT_EXTRA_ARGS="-Dversion=${PV} -Ddep.available=true" +EANT_DOC_TARGET="docs" + +# The tests fail to find bcel and fail +RESTRICT="test" + +src_test() { + cd test/lib || die + java-pkg_jar-from junit junit.jar junit-3.8.1.jar + java-pkg_jar-from ant-testutil + cd "${S}" + local testutil=$(java-pkg_getjars ant-testutil) + EANT_TEST_EXTRA_ARGS="-Dtestutil.jar.location=${testutil}" \ + java-pkg-2_src_test } src_install() { |