jgrapht-0.8.3.ebuild 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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 test"
  5. inherit java-pkg-2 java-ant-2 eutils
  6. DESCRIPTION="Graph library that is a simpler and faster alternative to JGraph"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
  8. HOMEPAGE="http://jgrapht.sourceforge.net"
  9. KEYWORDS="amd64 x86"
  10. SLOT="0"
  11. LICENSE="LGPL-2.1"
  12. CDEPEND="dev-java/touchgraph-graphlayout:0
  13. dev-java/jgraph:0"
  14. DEPEND="${CDEPEND}
  15. >=virtual/jdk-1.6
  16. test? ( dev-java/ant-junit:0
  17. dev-java/xmlunit:1 )"
  18. RDEPEND="${CDEPEND}
  19. >=virtual/jre-1.6"
  20. JAVA_ANT_REWRITE_CLASSPATH="true"
  21. EANT_GENTOO_CLASSPATH="touchgraph-graphlayout jgraph"
  22. EANT_DOC_TARGET="javadoc"
  23. java_prepare() {
  24. rm -rf "${S}/lib" || die
  25. rm -v "${S}"/*.jar || die
  26. }
  27. src_test() {
  28. EANT_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH} xmlunit:1" ANT_TASKS="ant-junit" eant test
  29. }
  30. src_install() {
  31. java-pkg_newjar ${PN}*.jar || die
  32. dohtml README.html || die
  33. use doc && java-pkg_dojavadoc javadoc
  34. use source && java-pkg_dosrc src/org
  35. }