summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2016-03-05 15:14:24 +0000
committerPatrice Clement <monsieurp@gentoo.org>2016-03-05 15:56:55 +0000
commit5adb10baa42f92960af9d8f653372f4de70b4f62 (patch)
treeb2ec967cf9b1c5aff483611a3a36b30fb794e15e /dev-java/junitperf
parentdev-java/jal: Mend source USE flag. (diff)
downloadgentoo-5adb10baa42f92960af9d8f653372f4de70b4f62.tar.gz
gentoo-5adb10baa42f92960af9d8f653372f4de70b4f62.tar.bz2
gentoo-5adb10baa42f92960af9d8f653372f4de70b4f62.zip
dev-java/junitperf: EAPI 5 bump.
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java/junitperf')
-rw-r--r--dev-java/junitperf/junitperf-1.9.1-r2.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-java/junitperf/junitperf-1.9.1-r2.ebuild b/dev-java/junitperf/junitperf-1.9.1-r2.ebuild
new file mode 100644
index 000000000000..cecefcea96d0
--- /dev/null
+++ b/dev-java/junitperf/junitperf-1.9.1-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc test source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Simple framework to write repeatable tests"
+SRC_URI="http://www.clarkware.com/software/${P}.zip"
+HOMEPAGE="http://www.clarkware.com/software/JUnitPerf.html"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
+
+IUSE=""
+
+CDEPEND="dev-java/junit:4"
+
+RDEPEND="
+ ${CDEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CDEPEND}
+ test? ( dev-java/ant-junit:0 )
+ source? ( app-arch/zip )
+ >=virtual/jdk-1.6"
+
+java_prepare() {
+ java-pkg_clean
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_GENTOO_CLASSPATH="junit-4"
+EANT_DOC_TARGET="doc"
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}"
+EANT_TEST_TARGET="test"
+
+src_test() {
+ ANT_TASKS="ant-junit" java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar "lib/${PN}.jar"
+ dodoc README
+ use doc && java-pkg_dojavadoc docs/api
+ use source && java-pkg_dosrc src/app/*
+}