summaryrefslogtreecommitdiff
path: root/math/qalculate
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-05-25 15:10:28 +0000
committerdrochner <drochner@pkgsrc.org>2009-05-25 15:10:28 +0000
commit9c2f2d231701b2a41f38762e1183e5655ea91e2b (patch)
tree0e5686fdafb09d961a53cfde1dfac1967f420f12 /math/qalculate
parenteed6246f37fdd69cfb62b53a96af897fd3ff0ea7 (diff)
downloadpkgsrc-9c2f2d231701b2a41f38762e1183e5655ea91e2b.tar.gz
-make this compile with 64-bit time_t
The fix is suboptimal because the y2037 problem remains. It would be better to either -extend the "cln" lib for 64-bit integers (but the code is a mess already) or -split the time_t into a lower/higher part and convert them seperately, which is less than elegant. -add a MESSAGE telling that gnome-vfs or wget are needed to fetch currency exchange rates automatically, so the (wrong) wget dependency can be removed from child pkgs bump PKGREVISION
Diffstat (limited to 'math/qalculate')
-rw-r--r--math/qalculate/MESSAGE8
-rw-r--r--math/qalculate/Makefile4
-rw-r--r--math/qalculate/distinfo3
-rw-r--r--math/qalculate/patches/patch-af13
4 files changed, 25 insertions, 3 deletions
diff --git a/math/qalculate/MESSAGE b/math/qalculate/MESSAGE
new file mode 100644
index 00000000000..f1efbde8543
--- /dev/null
+++ b/math/qalculate/MESSAGE
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2009/05/25 15:10:28 drochner Exp $
+
+For online updates of currency exchange rates, either gnome-vfs
+(pkgsrc/sysutils/gnome-vfs) or wget (pkgsrc/net/wget) needs to be
+installed.
+
+===========================================================================
diff --git a/math/qalculate/Makefile b/math/qalculate/Makefile
index fe610a38779..4a8dbff40a1 100644
--- a/math/qalculate/Makefile
+++ b/math/qalculate/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.31 2009/05/20 00:58:22 wiz Exp $
+# $NetBSD: Makefile,v 1.32 2009/05/25 15:10:28 drochner Exp $
DISTNAME= libqalculate-0.9.6
PKGNAME= qalculate-0.9.6
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/}
diff --git a/math/qalculate/distinfo b/math/qalculate/distinfo
index 260eba48e12..d14ce8cb60f 100644
--- a/math/qalculate/distinfo
+++ b/math/qalculate/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2007/11/05 20:44:03 drochner Exp $
+$NetBSD: distinfo,v 1.18 2009/05/25 15:10:28 drochner Exp $
SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad
RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d
@@ -8,3 +8,4 @@ SHA1 (patch-ab) = b1a4b0ffe5dc19ff2b1c640960c3f3a524fd524b
SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd
SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28
SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b
+SHA1 (patch-af) = 3bab134f0ca10ecf91252e8211982be767e594e5
diff --git a/math/qalculate/patches/patch-af b/math/qalculate/patches/patch-af
new file mode 100644
index 00000000000..f6b9d9db0af
--- /dev/null
+++ b/math/qalculate/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2009/05/25 15:10:28 drochner Exp $
+
+--- libqalculate/BuiltinFunctions.cc.orig 2009-05-12 12:55:15.000000000 +0200
++++ libqalculate/BuiltinFunctions.cc
+@@ -2283,7 +2283,7 @@ int TimestampFunction::calculate(MathStr
+ string str = vargs[0].symbol();
+ remove_blank_ends(str);
+ if(str == _("now") || str == "now") {
+- mstruct.number().setInternal(time(NULL));
++ mstruct.number().setInternal((long)time(NULL));
+ return 1;
+ }
+ GDate *gtime = g_date_new();