borg-1.7.4-r3.ebuild 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="doc source"
  5. inherit versionator java-pkg-2 java-ant-2
  6. MY_PN="${PN}_src"
  7. MY_PV="$(replace_all_version_separators _ )"
  8. DESCRIPTION="Calendar and task tracker, written in Java"
  9. HOMEPAGE="http://borg-calendar.sourceforge.net/"
  10. SRC_URI="mirror://sourceforge/borg-calendar/borg%201.7/BORG%20${PV}/${MY_PN}_${MY_PV}.zip"
  11. LICENSE="GPL-2"
  12. SLOT="0"
  13. KEYWORDS="~amd64 ~x86"
  14. IUSE=""
  15. CDEPEND="
  16. dev-java/javahelp:0
  17. dev-java/oracle-javamail:0"
  18. RDEPEND="${CDEPEND}
  19. >=virtual/jre-1.6
  20. dev-db/hsqldb:0
  21. dev-java/jgoodies-looks:2.0"
  22. DEPEND="${CDEPEND}
  23. >=virtual/jdk-1.6
  24. app-arch/unzip"
  25. S="${WORKDIR}/${MY_PN}/BORGCalendar"
  26. java_prepare() {
  27. # Upstream is dead and we already have dev-java/jcalendar
  28. # but it's not the same thing.
  29. find -name '*.jar' -! -name 'jcalendar.jar' \
  30. -exec rm -v {} + || die
  31. }
  32. JAVA_ANT_REWRITE_CLASSPATH="yes"
  33. JAVA_ANT_CLASSPATH_TAGS+=" javadoc"
  34. EANT_BUILD_XML="ant/build.xml"
  35. EANT_BUILD_TARGET="borg-jar help-jar"
  36. EANT_GENTOO_CLASSPATH="javahelp oracle-javamail"
  37. src_install() {
  38. java-pkg_dojar dist/${PN}.jar
  39. java-pkg_dojar build/lib/${PN}help.jar
  40. java-pkg_dojar lib/jcalendar.jar
  41. java-pkg_register-dependency hsqldb,jgoodies-looks-2.0
  42. java-pkg_dolauncher ${PN} --main net.sf.borg.control.Borg
  43. use doc && java-pkg_dojavadoc docs
  44. use doc && java-pkg_dosrc src/*
  45. }