tomcat-jstl-compat-1.2.5-r1.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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"
  5. inherit java-pkg-2 java-ant-2 eutils
  6. MY_PN="taglibs-standard"
  7. MY_P="${MY_PN}-${PV}"
  8. MY_COMPAT="${MY_PN}-compat"
  9. DESCRIPTION="JSP Standard Tag Library (JSTL) - Compat jar"
  10. HOMEPAGE="https://tomcat.apache.org/taglibs/standard/"
  11. SRC_URI="http://apache.mirrors.ovh.net/ftp.apache.org/dist/tomcat/taglibs/${MY_P}/${MY_P}-source-release.zip -> ${P}.zip"
  12. LICENSE="Apache-2.0"
  13. SLOT="0"
  14. KEYWORDS="amd64 x86"
  15. IUSE="test"
  16. CDEPEND="
  17. dev-java/tomcat-jstl-spec:0
  18. dev-java/tomcat-jstl-impl:0
  19. java-virtuals/servlet-api:3.0"
  20. RDEPEND="
  21. ${CDEPEND}
  22. >=virtual/jre-1.6"
  23. DEPEND="
  24. ${CDEPEND}
  25. test? (
  26. dev-java/ant-junit:0
  27. dev-java/easymock:3.2
  28. )
  29. >=virtual/jdk-1.6"
  30. S="${WORKDIR}/${MY_P}"
  31. JAVA_ANT_REWRITE_CLASSPATH="yes"
  32. EANT_GENTOO_CLASSPATH="servlet-api-3.0,tomcat-jstl-spec,tomcat-jstl-impl"
  33. EANT_BUILD_TARGET="package"
  34. EANT_BUILD_XML="compat/build.xml"
  35. java_prepare() {
  36. cp "${FILESDIR}"/${P}-build.xml "${S}"/compat/build.xml || die
  37. }
  38. EANT_TEST_TARGET="test"
  39. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},easymock-3.2"
  40. src_test() {
  41. java-pkg-2_src_test
  42. }
  43. src_install() {
  44. java-pkg_newjar "${S}"/compat/target/${MY_COMPAT}-${PV}.jar ${MY_COMPAT}.jar
  45. if use doc; then
  46. java-pkg_dohtml -r "${S}"/compat/target/site/apidocs/
  47. fi
  48. if use source; then
  49. java-pkg_dosrc "${S}"/compat/src/*
  50. fi
  51. }