tomcat-servlet-api-8.5.9.ebuild 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. JAVA_PKG_IUSE="source"
  5. inherit eutils java-pkg-2 java-ant-2
  6. MY_A="apache-${P}-src"
  7. MY_P="${MY_A/-servlet-api/}"
  8. DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
  9. HOMEPAGE="http://tomcat.apache.org/"
  10. SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
  11. LICENSE="Apache-2.0"
  12. SLOT="3.1"
  13. KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
  14. IUSE=""
  15. DEPEND=">=virtual/jdk-1.7"
  16. RDEPEND=">=virtual/jre-1.7"
  17. S="${WORKDIR}/${MY_P}/"
  18. src_prepare() {
  19. default
  20. cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
  21. rm -fR */*/build.xml
  22. einfo "Removing bundled jars and classes"
  23. find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -exec rm -frv {} +
  24. java-pkg-2_src_prepare
  25. }
  26. src_install() {
  27. java-pkg_dojar "${S}"/output/build/lib/*.jar
  28. use source && java-pkg_dosrc java/javax/servlet/
  29. }