commons-pool-2.2.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. JAVA_PKG_IUSE="doc source test"
  5. inherit java-pkg-2 java-ant-2
  6. MY_PN="${PN}2"
  7. MY_P="${MY_PN}-${PV}"
  8. DESCRIPTION="Provides general purpose object pooling API"
  9. HOMEPAGE="http://commons.apache.org/pool/"
  10. SRC_URI="mirror://apache/commons/pool/source/${MY_P}-src.tar.gz"
  11. LICENSE="Apache-2.0"
  12. SLOT="2"
  13. KEYWORDS="amd64 x86"
  14. COMMON_DEP="dev-java/cglib:3
  15. dev-java/asm:4"
  16. RDEPEND="${COMMON_DEP}
  17. >=virtual/jre-1.6"
  18. DEPEND="${COMMON_DEP}
  19. >=virtual/jdk-1.6
  20. test? (
  21. dev-java/ant-junit:0
  22. dev-java/junit:4
  23. )"
  24. S="${WORKDIR}/${MY_P}-src"
  25. EANT_BUILD_TARGET="build-jar"
  26. JAVA_ANT_REWRITE_CLASSPATH="true"
  27. EANT_GENTOO_CLASSPATH="cglib-3,asm-4"
  28. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
  29. src_test() {
  30. ANT_TASKS="ant-junit" java-pkg-2_src_test
  31. }
  32. src_install() {
  33. java-pkg_newjar dist/${MY_P}-SNAPSHOT.jar ${PN}.jar
  34. dodoc README.txt RELEASE-NOTES.txt
  35. use doc && java-pkg_dojavadoc dist/docs/api
  36. use source && java-pkg_dosrc src/main/java/org
  37. }