echo2-2.1.1.ebuild 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. JAVA_PKG_IUSE="doc source"
  5. inherit java-pkg-2 java-ant-2
  6. MY_PN="NextApp_Echo2"
  7. MY_P="${MY_PN}-${PV}"
  8. DESCRIPTION="Echo2 is the next-generation of the Echo Web Framework"
  9. HOMEPAGE="http://www.nextapp.com/platform/echo2/echo/"
  10. SRC_URI="http://download.nextapp.com/downloads/echo2/${PV}/${MY_PN}.tgz -> ${MY_P}.tgz"
  11. LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
  12. SLOT="2.1"
  13. KEYWORDS="amd64 x86"
  14. IUSE=""
  15. COMMON_DEP="java-virtuals/servlet-api:2.4"
  16. DEPEND=">=virtual/jdk-1.4
  17. ${COMMON_DEP}"
  18. RDEPEND=">=virtual/jre-1.4
  19. ${COMMON_DEP}"
  20. S=${WORKDIR}/${MY_PN}/
  21. java_prepare() {
  22. rm -rfv BinaryLibraries || die
  23. echo "servlet.lib.jar=$(java-pkg_getjars servlet-api-2.4)" >> SourceCode/ant.properties || die
  24. }
  25. src_compile() {
  26. cd SourceCode || die
  27. eant dist $(use_doc doc.public)
  28. }
  29. src_install() {
  30. java-pkg_dojar SourceCode/dist/lib/*.jar
  31. use doc && {
  32. cp Documentation/api/public/*.html SourceCode/javadoc/public
  33. java-pkg_dojavadoc SourceCode/javadoc/public
  34. }
  35. use source && java-pkg_dosrc SourceCode/src
  36. dodoc ReadMe.txt || die "dodoc failed"
  37. }