jaxen-1.1.4-r1.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 examples source test"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="A Java XPath Engine"
  7. HOMEPAGE="http://jaxen.org"
  8. SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}-src.tar.gz"
  9. LICENSE="JDOM"
  10. SLOT="1.1"
  11. KEYWORDS="amd64 ~arm ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
  12. IUSE=""
  13. CDEPEND="
  14. dev-java/xom:0
  15. dev-java/jdom:0
  16. dev-java/dom4j:1"
  17. RDEPEND="
  18. ${CDEPEND}
  19. >=virtual/jre-1.4"
  20. DEPEND="
  21. ${CDEPEND}
  22. test? ( dev-java/ant-junit:0 )
  23. >=virtual/jdk-1.4"
  24. JAVA_ANT_REWRITE_CLASSPATH="yes"
  25. EANT_GENTOO_CLASSPATH="dom4j-1,jdom,xom"
  26. EANT_TEST_EXTRA_ARGS="-DJunit.present=true"
  27. java_prepare() {
  28. cp -v "${FILESDIR}"/${P}_maven1-build.xml build.xml || die
  29. }
  30. src_test() {
  31. java-pkg-2_src_test
  32. }
  33. src_install() {
  34. java-pkg_newjar "target/${P}.jar"
  35. use doc && java-pkg_dojavadoc dist/docs/api
  36. use examples && java-pkg_doexamples src/java/samples
  37. use source && java-pkg_dosrc src/java/main/*
  38. }