1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 JAVA_PKG_IUSE="doc source test"
7 inherit java-pkg-2 java-ant-2
9 DESCRIPTION="A toolkit for managing graphs and graph based data structures"
10 HOMEPAGE="https://commons.apache.org/sandbox/commons-graph/"
11 SRC_URI="https://dev.gentoo.org/~monsieurp/packages/${P}.tar.gz"
17 DEPEND=">=virtual/jdk-1.6
22 RDEPEND=">=virtual/jre-1.6
25 JAVA_ANT_REWRITE_CLASSPATH="yes"
26 EANT_TEST_TARGET="test"
30 src/test/java/org/apache/commons/graph/coloring/GraphColoringTestCase.java
31 src/test/java/org/apache/commons/graph/spanning/KruskalTestCase.java
32 src/test/java/org/apache/commons/graph/scc/TarjanTestCase.java
36 cp "${FILESDIR}"/"${P}-build.xml" build.xml || die
44 java-pkg_newjar target/${P}.jar
45 use doc && java-pkg_dojavadoc target/site/apidocs
46 use source && java-pkg_dosrc src/main/java