servletapi-2.2-r3.ebuild 874 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. JAVA_PKG_IUSE="doc source"
  4. inherit java-pkg-2 java-ant-2
  5. DESCRIPTION="Servlet API 2.2 from jakarta.apache.org"
  6. HOMEPAGE="http://jakarta.apache.org/"
  7. SRC_URI="mirror://gentoo/${P}-20021101.tar.gz"
  8. DEPEND=">=virtual/jdk-1.4
  9. >=dev-java/ant-core-1.4"
  10. RDEPEND=">=virtual/jre-1.3"
  11. LICENSE="Apache-1.1"
  12. SLOT="2.2"
  13. KEYWORDS="amd64 ppc64 x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris"
  14. IUSE="doc"
  15. S="${WORKDIR}/jakarta-servletapi-src"
  16. src_unpack() {
  17. unpack ${A}
  18. cd "${S}"
  19. sed -i 's/compile,javadoc/compile/' build.xml || die "sed failed"
  20. }
  21. EANT_BUILD_TARGET="all"
  22. src_install() {
  23. java-pkg_dojar ../dist/servletapi/lib/servlet.jar
  24. dodoc README || die
  25. use doc && java-pkg_dojavadoc ../build/servletapi/docs/api
  26. use source && java-pkg_dosrc src/share/javax
  27. }