jackrabbit-webdav-2.10.1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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 test"
  5. inherit java-pkg-2 java-ant-2
  6. MY_PN="${PN/-*/}"
  7. DESCRIPTION="Fully conforming implementation of the JRC API (specified in JSR 170 and 283)"
  8. HOMEPAGE="http://jackrabbit.apache.org/"
  9. SRC_URI="mirror://apache/${MY_PN}/${PV}/${MY_PN}-${PV}-src.zip"
  10. LICENSE="Apache-2.0"
  11. SLOT="0"
  12. KEYWORDS="amd64 x86"
  13. S="${WORKDIR}/${MY_PN}-${PV}/${PN}"
  14. CDEPEND="dev-java/bndlib:0
  15. dev-java/slf4j-api:0
  16. dev-java/slf4j-nop:0
  17. dev-java/commons-httpclient:3
  18. java-virtuals/servlet-api:2.3"
  19. DEPEND=">=virtual/jdk-1.6
  20. ${CDEPEND}
  21. test? ( dev-java/ant-junit:0 )"
  22. RDEPEND=">=virtual/jre-1.6
  23. ${CDEPEND}"
  24. JAVA_ANT_REWRITE_CLASSPATH="true"
  25. EANT_GENTOO_CLASSPATH="
  26. bndlib
  27. commons-httpclient-3
  28. servlet-api-2.3
  29. slf4j-api
  30. "
  31. PATCHES=(
  32. "${FILESDIR}"/${P}-OutputContextImplTest.java.patch
  33. "${FILESDIR}"/${P}-CSRFUtilTest.java.patch
  34. )
  35. java_prepare() {
  36. cp "${FILESDIR}"/${P}-build.xml build.xml || die
  37. epatch "${PATCHES[@]}"
  38. }
  39. EANT_TEST_GENTOO_CLASSPATH="
  40. ${EANT_GENTOO_CLASSPATH}
  41. slf4j-nop
  42. "
  43. src_test() {
  44. java-pkg-2_src_test
  45. }
  46. src_install() {
  47. java-pkg_newjar target/${P}.jar
  48. use doc && java-pkg_dojavadoc target/site/apidocs
  49. }