summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVlastimil Babka <caster@gentoo.org>2009-06-05 14:27:02 +0000
committerVlastimil Babka <caster@gentoo.org>2009-06-05 14:27:02 +0000
commit6f31582156edbea33e7659521dcdeabcec38f894 (patch)
tree23ce7252c0d67c6eb157e0fd37abe9967d45e6f7 /dev-java/jcharts
parentVersion bump to 0.2.7 (diff)
downloadgentoo-2-6f31582156edbea33e7659521dcdeabcec38f894.tar.gz
gentoo-2-6f31582156edbea33e7659521dcdeabcec38f894.tar.bz2
gentoo-2-6f31582156edbea33e7659521dcdeabcec38f894.zip
Revbump to use batik-1.7
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jcharts')
-rw-r--r--dev-java/jcharts/ChangeLog9
-rw-r--r--dev-java/jcharts/jcharts-0.7.5-r1.ebuild64
2 files changed, 71 insertions, 2 deletions
diff --git a/dev-java/jcharts/ChangeLog b/dev-java/jcharts/ChangeLog
index bfbc06d638d5..0ae443fd946b 100644
--- a/dev-java/jcharts/ChangeLog
+++ b/dev-java/jcharts/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jcharts
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jcharts/ChangeLog,v 1.4 2008/04/26 12:09:06 betelgeuse Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jcharts/ChangeLog,v 1.5 2009/06/05 14:27:02 caster Exp $
+
+*jcharts-0.7.5-r1 (05 Jun 2009)
+
+ 05 Jun 2009; Vlastimil Babka <caster@gentoo.org> +jcharts-0.7.5-r1.ebuild:
+ Revbump to use batik-1.7
26 Apr 2008; Petteri Räty <betelgeuse@gentoo.org> jcharts-0.7.5.ebuild:
Switch to slot deps and use java-pkg_doexamples.
diff --git a/dev-java/jcharts/jcharts-0.7.5-r1.ebuild b/dev-java/jcharts/jcharts-0.7.5-r1.ebuild
new file mode 100644
index 000000000000..2ffe1ae02d6e
--- /dev/null
+++ b/dev-java/jcharts/jcharts-0.7.5-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2009 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-r1.ebuild,v 1.1 2009/06/05 14:27:02 caster Exp $
+
+EAPI="1"
+JAVA_PKG_IUSE="doc examples source"
+
+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="~amd64 ~x86"
+
+IUSE=""
+
+COMMON_DEP="dev-java/batik:1.7
+ dev-java/servletapi:2.4"
+
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEP}
+ app-arch/unzip"
+
+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.7):${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
+ use examples && java-pkg_doexamples demo
+}