diff options
author | William L. Thomson Jr <wlt@o-sinc.com> | 2015-09-17 19:59:53 -0400 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2015-09-29 22:19:37 +0100 |
commit | 61cd29febe05704fe2a2ab0e88a3bf0dc3c98329 (patch) | |
tree | e6e9a1f4036ce962538fb40195da88aaab1f7883 /dev-java/junit-addons/junit-addons-1.4-r1.ebuild | |
parent | dev-java/jaxen: Updated dev-java/jdom slot from 1.0 -> 0 for v1 (diff) | |
download | gentoo-61cd29febe05704fe2a2ab0e88a3bf0dc3c98329.tar.gz gentoo-61cd29febe05704fe2a2ab0e88a3bf0dc3c98329.tar.bz2 gentoo-61cd29febe05704fe2a2ab0e88a3bf0dc3c98329.zip |
dev-java/junit-addons: Updated dev-java/jdom slot from 1.0 -> 0 for v1
Diffstat (limited to 'dev-java/junit-addons/junit-addons-1.4-r1.ebuild')
-rw-r--r-- | dev-java/junit-addons/junit-addons-1.4-r1.ebuild | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/junit-addons/junit-addons-1.4-r1.ebuild b/dev-java/junit-addons/junit-addons-1.4-r1.ebuild new file mode 100644 index 000000000000..e657b2ba81a9 --- /dev/null +++ b/dev-java/junit-addons/junit-addons-1.4-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JUnit-addons is a collection of helper classes for JUnit" +HOMEPAGE="http://junit-addons.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" + +LICENSE="Apache-1.1" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x86-linux ~x86-macos" + +COMMON_DEP=" + =dev-java/junit-3.8* + dev-java/ant-core + dev-java/jdom:0 + =dev-java/jaxen-1.1* + " + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${COMMON_DEP}" + +src_unpack() { + unpack ${A} + cd "${S}" + unpack ./src.jar + rm -v *.jar || die + # Not included so taken from cvs + cp "${FILESDIR}/${PV}-build.xml" build.xml || die + cp "${FILESDIR}/${PV}-common.properties" common.properties || die +} + +_eant() { + eant \ + -Djunit.jar="$(java-pkg_getjar junit junit.jar)" \ + -Dant.jar="$(java-pkg_getjar ant-core ant.jar)" \ + -Djdom.jar="$(java-pkg_getjar jdom-1.0 jdom.jar)" \ + -Djaxen.jar="$(java-pkg_getjar jaxen-1.1 jaxen.jar)" \ + "${@}" +} + +src_compile() { + # javadocs are bundled + _eant release +} + +# Needs junit-addons-runner that again needs this package to build +#src_test() { +# cd src/test/ +# _eant -f AntTest.xml +#} + +src_install() { + java-pkg_newjar dist/${P}.jar + dodoc README WHATSNEW || die + use doc && java-pkg_dojavadoc api + if use source; then + insinto "${JAVA_PKG_SOURCESPATH}" + newins dist/src.jar ${PN}-src.zip + fi +} |