blob: 14f590c2545ffd9448c6a6f9c4e21c9d67624c65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jgrapht/jgrapht-0.7.3.ebuild,v 1.1 2009/01/25 19:31:56 weaver Exp $
EAPI="1"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Graph library that is a simpler and faster alternative to JGraph"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://jgrapht.sourceforge.net"
KEYWORDS="~amd64"
SLOT="0"
LICENSE="LGPL-2.1"
IUSE="test"
CDEPEND="dev-java/touchgraph-graphlayout
dev-java/jgraph"
DEPEND="${CDEPEND}
>=virtual/jdk-1.5
test? ( dev-java/ant-junit
dev-java/xmlunit:1 )"
RDEPEND="${CDEPEND}
>=virtual/jre-1.4"
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_GENTOO_CLASSPATH="touchgraph-graphlayout jgraph"
EANT_DOC_TARGET="javadoc"
src_unpack() {
unpack ${A}
rm -rf "${S}/lib" || die
}
src_install() {
java-pkg_newjar ${PN}*.jar || die
dohtml README.html || die
use doc && java-pkg_dojavadoc javadoc
use source && java-pkg_dosrc src/org
}
src_test() {
EANT_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH} xmlunit:1" ANT_TASKS="ant-junit" eant test
}
|