summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-12-16 02:33:17 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-12-16 02:33:17 +0000
commitaeab7ba6ea6dd82cfd0d3bad8c92bd23cf8acb87 (patch)
treed5af4b538db6cb687dc1d1ae68f842c30baf503f /dev-java/jump
parentVersion bump. See bug #198512. (diff)
downloadgentoo-2-aeab7ba6ea6dd82cfd0d3bad8c92bd23cf8acb87.tar.gz
gentoo-2-aeab7ba6ea6dd82cfd0d3bad8c92bd23cf8acb87.tar.bz2
gentoo-2-aeab7ba6ea6dd82cfd0d3bad8c92bd23cf8acb87.zip
Add patch to fix unit tests. Fixes bug #193372. Thanks to Pierre Colot <pierre_jr_colot@hotmail.com>.
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'dev-java/jump')
-rw-r--r--dev-java/jump/ChangeLog7
-rw-r--r--dev-java/jump/files/0.5-test.patch14
-rw-r--r--dev-java/jump/jump-0.5.ebuild4
3 files changed, 23 insertions, 2 deletions
diff --git a/dev-java/jump/ChangeLog b/dev-java/jump/ChangeLog
index 99466438ce06..10bb5f614fff 100644
--- a/dev-java/jump/ChangeLog
+++ b/dev-java/jump/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jump
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jump/ChangeLog,v 1.15 2007/10/24 05:32:58 wltjr Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jump/ChangeLog,v 1.16 2007/12/16 02:33:16 betelgeuse Exp $
+
+ 16 Dec 2007; Petteri Räty <betelgeuse@gentoo.org> +files/0.5-test.patch,
+ jump-0.5.ebuild:
+ Add patch to fix unit tests. Fixes bug #193372. Thanks to Pierre Colot
+ <pierre_jr_colot@hotmail.com>.
24 Oct 2007; William L. Thomson Jr. <wltjr@gentoo.org>
-jump-0.4.1-r1.ebuild, -jump-0.4.1-r2.ebuild:
diff --git a/dev-java/jump/files/0.5-test.patch b/dev-java/jump/files/0.5-test.patch
new file mode 100644
index 000000000000..796d0d022dd0
--- /dev/null
+++ b/dev-java/jump/files/0.5-test.patch
@@ -0,0 +1,14 @@
+diff -Naur jump-0.5.vanilla/src/tests/org/znerd/math/tests/NumberCentralTests.java jump-0.5/src/tests/org/znerd/math/tests/NumberCentralTests.java
+--- jump-0.5.vanilla/src/tests/org/znerd/math/tests/NumberCentralTests.java 2007-10-10 00:27:47.000000000 +0200
++++ jump-0.5/src/tests/org/znerd/math/tests/NumberCentralTests.java 2007-10-10 00:28:38.000000000 +0200
+@@ -220,8 +220,8 @@
+ assertEquals(ONE_HALF, NumberCentral.valueOf( 0.5));
+ assertEquals(ONE, NumberCentral.valueOf( 1.0));
+ assertEquals(TWO, NumberCentral.valueOf( 2.0));
+- assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MIN_VALUE).doubleValue(), 0.0);
+- assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MAX_VALUE).doubleValue(), 0.0);
++ assertEquals(Double.MIN_VALUE, NumberCentral.valueOf(Double.MIN_VALUE).doubleValue(), Double.MIN_VALUE);
++ assertEquals(Double.MAX_VALUE, NumberCentral.valueOf(Double.MAX_VALUE).doubleValue(), Double.MIN_VALUE);
+ }
+
+ /**
diff --git a/dev-java/jump/jump-0.5.ebuild b/dev-java/jump/jump-0.5.ebuild
index e8ee6fb4adda..730051a23fa4 100644
--- a/dev-java/jump/jump-0.5.ebuild
+++ b/dev-java/jump/jump-0.5.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/jump/jump-0.5.ebuild,v 1.3 2007/09/21 17:01:03 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jump/jump-0.5.ebuild,v 1.4 2007/12/16 02:33:16 betelgeuse Exp $
JAVA_PKG_IUSE="doc examples source test"
inherit java-pkg-2 java-ant-2
@@ -19,6 +19,8 @@ src_unpack() {
unpack ${A}
cd "${S}"
+ epatch "${FILESDIR}/0.5-test.patch"
+
sed -i 's:${java.home}/src::' -i build.xml || die
java-ant_rewrite-classpath
}