summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-11-23 15:37:37 +0000
committerrillig <rillig@pkgsrc.org>2007-11-23 15:37:37 +0000
commit482311f42fa4a52a976cef89af25340c27fe777f (patch)
treede66460ff3b91f8398cce9689ce56119bb274394 /math
parent0669911d6fc0f773997411c18a1a369e94f12fe6 (diff)
downloadpkgsrc-482311f42fa4a52a976cef89af25340c27fe777f.tar.gz
Made the package work with sunpro.
Diffstat (limited to 'math')
-rw-r--r--math/gnumeric-current/distinfo4
-rw-r--r--math/gnumeric-current/patches/patch-aa18
-rw-r--r--math/gnumeric-current/patches/patch-ab13
3 files changed, 34 insertions, 1 deletions
diff --git a/math/gnumeric-current/distinfo b/math/gnumeric-current/distinfo
index b13b88bb751..41f57193e02 100644
--- a/math/gnumeric-current/distinfo
+++ b/math/gnumeric-current/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.7 2007/11/08 19:39:11 wiz Exp $
+$NetBSD: distinfo,v 1.8 2007/11/23 15:37:37 rillig Exp $
SHA1 (gnumeric-1.7.14.tar.bz2) = f8781a2d1691fcb6b6b2c9fa5174e26ad3df5d91
RMD160 (gnumeric-1.7.14.tar.bz2) = c1190b4102ba69bebf3b4f4276a8395b12b42da7
Size (gnumeric-1.7.14.tar.bz2) = 13977827 bytes
+SHA1 (patch-aa) = 593df8dcff9fd84715d05bd06e08b4b0670072c6
+SHA1 (patch-ab) = 42f6bfbcd4eb586bdca5b15b338f8b406c658caa
diff --git a/math/gnumeric-current/patches/patch-aa b/math/gnumeric-current/patches/patch-aa
new file mode 100644
index 00000000000..dc4b9986bc4
--- /dev/null
+++ b/math/gnumeric-current/patches/patch-aa
@@ -0,0 +1,18 @@
+$NetBSD: patch-aa,v 1.1 2007/11/23 15:37:37 rillig Exp $
+
+Sunpro doesn't like floating point comparisons in constant expressions.
+
+--- plugins/numtheory/numtheory.c.orig 2007-01-01 03:40:18.000000000 +0100
++++ plugins/numtheory/numtheory.c 2007-11-23 16:17:34.395473000 +0100
+@@ -33,7 +33,10 @@ GNM_PLUGIN_MODULE_HEADER;
+
+ #define OUT_OF_BOUNDS "#LIMIT!"
+
+-static const double bit_max = MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
++static inline double bit_max_fn(void) {
++ return MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
++}
++#define bit_max (bit_max_fn())
+
+ /* ------------------------------------------------------------------------- */
+
diff --git a/math/gnumeric-current/patches/patch-ab b/math/gnumeric-current/patches/patch-ab
new file mode 100644
index 00000000000..bc142ac5fa0
--- /dev/null
+++ b/math/gnumeric-current/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2007/11/23 15:37:37 rillig Exp $
+
+--- src/gnm-so-polygon.c.orig 2007-09-29 01:48:00.000000000 +0200
++++ src/gnm-so-polygon.c 2007-11-23 15:58:26.784640000 +0100
+@@ -223,7 +223,7 @@ static void
+ gnm_so_polygon_write_xml_sax (SheetObject const *so, GsfXMLOut *output)
+ {
+ /* TODO */
+- return gnm_so_polygon_parent_class->write_xml_sax (so, output);
++ gnm_so_polygon_parent_class->write_xml_sax (so, output);
+ }
+
+ static void