You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.4 KiB
69 lines
1.4 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
9 years ago
|
EAPI=5
|
||
|
|
||
13 years ago
|
JAVA_PKG_IUSE="doc source"
|
||
|
|
||
|
inherit java-pkg-2 java-ant-2
|
||
|
|
||
10 years ago
|
DESCRIPTION="JUnit-addons is a collection of helper classes for JUnit"
|
||
13 years ago
|
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="
|
||
9 years ago
|
dev-java/junit:0
|
||
|
dev-java/ant-core:0
|
||
|
dev-java/jdom:0
|
||
|
dev-java/jaxen:1.1
|
||
13 years ago
|
"
|
||
|
|
||
|
RDEPEND=">=virtual/jre-1.4
|
||
|
${COMMON_DEP}"
|
||
|
DEPEND=">=virtual/jdk-1.4
|
||
|
app-arch/unzip
|
||
|
${COMMON_DEP}"
|
||
|
|
||
9 years ago
|
java_prepare() {
|
||
13 years ago
|
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)" \
|
||
9 years ago
|
-Djdom.jar="$(java-pkg_getjar jdom jdom.jar)" \
|
||
13 years ago
|
-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
|
||
|
}
|