jupidator-0.6.0.ebuild 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="2"
  4. JAVA_PKG_IUSE="doc source"
  5. WANT_ANT_TASKS="ant-nodeps"
  6. inherit java-pkg-2 java-ant-2 eutils
  7. MY_P="${PN}.${PV}"
  8. DESCRIPTION="Jupidator is a library/tool in Java for automatic updating of applications"
  9. HOMEPAGE="http://www.sourceforge.net/projects/jupidator"
  10. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
  11. LICENSE="LGPL-3"
  12. SLOT="0"
  13. KEYWORDS="amd64 x86"
  14. IUSE=""
  15. RDEPEND=">=virtual/jre-1.5
  16. dev-java/ant-core"
  17. DEPEND=">=virtual/jdk-1.5
  18. dev-java/ant-core
  19. doc? ( app-text/xmlto )
  20. sys-devel/gettext"
  21. S="${WORKDIR}/${PN}"
  22. java_prepare() {
  23. rm -v dist/*.jar || die
  24. rm -rv src/java/org/apache/tools/bzip2 || die
  25. #Bundled ant classes
  26. java-ant_rewrite-classpath nbproject/build-impl.xml
  27. chmod +x i18n/make.sh || die
  28. }
  29. src_compile() {
  30. ANT_TASKS="ant-nodeps" eant -Dgentoo.classpath="$(java-pkg_getjars ant-core)" compile jar
  31. }
  32. src_install() {
  33. java-pkg_dojar dist/${PN}.jar
  34. use doc && java-pkg_dohtml -r dist/doc
  35. use source && java-pkg_dosrc src/java/com
  36. }