diff options
author | 2021-10-27 11:06:05 +0200 | |
---|---|---|
committer | 2021-10-27 11:06:05 +0200 | |
commit | e41ce285c93ac3d29c449f754f1af708cc68403a (patch) | |
tree | cff9abd442909af95d5977c251a5941a2ce44050 /dev-java | |
parent | dev-util/rocm-clang-ocl: Version bump to 4.3.0 (diff) | |
download | sci-e41ce285c93ac3d29c449f754f1af708cc68403a.tar.gz sci-e41ce285c93ac3d29c449f754f1af708cc68403a.tar.bz2 sci-e41ce285c93ac3d29c449f754f1af708cc68403a.zip |
dev-java/jfreechart: last-rites from ::gentoo, EAPI bump
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jfreechart/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jfreechart/files/jfreechart-1.0.19-build.xml.patch | 25 | ||||
-rw-r--r-- | dev-java/jfreechart/files/jfreechart-1.0.19-fix-TimeSeriesCollectionTest.patch | 24 | ||||
-rw-r--r-- | dev-java/jfreechart/jfreechart-1.0.19-r2.ebuild | 71 | ||||
-rw-r--r-- | dev-java/jfreechart/metadata.xml | 11 |
5 files changed, 132 insertions, 0 deletions
diff --git a/dev-java/jfreechart/Manifest b/dev-java/jfreechart/Manifest new file mode 100644 index 000000000..b7458ca74 --- /dev/null +++ b/dev-java/jfreechart/Manifest @@ -0,0 +1 @@ +DIST jfreechart-1.0.19.zip 8050676 BLAKE2B be5ac67befd6a16c9771f50bca59c3543251984b60e00e8aef350cadb1121caf391a8dddc383fa08ed89b0346e2a057a8da6a70b224d7f843f19535a4df873b2 SHA512 6345e6a6b4a82862f3908794efb70a6f5413f313ba5bcff1dfb713d21948034d80c743a0cea61be81921c62736b07209ed4b942fedca0c76226b1202a4596b31 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 000000000..ffe657b89 --- /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 000000000..ebb6c4aef --- /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/jfreechart-1.0.19-r2.ebuild b/dev-java/jfreechart/jfreechart-1.0.19-r2.ebuild new file mode 100644 index 000000000..e83f79d4b --- /dev/null +++ b/dev-java/jfreechart/jfreechart-1.0.19-r2.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~x86" +IUSE="test" + +CDEPEND=" + dev-java/jfreesvg:2.1 + >=dev-java/jcommon-1.0.23:1.0 + java-virtuals/servlet-api:3.0" + +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.6" + +BDEPEND=" + ${CDEPEND} + test? ( + dev-java/ant-junit:0 + dev-java/junit:4 + ) + app-arch/unzip + >=virtual/jdk-1.6" + +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/${PN}-1.0.19-build.xml.patch" + "${FILESDIR}/${PN}-1.0.19-fix-TimeSeriesCollectionTest.patch" +) + +JAVA_ANT_ENCODING="ISO-8859-1" +JAVA_ANT_REWRITE_CLASSPATH="yes" + +EANT_BUILD_XML="ant/build.xml" +EANT_BUILD_TARGET="compile-experimental" +EANT_GENTOO_CLASSPATH=" + jfreesvg-2.1 + jcommon-1.0 + servlet-api-3.0 +" + +EANT_DOC_TARGET="javadoc" + +src_prepare() { + default + + java-pkg_clean +} + +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 +} diff --git a/dev-java/jfreechart/metadata.xml b/dev-java/jfreechart/metadata.xml new file mode 100644 index 000000000..eae2d8963 --- /dev/null +++ b/dev-java/jfreechart/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>sci@gentoo.org</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">jfreechart</remote-id> + </upstream> +</pkgmetadata> |