henplus-0.9.8.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 1999-2016 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 eutils java-ant-2
  6. DESCRIPTION="Java-based multisession SQL shell for databases with JDBC support"
  7. HOMEPAGE="http://henplus.sf.net"
  8. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  9. LICENSE="GPL-2"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. COMMON_DEPEND="dev-java/commons-cli:1
  14. dev-java/libreadline-java:0"
  15. RDEPEND=">=virtual/jre-1.4
  16. ${COMMON_DEPEND}"
  17. DEPEND=">=virtual/jdk-1.4
  18. ${COMMON_DEPEND}"
  19. java_prepare() {
  20. epatch "${FILESDIR}/0.9.8-build.xml.patch"
  21. rm -v lib/*.jar lib/*/*.jar || die
  22. }
  23. JAVA_ANT_REWRITE_CLASSPATH="true"
  24. EANT_GENTOO_CLASSPATH="commons-cli-1,libreadline-java"
  25. src_install () {
  26. java-pkg_dojar "build/${PN}.jar"
  27. java-pkg_dolauncher ${PN} -pre "${FILESDIR}/${PN}.pre" \
  28. --main henplus.HenPlus
  29. dodoc README || die
  30. dohtml doc/HenPlus.html || die
  31. use doc && java-pkg_dojavadoc javadoc/api
  32. use source && java-pkg_dosrc "src/${PN}"
  33. }