summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerkan Kaba <serkan@gentoo.org>2008-06-10 20:49:40 +0000
committerSerkan Kaba <serkan@gentoo.org>2008-06-10 20:49:40 +0000
commit0e7f94a84cfa68de6d2acff69ad768595b7e3ba7 (patch)
treee7a6e12d7b3b67e09156f4d286989ee2a1feb312 /dev-java/jfreechart
parentVersion bump and migration toE API=1 slots. Thanks to Jan Vansteenkiste <Jan@... (diff)
downloadhistorical-0e7f94a84cfa68de6d2acff69ad768595b7e3ba7.tar.gz
historical-0e7f94a84cfa68de6d2acff69ad768595b7e3ba7.tar.bz2
historical-0e7f94a84cfa68de6d2acff69ad768595b7e3ba7.zip
Version bump and remove unused patch. Fixes bug #225713. Thanks to Jan Vansteenkiste <Jan@buitendezone.be> for reporting.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-java/jfreechart')
-rw-r--r--dev-java/jfreechart/ChangeLog9
-rw-r--r--dev-java/jfreechart/Manifest15
-rw-r--r--dev-java/jfreechart/files/1.0.8-test-timezone.patch141
-rw-r--r--dev-java/jfreechart/jfreechart-1.0.10.ebuild70
4 files changed, 81 insertions, 154 deletions
diff --git a/dev-java/jfreechart/ChangeLog b/dev-java/jfreechart/ChangeLog
index 5e87cdcc4ca0..af3e7890be43 100644
--- a/dev-java/jfreechart/ChangeLog
+++ b/dev-java/jfreechart/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/jfreechart
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/ChangeLog,v 1.43 2008/05/04 11:40:06 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/ChangeLog,v 1.44 2008/06/10 20:49:39 serkan Exp $
+
+*jfreechart-1.0.10 (10 Jun 2008)
+
+ 10 Jun 2008; Serkan Kaba <serkan@gentoo.org>
+ -files/1.0.8-test-timezone.patch, +jfreechart-1.0.10.ebuild:
+ Version bump and remove unused patch. Fixes bug #225713. Thanks to Jan
+ Vansteenkiste <Jan@buitendezone.be> for reporting.
04 May 2008; Christian Faulhammer <opfer@gentoo.org>
jfreechart-1.0.9-r1.ebuild:
diff --git a/dev-java/jfreechart/Manifest b/dev-java/jfreechart/Manifest
index 763323f4fc26..e5755aa6f86c 100644
--- a/dev-java/jfreechart/Manifest
+++ b/dev-java/jfreechart/Manifest
@@ -1,17 +1,8 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX 1.0.8-test-timezone.patch 4687 RMD160 14b885c351b3995b5be962d4da15189ecface509 SHA1 6bd166fd61d683650b3047fb85f4fc54040d0dac SHA256 f2be50a6e5383b7d4a1cfb180fedad73526bb1452b547cfa5203f1d3f92ed36b
AUX jfreechart-1.0.4-build.xml.patch 396 RMD160 2d5017a38f172b76482171854fcc99670ee822f1 SHA1 c98c4d2bd8e4996cb2c591b28e5181867233620e SHA256 2f94895138b874ac2e5023e17eb6bb4daccb3e9eb709c81c5e908ef20fdd57d9
+DIST jfreechart-1.0.10.tar.gz 5072945 RMD160 eae2f2e81b1f385dffd9117e0f5fbecdb748f14d SHA1 0b0ae9e24b3940d042a92a40d4f11229ba9294db SHA256 38d0ab928344e847799ed9e5e7cebb4cc9425b73d5b6672ac13b352147b24536
DIST jfreechart-1.0.9.tar.gz 5105044 RMD160 12c115d4821f1b48f10d0f8773d67bf5eea1531b SHA1 9c9edb2ab01a35fb91dd12a813b97072e5a1fb6e SHA256 9b73cdc0361bd8a5a69431ff69eaa58250e43664cd07cb0a7c682097f52f251b
+EBUILD jfreechart-1.0.10.ebuild 1949 RMD160 364abbbaeb6124972f13f2eb4830cad0e7380df3 SHA1 f1523138cb218fd8dce12a4bf5cc4cd6d197f570 SHA256 78c16d0a92b69a66fd63bdddf50cc56f49d7c9ff0f81a83c00072b77a28e9b3c
EBUILD jfreechart-1.0.9-r1.ebuild 1947 RMD160 84dd02cccd7c81c5f044c274436a0e33bb90b5d1 SHA1 4e6b198e148f45df128ca4ea72bbe25d60357fce SHA256 dd8ab2bd779c613568d6c002f936b32922135d1844b1c9b79ced88f4fbad455f
EBUILD jfreechart-1.0.9.ebuild 1904 RMD160 e296456b1cc9e5bd0cc3602409e4196fced944f8 SHA1 97f9f5d01d908ad52645c310b1d3e1d0a5d94f8d SHA256 b7dc359afed875a936f47c2f8ccc6bd9a9ff5637a227d85b9346cc0fe0687cff
-MISC ChangeLog 6562 RMD160 5ba18cd27cabfa4e1319eaf1d425d527f0146d7c SHA1 2c92143fa9856dddc766d91555da5e1cf504edeb SHA256 8dc8432878758e147e807d694188ac398eadb2bb85691832c4b38c6564eb0912
+MISC ChangeLog 6834 RMD160 a5f262532d2d3895270eae37e3b23662d3e1c5c8 SHA1 174b048199f712a62702559a7863d8640563de0c SHA256 5bdeea9c07cdd692f88e3c76c58c7be30767cc9203514524a55ddf2e3011a0cb
MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.9 (GNU/Linux)
-
-iEYEARECAAYFAkgdoJ0ACgkQNQqtfCuFnePzpwCfQg1t8xyN4P3nYknkzdu+4n5H
-gW4An05vwjgF5xGVGkGYAYf4SEC8x69K
-=qNyN
------END PGP SIGNATURE-----
diff --git a/dev-java/jfreechart/files/1.0.8-test-timezone.patch b/dev-java/jfreechart/files/1.0.8-test-timezone.patch
deleted file mode 100644
index 8e00f12a0033..000000000000
--- a/dev-java/jfreechart/files/1.0.8-test-timezone.patch
+++ /dev/null
@@ -1,141 +0,0 @@
-Index: source/org/jfree/data/time/Week.java
-===================================================================
---- source/org/jfree/data/time/Week.java (revision 691)
-+++ source/org/jfree/data/time/Week.java (revision 692)
-@@ -65,6 +65,7 @@
- * 09-Jan-2007 : Fixed bug in next() (DG);
- * 28-Aug-2007 : Added new constructor to avoid problem in creating new
- * instances (DG);
-+ * 19-Dec-2007 : Fixed bug in deprecated constructor (DG);
- *
- */
-
-@@ -171,7 +172,7 @@
- */
- public Week(Date time, TimeZone zone) {
- // defer argument checking...
-- this(time, RegularTimePeriod.DEFAULT_TIME_ZONE, Locale.getDefault());
-+ this(time, zone, Locale.getDefault());
- }
-
- /**
-Index: tests/org/jfree/data/time/junit/WeekTests.java
-===================================================================
---- tests/org/jfree/data/time/junit/WeekTests.java (revision 691)
-+++ tests/org/jfree/data/time/junit/WeekTests.java (revision 692)
-@@ -43,6 +43,8 @@
- * 01-Jun-2006 : Added testBug1498805() method (DG);
- * 11-Jul-2007 : Fixed bad time zone assumption (DG);
- * 28-Aug-2007 : Added test for constructor problem (DG);
-+ * 19-Dec-2007 : Set default locale for tests that are sensitive
-+ * to the locale (DG);
- *
- */
-
-@@ -288,22 +290,36 @@
- * A test case for bug 1448828.
- */
- public void testBug1448828() {
-- Week w = new Week(new Date(1136109830000l),
-- TimeZone.getTimeZone("GMT"));
-- assertEquals(2005, w.getYearValue());
-- assertEquals(52, w.getWeek());
-+ Locale saved = Locale.getDefault();
-+ Locale.setDefault(Locale.UK);
-+ try {
-+ Week w = new Week(new Date(1136109830000l),
-+ TimeZone.getTimeZone("GMT"));
-+ assertEquals(2005, w.getYearValue());
-+ assertEquals(52, w.getWeek());
-+ }
-+ finally {
-+ Locale.setDefault(saved);
-+ }
- }
-
- /**
- * A test case for bug 1498805.
- */
- public void testBug1498805() {
-- TimeZone zone = TimeZone.getTimeZone("GMT");
-- GregorianCalendar gc = new GregorianCalendar(zone);
-- gc.set(2005, Calendar.JANUARY, 1, 12, 0, 0);
-- Week w = new Week(gc.getTime(), zone);
-- assertEquals(53, w.getWeek());
-- assertEquals(new Year(2004), w.getYear());
-+ Locale saved = Locale.getDefault();
-+ Locale.setDefault(Locale.UK);
-+ try {
-+ TimeZone zone = TimeZone.getTimeZone("GMT");
-+ GregorianCalendar gc = new GregorianCalendar(zone);
-+ gc.set(2005, Calendar.JANUARY, 1, 12, 0, 0);
-+ Week w = new Week(gc.getTime(), zone);
-+ assertEquals(53, w.getWeek());
-+ assertEquals(new Year(2004), w.getYear());
-+ }
-+ finally {
-+ Locale.setDefault(saved);
-+ }
- }
-
- /**
-@@ -325,8 +341,15 @@
- */
- public void testGetFirstMillisecondWithTimeZone() {
- Week w = new Week(47, 1950);
-- TimeZone zone = TimeZone.getTimeZone("America/Los_Angeles");
-- assertEquals(-603216000000L, w.getFirstMillisecond(zone));
-+ Locale saved = Locale.getDefault();
-+ Locale.setDefault(Locale.US);
-+ try {
-+ TimeZone zone = TimeZone.getTimeZone("America/Los_Angeles");
-+ assertEquals(-603302400000L, w.getFirstMillisecond(zone));
-+ }
-+ finally {
-+ Locale.setDefault(saved);
-+ }
-
- // try null calendar
- boolean pass = false;
-@@ -335,8 +358,8 @@
- }
- catch (NullPointerException e) {
- pass = true;
-- }
-- assertTrue(pass);
-+ }
-+ assertTrue(pass);
- }
-
- /**
-@@ -378,10 +401,17 @@
- */
- public void testGetLastMillisecondWithTimeZone() {
- Week w = new Week(2, 1950);
-- TimeZone zone = TimeZone.getTimeZone("America/Los_Angeles");
-- assertEquals(-629827200001L, w.getLastMillisecond(zone));
--
-- // try null calendar
-+ Locale saved = Locale.getDefault();
-+ Locale.setDefault(Locale.US);
-+ try {
-+ TimeZone zone = TimeZone.getTimeZone("America/Los_Angeles");
-+ assertEquals(-629913600001L, w.getLastMillisecond(zone));
-+ }
-+ finally {
-+ Locale.setDefault(saved);
-+ }
-+
-+ // try null zone
- boolean pass = false;
- try {
- w.getLastMillisecond((TimeZone) null);
-@@ -389,7 +419,7 @@
- catch (NullPointerException e) {
- pass = true;
- }
-- assertTrue(pass);
-+ assertTrue(pass);
- }
-
- /**
diff --git a/dev-java/jfreechart/jfreechart-1.0.10.ebuild b/dev-java/jfreechart/jfreechart-1.0.10.ebuild
new file mode 100644
index 000000000000..a605febcb15a
--- /dev/null
+++ b/dev-java/jfreechart/jfreechart-1.0.10.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.10.ebuild,v 1.1 2008/06/10 20:49:39 serkan Exp $
+
+EAPI=1
+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"
+IUSE="test"
+COMMON_DEPEND="
+ >=dev-java/itext-1.4.6
+ dev-java/jcommon:1.0
+ java-virtuals/servlet-api:2.3"
+DEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}
+ test? ( dev-java/ant-junit )"
+RDEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPEND}"
+
+JAVA_PKG_FILTER_COMPILER="jikes"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # We do not fork junit tests because we need to disable X11 support for all tests
+ if use test; then
+ epatch "${FILESDIR}/${PN}-1.0.4-build.xml.patch"
+ fi
+
+ 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 ${P}.jar ${PN}.jar
+ java-pkg_newjar ${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}"
+}