summaryrefslogtreecommitdiff
blob: 96141433f3b5b2bad00eae037ca2302236adc902 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/touchgraph-graphlayout/touchgraph-graphlayout-1.22.ebuild,v 1.5 2011/01/23 17:02:41 xarthisius Exp $

MY_PN="TGGraphLayout"
JAVA_PKG_IUSE="source"

inherit java-pkg-2

DESCRIPTION="TouchGraph provides a set of interfaces for graph visualization"
HOMEPAGE="http://touchgraph.sourceforge.net"
SRC_URI="mirror://sourceforge/touchgraph/TGGL_${PV//./}_jre11.zip"
LICENSE="Apache-1.1"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE=""

DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"

S="${WORKDIR}/${MY_PN}"

src_compile() {
	mkdir -p bin || die
	ejavac -d bin `find com -name "*.java" || die`
	`java-config -j` cvf ${MY_PN}.jar -C bin . || die
}

src_install() {
	java-pkg_newjar ${MY_PN}.jar
	dodoc "TGGL ReleaseNotes.txt" || die
	use source && java-pkg_dosrc com
}