c3p0-0.9.5.1.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="doc source examples test"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="JDBC drivers with JNDI-bindable DataSources"
  7. HOMEPAGE="http://c3p0.sourceforge.net/"
  8. MY_P="${P}.src"
  9. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
  10. LICENSE="LGPL-2"
  11. SLOT="0"
  12. KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~x86-macos"
  13. IUSE=""
  14. CDEPEND="
  15. dev-java/log4j:0
  16. dev-java/mchange-commons:0"
  17. DEPEND="
  18. ${CDEPEND}
  19. test? (
  20. dev-java/junit:4
  21. )
  22. >=virtual/jdk-1.6"
  23. RDEPEND="
  24. ${CDEPEND}
  25. >=virtual/jre-1.6"
  26. S="${WORKDIR}/${MY_P}"
  27. JAVA_ANT_REWRITE_CLASSPATH="yes"
  28. java_prepare() {
  29. java-pkg_clean
  30. java-pkg_jar-from --into lib/ mchange-commons
  31. java-pkg_jar-from --into lib/ log4j
  32. }
  33. EANT_TEST_TARGET="junit-tests"
  34. EANT_TEST_GENTOO_CLASSPATH="junit-4"
  35. src_test() {
  36. java-pkg-2_src_test
  37. }
  38. src_install() {
  39. java-pkg_newjar "build/${P}.jar"
  40. dodoc README-SRC
  41. use doc && java-pkg_dojavadoc build/apidocs
  42. use source && java-pkg_dosrc src/java/com/mchange/v2
  43. use examples && java-pkg_doexamples src/java/com/mchange/v2/c3p0/example
  44. }