junitperf-1.9.1-r2.ebuild 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="doc test source"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="Simple framework to write repeatable tests"
  7. SRC_URI="http://www.clarkware.com/software/${P}.zip"
  8. HOMEPAGE="http://www.clarkware.com/software/JUnitPerf.html"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos"
  12. IUSE=""
  13. CDEPEND="dev-java/junit:4"
  14. RDEPEND="
  15. ${CDEPEND}
  16. >=virtual/jre-1.6"
  17. DEPEND="
  18. ${CDEPEND}
  19. test? ( dev-java/ant-junit:0 )
  20. source? ( app-arch/zip )
  21. >=virtual/jdk-1.6"
  22. java_prepare() {
  23. java-pkg_clean
  24. }
  25. JAVA_ANT_REWRITE_CLASSPATH="yes"
  26. EANT_GENTOO_CLASSPATH="junit-4"
  27. EANT_DOC_TARGET="doc"
  28. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}"
  29. EANT_TEST_TARGET="test"
  30. src_test() {
  31. ANT_TASKS="ant-junit" java-pkg-2_src_test
  32. }
  33. src_install() {
  34. java-pkg_dojar "lib/${PN}.jar"
  35. dodoc README
  36. use doc && java-pkg_dojavadoc docs/api
  37. use source && java-pkg_dosrc src/app/*
  38. }