summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-01-13 19:49:50 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-01-13 19:49:50 +0000
commit7c94d61ddce9978dac13860ca6f430e263e683fd (patch)
tree323e54c25bd363969a8dcdf11471982ef9fd4fee /dev-java/jcharts/jcharts-0.7.5.ebuild
parentarm/ia64/sh love (diff)
downloadgentoo-2-7c94d61ddce9978dac13860ca6f430e263e683fd.tar.gz
gentoo-2-7c94d61ddce9978dac13860ca6f430e263e683fd.tar.bz2
gentoo-2-7c94d61ddce9978dac13860ca6f430e263e683fd.zip
Initial addition. Ebuild written by me.
(Portage version: 2.1.2_rc4-r7)
Diffstat (limited to 'dev-java/jcharts/jcharts-0.7.5.ebuild')
-rw-r--r--dev-java/jcharts/jcharts-0.7.5.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/jcharts/jcharts-0.7.5.ebuild b/dev-java/jcharts/jcharts-0.7.5.ebuild
new file mode 100644
index 000000000000..fb731c163a5d
--- /dev/null
+++ b/dev-java/jcharts/jcharts-0.7.5.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jcharts/jcharts-0.7.5.ebuild,v 1.1 2007/01/13 19:49:50 betelgeuse Exp $
+
+inherit java-pkg-2 java-ant-2
+
+MY_P="jCharts-${PV}"
+DESCRIPTION="jCharts is a 100% Java based charting utility that outputs a variety of charts"
+HOMEPAGE="http://jcharts.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+
+IUSE="doc examples source"
+
+COMMON_DEP="
+ =dev-java/batik-1.6*
+ =dev-java/servletapi-2.4*"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}
+ dev-java/ant-core
+ app-arch/unzip
+ source? ( app-arch/zip )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -v *.{jar,war} lib/*.jar
+}
+
+_eant() {
+ cd build
+ local servletcp="$(java-pkg_getjars servletapi-2.4)"
+ eant ${1} \
+ -Dbatik.classpath="$(java-pkg_getjars batik-1.6):${servletcp}"
+}
+
+src_compile() {
+ # zip file includes javadocs and 1.6 fails to generate them so we just use
+ # the bundled ones
+ _eant jar
+}
+
+RESTRICT=test
+# tests need X11
+#src_test() {
+# _eant test
+#}
+
+src_install() {
+ java-pkg_newjar build/*.jar
+ dohtml docs/*.html
+ use doc && java-pkg_dojavadoc javadocs
+ use source && java-pkg_dosrc src/org
+ if use examples; then
+ dodir /usr/share/doc/${PF}/examples
+ insinto /usr/share/doc/${PF}/examples
+ doins -r demo/*
+ fi
+}