summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-12-25 02:23:06 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-12-25 02:23:06 +0000
commit1938f7a69e71b718deb43be25ca63b775a783acb (patch)
tree57ea48336c36bc43be717d965e14085f3f854036 /dev-java
parentDelete generation 1 ebuild. (diff)
downloadhistorical-1938f7a69e71b718deb43be25ca63b775a783acb.tar.gz
historical-1938f7a69e71b718deb43be25ca63b775a783acb.tar.bz2
historical-1938f7a69e71b718deb43be25ca63b775a783acb.zip
Add patch from upstream svn for failing tests.
Package-Manager: portage-2.1.4_rc9
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jfreechart/ChangeLog6
-rw-r--r--dev-java/jfreechart/Manifest26
-rw-r--r--dev-java/jfreechart/files/1.0.8-test-timezone.patch141
-rw-r--r--dev-java/jfreechart/jfreechart-1.0.8a.ebuild5
4 files changed, 164 insertions, 14 deletions
diff --git a/dev-java/jfreechart/ChangeLog b/dev-java/jfreechart/ChangeLog
index f1e7b32b3102..53f3afc792aa 100644
--- a/dev-java/jfreechart/ChangeLog
+++ b/dev-java/jfreechart/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-java/jfreechart
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/ChangeLog,v 1.29 2007/12/15 03:50:17 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/ChangeLog,v 1.30 2007/12/25 02:23:05 betelgeuse Exp $
+
+ 25 Dec 2007; Petteri Räty <betelgeuse@gentoo.org>
+ +files/1.0.8-test-timezone.patch, jfreechart-1.0.8a.ebuild:
+ Add patch from upstream svn for failing tests.
*jfreechart-1.0.8a (15 Dec 2007)
diff --git a/dev-java/jfreechart/Manifest b/dev-java/jfreechart/Manifest
index 336a8e54ab38..678c2d30bb27 100644
--- a/dev-java/jfreechart/Manifest
+++ b/dev-java/jfreechart/Manifest
@@ -1,6 +1,10 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
+AUX 1.0.8-test-timezone.patch 4687 RMD160 14b885c351b3995b5be962d4da15189ecface509 SHA1 6bd166fd61d683650b3047fb85f4fc54040d0dac SHA256 f2be50a6e5383b7d4a1cfb180fedad73526bb1452b547cfa5203f1d3f92ed36b
+MD5 3b1d24c1983031d93214e46e1f4ae56e files/1.0.8-test-timezone.patch 4687
+RMD160 14b885c351b3995b5be962d4da15189ecface509 files/1.0.8-test-timezone.patch 4687
+SHA256 f2be50a6e5383b7d4a1cfb180fedad73526bb1452b547cfa5203f1d3f92ed36b files/1.0.8-test-timezone.patch 4687
AUX jfreechart-1.0.3-build.xml.patch 2226 RMD160 241811560d64d1780c4c0e936b60802bae3cb2f0 SHA1 657e45cab4609745abb1b82524c710055bae36ca SHA256 b23b55d0ab9c7efc8f53375d7aca8b198eb22ca31f0164fb18a44059d9a387cc
MD5 07e96486f8ff737555e57173e3030151 files/jfreechart-1.0.3-build.xml.patch 2226
RMD160 241811560d64d1780c4c0e936b60802bae3cb2f0 files/jfreechart-1.0.3-build.xml.patch 2226
@@ -20,14 +24,14 @@ EBUILD jfreechart-1.0.4.ebuild 1973 RMD160 f2c87334edfe88c200b069bb88a349bed9f2e
MD5 2dc96cc6c5b202db4478809e1dffc643 jfreechart-1.0.4.ebuild 1973
RMD160 f2c87334edfe88c200b069bb88a349bed9f2e3c4 jfreechart-1.0.4.ebuild 1973
SHA256 358af66ae8dd4d35190d9fffdeed25f09dd83e6393874ca7bdd9d28a2c6118de jfreechart-1.0.4.ebuild 1973
-EBUILD jfreechart-1.0.8a.ebuild 1910 RMD160 d68e21fa2907a9cb5d82f8a0822f526940452951 SHA1 2e2389860d230e59f7ecd12b34c28e9580413687 SHA256 9451d6db7aa184ab928b73aff08b84fb13951e73e723d0543defdfc29880bf41
-MD5 d45049e7d153a5ac762cc927e343b41d jfreechart-1.0.8a.ebuild 1910
-RMD160 d68e21fa2907a9cb5d82f8a0822f526940452951 jfreechart-1.0.8a.ebuild 1910
-SHA256 9451d6db7aa184ab928b73aff08b84fb13951e73e723d0543defdfc29880bf41 jfreechart-1.0.8a.ebuild 1910
-MISC ChangeLog 4636 RMD160 b7a1ade5bc9d8665df1a2231d15a71d24d61f17e SHA1 5d2727c5b4e9294131e0b70aa7171d5dee6dc99d SHA256 ae6ea862f1add8d4b332a925877895f39ace2a5cdbad555f3ede82f96babf976
-MD5 3a0505ab502eb1282f164b4caeccdfbe ChangeLog 4636
-RMD160 b7a1ade5bc9d8665df1a2231d15a71d24d61f17e ChangeLog 4636
-SHA256 ae6ea862f1add8d4b332a925877895f39ace2a5cdbad555f3ede82f96babf976 ChangeLog 4636
+EBUILD jfreechart-1.0.8a.ebuild 1962 RMD160 daad2b8a7e2403ae15a82fcf47a5a95260f4c771 SHA1 7f600e9ac2c18ebe6679c62bb9f33de7125b9f6b SHA256 95c41f56487daa25315034c3ea7d50c5be39b793417e7c6201c560a7850fbc23
+MD5 2b506b0361f0d8f3d9d4fdf8568bde8a jfreechart-1.0.8a.ebuild 1962
+RMD160 daad2b8a7e2403ae15a82fcf47a5a95260f4c771 jfreechart-1.0.8a.ebuild 1962
+SHA256 95c41f56487daa25315034c3ea7d50c5be39b793417e7c6201c560a7850fbc23 jfreechart-1.0.8a.ebuild 1962
+MISC ChangeLog 4801 RMD160 cd63b0c4bc2e7111d7bd5b95d5cd3e47283d0723 SHA1 1299f2e9792c661ca937b4a0357c024e7a591a48 SHA256 d9defde23f2eeb9c1c97d0354679cbe996a5affb907000d2af1d491be7960f37
+MD5 463be5e9bda1ffcb12e46930fc007004 ChangeLog 4801
+RMD160 cd63b0c4bc2e7111d7bd5b95d5cd3e47283d0723 ChangeLog 4801
+SHA256 d9defde23f2eeb9c1c97d0354679cbe996a5affb907000d2af1d491be7960f37 ChangeLog 4801
MISC metadata.xml 157 RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 SHA1 c37a6b9922aef61b5b3387655bccb6e3b16e0e26 SHA256 295d02c5805b0257938eb80314b371daac94b8d6ea85629a902de7a824adc0c9
MD5 a6ec7d7724fbd068ffb39b5be56134ed metadata.xml 157
RMD160 ab0b3741457dee7531f59c4da0f0e9e8399af084 metadata.xml 157
@@ -44,7 +48,7 @@ SHA256 940a5daf5c75241cb89d881c07bc0426fee46dcf1699053cee5ab78d1ce41036 files/di
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
-iD8DBQFHY06FcxLzpIGCsLQRAj+uAJ9uPcG3uJ+YZJOAwgFqTXRUwKJGyACgnMuo
-OW7i5sSSUywFK4vJDVarxUE=
-=ZpFk
+iD8DBQFHcGmLcxLzpIGCsLQRAo1oAKCKv8q7uEBQlvwNL2GVfApcAOhmuwCfWYkH
+MSHs7RBThs4MObJhs9q6JsU=
+=+/ul
-----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
new file mode 100644
index 000000000000..8e00f12a0033
--- /dev/null
+++ b/dev-java/jfreechart/files/1.0.8-test-timezone.patch
@@ -0,0 +1,141 @@
+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.8a.ebuild b/dev-java/jfreechart/jfreechart-1.0.8a.ebuild
index 48034fb9d6e6..ebfefd689251 100644
--- a/dev-java/jfreechart/jfreechart-1.0.8a.ebuild
+++ b/dev-java/jfreechart/jfreechart-1.0.8a.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.8a.ebuild,v 1.1 2007/12/15 03:50:17 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jfreechart/jfreechart-1.0.8a.ebuild,v 1.2 2007/12/25 02:23:05 betelgeuse Exp $
JAVA_PKG_IUSE="doc source"
@@ -32,7 +32,8 @@ src_unpack() {
epatch "${FILESDIR}/${PN}-1.0.4-build.xml.patch"
fi
- rm -v lib/* *.jar || die
+ epatch "${FILESDIR}/1.0.8-test-timezone.patch"
+ rm -v *.jar lib/*.jar || die
}
src_compile() {