summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jfreechart
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/jfreechart')
-rw-r--r--dev-java/jfreechart/Manifest3
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.13-build.xml.patch58
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.14-build.xml.patch35
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.14-fix-TimeSeriesCollectionTests.patch24
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.19-build.xml.patch25
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeSeriesCollectionTest.patch24
-rw-r--r--dev-java/jfreechart/files/jfreechart-1.0.4-build.xml.patch11
-rw-r--r--dev-java/jfreechart/jfreechart-1.0.13.ebuild64
-rw-r--r--dev-java/jfreechart/jfreechart-1.0.14.ebuild84
-rw-r--r--dev-java/jfreechart/jfreechart-1.0.19.ebuild96
-rw-r--r--dev-java/jfreechart/metadata.xml11
11 files changed, 435 insertions, 0 deletions
diff --git a/dev-java/jfreechart/Manifest b/dev-java/jfreechart/Manifest
new file mode 100644
index 000000000000..7c0cd27b6cb3
--- /dev/null
+++ b/dev-java/jfreechart/Manifest
@@ -0,0 +1,3 @@
+DIST jfreechart-1.0.13.tar.gz 6306139 SHA256 8b8286cc86d898961f307bcba1f8b6f6471bd0e921562adf573f2758b090c175 SHA512 6b4e2079fa4eb4cebec709a95e7b1bff4d7233dbdd26c7e3173e75fc29facc9accc64039a62e5d89c83c3aedbd9cd9bc42d5de79f77de08d7027dba8ba9a4d68 WHIRLPOOL 0dbf55f4b53687eb31116c9ba6ab556296a7f915ffc859ddda739ca2bf633e31da6c692289a08859a315e7cb53e571c54fa117d666ed9ca3f789c891597444b6
+DIST jfreechart-1.0.14.tar.gz 6376551 SHA256 9250d0ab465fed67aa6f48090854258d9d0053f519ca534e267a8bb84a6727f2 SHA512 4d2344553032aa138143d88ad91942ffc66385d90b3d8f279f4257ef2273012580e99a60107baffefa3ea4e33cb0bad9e656a42747a4d0132642d5b9cb27da7b WHIRLPOOL 13cd39d4f287291eed725ba0229f44187b63466348c347c7acb0e6137d3c638136d1d973e8fdac31c7aec32793bf3864cc339df01abf0588763a77052a351e4d
+DIST jfreechart-1.0.19.zip 8050676 SHA256 bfe8d38fd48250dc04a3ff1aff477f2d226f49ba1ec2732ded981a3fccfc66f2 SHA512 6345e6a6b4a82862f3908794efb70a6f5413f313ba5bcff1dfb713d21948034d80c743a0cea61be81921c62736b07209ed4b942fedca0c76226b1202a4596b31 WHIRLPOOL 69a5d4c1851fd613a70cdc49904671f22cd7edd25b956c67cdcda5f5960228bfa0932907f0f4432685d4310851ffcd4e1e7283d2f2187a06666b296e84606cc0
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.13-build.xml.patch b/dev-java/jfreechart/files/jfreechart-1.0.13-build.xml.patch
new file mode 100644
index 000000000000..8665a15aa0e2
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.13-build.xml.patch
@@ -0,0 +1,58 @@
+diff -Nur jfreechart-1.0.13/ant/build.xml jfreechart-1.0.13_patched/ant/build.xml
+--- jfreechart-1.0.13/ant/build.xml 2009-04-20 11:23:40.000000000 +0300
++++ jfreechart-1.0.13_patched/ant/build.xml 2009-05-11 23:36:27.000000000 +0300
+@@ -40,11 +40,9 @@
+ <available classname="java.lang.Annotation" property="src.version" value="1.5"/>
+ <available classname="java.lang.Annotation" property="target.version" value="1.5"/>
+ <path id="build.classpath">
+- <fileset dir="${basedir}/lib/">
+- <include name="${jcommon.name}-${jcommon.version}.jar"/>
+- <include name="servlet.jar"/>
+- <include name="gnujaxp.jar" unless="JDK1.4+"/>
+- </fileset>
++ <pathelement location="${jcommon.jar}"/>
++ <pathelement location="${servlet.jar}"/>
++ <pathelement location="${gnujaxp.jar}"/>
+ </path>
+
+ </target>
+@@ -324,7 +322,7 @@
+
+ <!-- COMPILE THE JUNIT TESTS. -->
+ <target name="compile-tests"
+- depends="compile,compile-experimental"
++ depends="initialise"
+ description="Compile the test code">
+
+ <mkdir dir="${basedir}/build-tests"/>
+@@ -338,8 +336,8 @@
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${junit.jar}"/>
+- <pathelement location="${basedir}/${jfreechart.name}-${jfreechart.version}.jar"/>
+- <pathelement location="${basedir}/${jfreechart.name}-${jfreechart.version}-experimental.jar"/>
++ <pathelement location="${basedir}/lib/${jfreechart.name}-${jfreechart.version}.jar"/>
++ <pathelement location="${basedir}/lib/${jfreechart.name}-${jfreechart.version}-experimental.jar"/>
+ <pathelement location="${basedir}/build-tests"/>
+ </classpath>
+ </javac>
+@@ -357,7 +355,7 @@
+ <junit printSummary="yes"
+ haltonerror="true"
+ haltonfailure="true"
+- fork="true"
++ fork="false"
+ dir=".">
+
+ <sysproperty key="basedir" value="."/>
+@@ -365,8 +363,8 @@
+ <classpath>
+ <path refid="build.classpath"/>
+ <pathelement location="${junit.jar}"/>
+- <pathelement location="${basedir}/${jfreechart.name}-${jfreechart.version}.jar"/>
+- <pathelement location="${basedir}/${jfreechart.name}-${jfreechart.version}-experimental.jar"/>
++ <pathelement location="${basedir}/lib/${jfreechart.name}-${jfreechart.version}.jar"/>
++ <pathelement location="${basedir}/lib/${jfreechart.name}-${jfreechart.version}-experimental.jar"/>
+ <pathelement location="${basedir}/build-tests"/>
+ </classpath>
+ <batchtest todir="${basedir}/build-tests-reports">
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.14-build.xml.patch b/dev-java/jfreechart/files/jfreechart-1.0.14-build.xml.patch
new file mode 100644
index 000000000000..f07e5be5df41
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.14-build.xml.patch
@@ -0,0 +1,35 @@
+--- a/ant/build.xml 2011-11-20 22:40:13.000000000 +0100
++++ b/ant/build.xml 2013-03-09 14:10:53.987970148 +0100
+@@ -40,11 +40,9 @@
+ <available classname="java.lang.Annotation" property="src.version" value="1.5"/>
+ <available classname="java.lang.Annotation" property="target.version" value="1.5"/>
+ <path id="build.classpath">
+- <fileset dir="${basedir}/lib/">
+- <include name="${jcommon.name}-${jcommon.version}.jar"/>
+- <include name="servlet.jar"/>
+- <include name="gnujaxp.jar" unless="JDK1.4+"/>
+- </fileset>
++ <pathelement location="${jcommon.jar}"/>
++ <pathelement location="${servlet.jar}"/>
++ <pathelement location="${gnujaxp.jar}"/>
+ </path>
+
+ </target>
+@@ -321,7 +319,7 @@
+
+ <!-- COMPILE THE JUNIT TESTS. -->
+ <target name="compile-tests"
+- depends="compile,compile-experimental"
++ depends="initialise"
+ description="Compile the test code">
+
+ <mkdir dir="${basedir}/build-tests"/>
+@@ -354,7 +352,7 @@
+ <junit printSummary="yes"
+ haltonerror="true"
+ haltonfailure="true"
+- fork="true"
++ fork="false"
+ dir=".">
+
+ <sysproperty key="basedir" value="."/>
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.14-fix-TimeSeriesCollectionTests.patch b/dev-java/jfreechart/files/jfreechart-1.0.14-fix-TimeSeriesCollectionTests.patch
new file mode 100644
index 000000000000..b932d863bf83
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.14-fix-TimeSeriesCollectionTests.patch
@@ -0,0 +1,24 @@
+--- a/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java 2011-11-20 22:40:13.000000000 +0100
++++ b/tests/org/jfree/data/time/junit/TimeSeriesCollectionTests.java 2013-05-21 00:18:03.840041846 +0200
+@@ -339,6 +339,10 @@
+ * java.util.List, boolean)} method.
+ */
+ public void testFindDomainBounds() {
++ // store the current time zone
++ TimeZone saved = TimeZone.getDefault();
++ TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
++
+ TimeSeriesCollection dataset = new TimeSeriesCollection();
+ List visibleSeriesKeys = new java.util.ArrayList();
+ Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
+@@ -351,10 +355,6 @@
+ r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
+ assertNull(r);
+
+- // store the current time zone
+- TimeZone saved = TimeZone.getDefault();
+- TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
+-
+ s1.add(new Year(2008), 8.0);
+ r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
+ assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.19-build.xml.patch b/dev-java/jfreechart/files/jfreechart-1.0.19-build.xml.patch
new file mode 100644
index 000000000000..ffe657b89c9d
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.19-build.xml.patch
@@ -0,0 +1,25 @@
+--- a/ant/build.xml 2011-11-20 22:40:13.000000000 +0100
++++ b/ant/build.xml 2013-03-09 14:10:53.987970148 +0100
+@@ -40,10 +40,9 @@
+ <available classname="java.lang.Annotation" property="src.version" value="1.5"/>
+ <available classname="java.lang.Annotation" property="target.version" value="1.5"/>
+ <path id="build.classpath">
+- <fileset dir="${basedir}/lib/">
+- <include name="${jcommon.name}-${jcommon.version}.jar"/>
+- <include name="servlet.jar"/>
+- </fileset>
++ <pathelement location="${jcommon.jar}"/>
++ <pathelement location="${servlet.jar}"/>
++ <pathelement location="${gnujaxp.jar}"/>
+ </path>
+
+ </target>
+@@ -321,7 +320,7 @@
+
+ <!-- COMPILE THE JUNIT TESTS. -->
+ <target name="compile-tests"
+- depends="compile,compile-experimental"
++ depends="initialise"
+ description="Compile the test code">
+
+ <mkdir dir="${basedir}/build-tests"/>
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeSeriesCollectionTest.patch b/dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeSeriesCollectionTest.patch
new file mode 100644
index 000000000000..ebb6c4aeffa0
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeSeriesCollectionTest.patch
@@ -0,0 +1,24 @@
+--- a/tests/org/jfree/data/time/TimeSeriesCollectionTest.java 2011-11-20 22:40:13.000000000 +0100
++++ b/tests/org/jfree/data/time/TimeSeriesCollectionTest.java 2013-05-21 00:18:03.840041846 +0200
+@@ -339,6 +339,10 @@
+ * java.util.List, boolean)} method.
+ */
+ public void testFindDomainBounds() {
++ // store the current time zone
++ TimeZone saved = TimeZone.getDefault();
++ TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
++
+ TimeSeriesCollection dataset = new TimeSeriesCollection();
+ List visibleSeriesKeys = new java.util.ArrayList();
+ Range r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys,
+@@ -351,10 +355,6 @@
+ r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
+ assertNull(r);
+
+- // store the current time zone
+- TimeZone saved = TimeZone.getDefault();
+- TimeZone.setDefault(TimeZone.getTimeZone("Europe/Paris"));
+-
+ s1.add(new Year(2008), 8.0);
+ r = DatasetUtilities.findDomainBounds(dataset, visibleSeriesKeys, true);
+ assertEquals(1199142000000.0, r.getLowerBound(), EPSILON);
diff --git a/dev-java/jfreechart/files/jfreechart-1.0.4-build.xml.patch b/dev-java/jfreechart/files/jfreechart-1.0.4-build.xml.patch
new file mode 100644
index 000000000000..cf4c9ada537f
--- /dev/null
+++ b/dev-java/jfreechart/files/jfreechart-1.0.4-build.xml.patch
@@ -0,0 +1,11 @@
+--- ant/build.xml.original 2007-02-09 23:44:42.000000000 +0100
++++ ant/build.xml 2007-02-09 23:45:01.000000000 +0100
+@@ -338,7 +338,7 @@
+ <junit printSummary="yes"
+ haltonerror="true"
+ haltonfailure="true"
+- fork="true"
++ fork="false"
+ dir=".">
+
+ <sysproperty key="basedir" value="."/>
diff --git a/dev-java/jfreechart/jfreechart-1.0.13.ebuild b/dev-java/jfreechart/jfreechart-1.0.13.ebuild
new file mode 100644
index 000000000000..b2e51e4ff9a8
--- /dev/null
+++ b/dev-java/jfreechart/jfreechart-1.0.13.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=2
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="JFreeChart is a free Java class library for generating charts"
+HOMEPAGE="http://www.jfree.org/jfreechart"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+LICENSE="LGPL-2.1"
+SLOT="1.0"
+KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux"
+IUSE="test"
+COMMON_DEPEND="
+ >=dev-java/itext-1.4.6:0
+ dev-java/jcommon:1.0
+ java-virtuals/servlet-api:2.3"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}
+ test? ( dev-java/ant-junit:0 )"
+RDEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+
+ rm -v *.jar lib/*.jar || die
+}
+
+src_compile() {
+ # Note that compile-experimental depends on compile so it is sufficient to run
+ # just compile-experimental
+ eant -f ant/build.xml compile-experimental $(use_doc) $(get_jars)
+}
+
+src_test() {
+ # X11 tests are disabled using java.awt.headless=true
+ ANT_TASKS="ant-junit" \
+ ANT_OPTS="-Djava.awt.headless=true -Duser.timezone=UTC" \
+ eant -f ant/build.xml test $(get_jars)
+}
+
+src_install() {
+ java-pkg_newjar lib/${P}.jar ${PN}.jar
+ java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
+ dodoc README.txt ChangeLog NEWS || die
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc source/org
+}
+
+get_jars() {
+ local antflags="
+ -Ditext.jar=$(java-pkg_getjar itext iText.jar) \
+ -Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar) \
+ -Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
+ use test && antflags="${antflags} \
+ -Djunit.jar=$(java-pkg_getjars --build-only junit)"
+ echo "${antflags}"
+}
diff --git a/dev-java/jfreechart/jfreechart-1.0.14.ebuild b/dev-java/jfreechart/jfreechart-1.0.14.ebuild
new file mode 100644
index 000000000000..360f185d4333
--- /dev/null
+++ b/dev-java/jfreechart/jfreechart-1.0.14.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="JFreeChart is a free Java class library for generating charts"
+HOMEPAGE="http://www.jfree.org/jfreechart"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1.0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+
+IUSE="+servlet test"
+
+COMMON_DEPEND="
+ >=dev-java/itext-2.1.5:0
+ >=dev-java/jcommon-1.0.17:1.0
+ servlet? ( java-virtuals/servlet-api:2.3 )"
+
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}
+ test? ( dev-java/ant-junit:0 )"
+
+RDEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+
+ # Fix test failure, obtained from
+ # http://sourceforge.net/p/jfreechart/bugs/1100/
+ epatch "${FILESDIR}/${P}-fix-TimeSeriesCollectionTests.patch"
+
+ rm -v *.jar lib/*.jar || die
+
+ if ! use servlet; then
+ rm -rf source/org/jfree/chart/servlet || die
+ fi
+}
+
+src_compile() {
+ # Note that compile-experimental depends on compile so it is sufficient to run
+ # just compile-experimental
+ eant -f ant/build.xml compile-experimental $(use_doc) $(get_jars)
+}
+
+src_test() {
+ # X11 tests are disabled using java.awt.headless=true
+ ANT_TASKS="ant-junit" \
+ ANT_OPTS="-Djava.awt.headless=true -Duser.timezone=UTC" \
+ eant -f ant/build.xml test $(get_jars)
+}
+
+src_install() {
+ java-pkg_newjar lib/${P}.jar ${PN}.jar
+ java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
+
+ dodoc README.txt ChangeLog NEWS
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc source/org
+}
+
+get_jars() {
+ local antflags="
+ -Ditext.jar=$(java-pkg_getjar itext iText.jar) \
+ -Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar)"
+
+ use servlet && antflags="${antflags} \
+ -Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
+
+ use test && antflags="${antflags} \
+ -Djunit.jar=$(java-pkg_getjars --build-only junit)"
+
+ echo "${antflags}"
+}
diff --git a/dev-java/jfreechart/jfreechart-1.0.19.ebuild b/dev-java/jfreechart/jfreechart-1.0.19.ebuild
new file mode 100644
index 000000000000..01e0668935b7
--- /dev/null
+++ b/dev-java/jfreechart/jfreechart-1.0.19.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="JFreeChart is a free Java class library for generating charts"
+HOMEPAGE="http://www.jfree.org/jfreechart"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="1.0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+servlet test"
+
+CDEPEND=">=dev-java/jcommon-1.0.23:1.0
+ dev-java/jfreesvg:2.1
+ servlet? ( java-virtuals/servlet-api:2.3 )"
+
+DEPEND="${CDEPEND}
+ app-arch/unzip
+ >=virtual/jdk-1.6
+ test? (
+ dev-java/ant-junit:0
+ dev-java/junit:4
+ )"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.6"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+RESTRICT='test'
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.0.19-build.xml.patch"
+
+ # Fix test failure, obtained from
+ # http://sourceforge.net/p/jfreechart/bugs/1100/
+ epatch "${FILESDIR}/${PN}-1.0.19-fix-TimeSeriesCollectionTest.patch"
+
+ rm -v lib/*.jar || die
+
+ # links to orsonpdf which is only available for purchase under a commercial license
+ rm -v "${P}-demo.jar" || die
+
+ if ! use servlet; then
+ rm -rf source/org/jfree/chart/servlet || die
+ fi
+}
+
+src_compile() {
+ # Note that compile-experimental depends on compile so it is sufficient to run
+ # just compile-experimental
+ eant -f ant/build.xml compile-experimental $(use_doc) $(get_jars)
+}
+
+# Tests fail due to:
+# Caught an exception while logging the end of the build. Exception was:
+# java.lang.OutOfMemoryError: PermGen space
+# java.lang.OutOfMemoryError: PermGen space
+# I don't think there's much we can do here.
+# src_test() {
+# # X11 tests are disabled using java.awt.headless=true
+# ANT_TASKS="ant-junit" \
+# ANT_OPTS="-Djava.awt.headless=true -Duser.timezone=UTC" \
+# eant -f ant/build.xml test $(get_jars)
+# }
+
+src_install() {
+ java-pkg_newjar lib/${P}.jar ${PN}.jar
+ java-pkg_newjar lib/${P}-experimental.jar ${PN}-experimental.jar
+
+ dodoc README.txt ChangeLog NEWS
+
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc source/org
+}
+
+get_jars() {
+ local antflags="
+ -Djcommon.jar=$(java-pkg_getjar jcommon-1.0 jcommon.jar) \
+ -Djfreesvg.jar=$(java-pkg_getjar jfreesvg-2.1 jfreesvg.jar)"
+
+ use servlet && antflags="${antflags} \
+ -Dservlet.jar=$(java-pkg_getjars servlet-api-2.3)"
+
+ use test && antflags="${antflags} \
+ -Djunit.jar=$(java-pkg_getjars --build-only junit-4)"
+
+ echo "${antflags}"
+}
diff --git a/dev-java/jfreechart/metadata.xml b/dev-java/jfreechart/metadata.xml
new file mode 100644
index 000000000000..c70c3f8a99f0
--- /dev/null
+++ b/dev-java/jfreechart/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <use>
+ <flag name="servlet">Build a servlet using the servlet API.</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">jfreechart</remote-id>
+ </upstream>
+</pkgmetadata>