treelayout-1.0.2.ebuild 973 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 java-pkg-2 java-ant-2
  6. DESCRIPTION="Efficiently create compact tree layouts in Java"
  7. SRC_URI="https://github.com/abego/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
  8. HOMEPAGE="https://github.com/abego/treelayout"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="amd64 ~arm ppc64 x86"
  12. IUSE="test"
  13. RDEPEND=">=virtual/jre-1.6"
  14. DEPEND=">=virtual/jdk-1.6
  15. test? ( dev-java/ant-junit:0 )"
  16. S="${WORKDIR}/${P}/org.abego.${PN}"
  17. JAVA_ANT_REWRITE_CLASSPATH="true"
  18. JAVA_PKG_BSFIX_NAME="build-impl.xml"
  19. EANT_BUILD_XML="nbproject/build-impl.xml"
  20. src_configure() {
  21. EANT_EXTRA_ARGS="-Dplatform.home=${JAVA_HOME}"
  22. }
  23. src_install() {
  24. java-pkg_newjar dist/org.abego.${PN}.core.jar
  25. dodoc CHANGES.txt doc/abegoTreeLayout.pdf
  26. use doc && java-pkg_dojavadoc dist/javadoc
  27. use source && java-pkg_dosrc src/main/java/*
  28. }
  29. src_test() {
  30. java-pkg-2_src_test
  31. }