sun-j2ee-deployment-bin-1.1-r2.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit java-pkg-2
  4. MY_PV=${PV/./_}
  5. CLASS_URI="j2ee_deployment-${MY_PV}-fr-class.zip"
  6. DOC_URI="j2ee_deployment-${MY_PV}-fr-doc.zip"
  7. DESCRIPTION="J2EE Application Deployment Specification"
  8. HOMEPAGE="http://java.sun.com/j2ee/tools/deployment/"
  9. SRC_URI="${CLASS_URI}
  10. doc? ( ${DOC_URI} )"
  11. LICENSE="sun-bcla-j2ee-deployment"
  12. SLOT="1.1"
  13. KEYWORDS="amd64 x86 ~x86-fbsd"
  14. IUSE="doc"
  15. DEPEND=">=virtual/jdk-1.4
  16. app-arch/unzip"
  17. RDEPEND=">=virtual/jre-1.4"
  18. RESTRICT="fetch"
  19. S=${WORKDIR}
  20. DOWNLOAD_URL="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=J2EE_DEPLOYMENT-1.1-FR-CLASS-G-F@CDS-CDS_Developer"
  21. DOWNLOAD_URL_DOC="https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=J2EE_DEPLOYMENT-1.1-FR-DOC-G-F@CDS-CDS_Developer"
  22. pkg_nofetch() {
  23. einfo "Please download \"J2EE Deployment API Class Files 1.1\" - ${CLASS_URI}"
  24. einfo "from ${HOMEPAGE} and move it to ${DISTDIR}"
  25. einfo "Direct URL: ${DOWNLOAD_URL}"
  26. if use doc; then
  27. einfo "Also download \"API Documentation 1.1\" - ${DOC_URI}"
  28. einfo "from ${HOMEPAGE} and move it to ${DISTDIR}"
  29. einfo "Direct URL: ${DOWNLOAD_URL_DOC}"
  30. fi
  31. }
  32. src_compile() {
  33. jar cvf ${PN}.jar javax || die "Failed to create the ${PN}.jar"
  34. }
  35. src_install() {
  36. java-pkg_dojar ${PN}.jar
  37. use doc && java-pkg_dojavadoc doc
  38. }