resin-servlet-api-4.0.44.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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="source"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="Resin Servlet API 3.0/JSP API 2.1 implementation"
  7. HOMEPAGE="http://www.caucho.com/"
  8. SRC_URI="http://www.caucho.com/download/resin-${PV}-src.zip"
  9. LICENSE="GPL-2"
  10. SLOT="3.1"
  11. KEYWORDS="~amd64 ~ppc64 ~x86 ~x86-fbsd"
  12. IUSE=""
  13. COMMON_DEP=""
  14. RDEPEND=">=virtual/jre-1.6
  15. ${COMMON_DEP}"
  16. DEPEND=">=virtual/jdk-1.6
  17. app-arch/unzip
  18. ${COMMON_DEP}"
  19. S="${WORKDIR}/resin-${PV}"
  20. java_prepare() {
  21. cd "${S}"
  22. rm -f modules/ext/*.jar project-jars/*.jar webapp-jars/*.jar
  23. java-ant_bsfix_files build-common.xml || die
  24. }
  25. EANT_BUILD_TARGET="servlet16"
  26. EANT_DOC_TARGET=""
  27. src_install() {
  28. java-pkg_newjar "modules/servlet16/dist/servlet-16.jar"
  29. use source && java-pkg_dosrc "${S}"/modules/servlet16/src/*
  30. dosym "${PN}.jar" "/usr/share/${PN}-${SLOT}/lib/servlet-api.jar"
  31. java-pkg_regjar "${D}/usr/share/${PN}-${SLOT}/lib/servlet-api.jar"
  32. dosym "${PN}.jar" "/usr/share/${PN}-${SLOT}/lib/jsp-api.jar"
  33. java-pkg_regjar "${D}/usr/share/${PN}-${SLOT}/lib/jsp-api.jar"
  34. }