summaryrefslogtreecommitdiff
blob: 5931692f76ed3444936c978e2a0f4d175d819152 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jrobin/jrobin-1.5.4.ebuild,v 1.2 2007/09/18 06:36:31 wltjr Exp $

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-ant-2

DESCRIPTION="JRobin is a 100% pure Java alternative to RRDTool"

SRC_URI="mirror://sourceforge/jrobin/${P}-1.tar.gz"
HOMEPAGE="http://www.jrobin.org/"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"

SLOT="0"

RDEPEND=">=virtual/jre-1.5"

DEPEND=">=virtual/jdk-1.5"

S="${WORKDIR}/JRobinLite-${PV}"

src_unpack() {
	unpack ${A}
	cd "${S}"

	einfo "Removing bundled jars and classes"
	find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -print -delete
}

EANT_BUILD_XML="ant/build.xml"
EANT_BUILD_TARGET="${PN}"

src_install() {
	jars="convertor inspector ${PN}"
	for jar in ${jars} ; do
		java-pkg_newjar "${S}/lib/${jar}-${PV}.jar" ${jar}.jar
	done
	use source && java-pkg_dosrc src
	use doc && java-pkg_dojavadoc doc/javadoc
}