Mon May 25 15:10:28 2009 UTC ()
-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


(drochner)
diff -r0 -r1.1 pkgsrc/math/qalculate/MESSAGE
diff -r1.31 -r1.32 pkgsrc/math/qalculate/Makefile
diff -r1.17 -r1.18 pkgsrc/math/qalculate/distinfo
diff -r0 -r1.1 pkgsrc/math/qalculate/patches/patch-af

File Added: pkgsrc/math/qalculate/Attic/MESSAGE
===========================================================================
$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.

===========================================================================

cvs diff -r1.31 -r1.32 pkgsrc/math/qalculate/Makefile (expand / switch to unified diff)

--- pkgsrc/math/qalculate/Makefile 2009/05/20 00:58:22 1.31
+++ pkgsrc/math/qalculate/Makefile 2009/05/25 15:10:28 1.32
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.31 2009/05/20 00:58:22 wiz Exp $ 1# $NetBSD: Makefile,v 1.32 2009/05/25 15:10:28 drochner Exp $
2 2
3DISTNAME= libqalculate-0.9.6 3DISTNAME= libqalculate-0.9.6
4PKGNAME= qalculate-0.9.6 4PKGNAME= qalculate-0.9.6
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= math 6CATEGORIES= math
7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/} 7MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qalculate/}
8 8
9MAINTAINER= adam@NetBSD.org 9MAINTAINER= adam@NetBSD.org
10HOMEPAGE= http://qalculate.sourceforge.net/ 10HOMEPAGE= http://qalculate.sourceforge.net/
11COMMENT= Modern multi-purpose desktop calculator (console version) 11COMMENT= Modern multi-purpose desktop calculator (console version)
12 12
13PKG_DESTDIR_SUPPORT= user-destdir 13PKG_DESTDIR_SUPPORT= user-destdir
14 14
15USE_GNU_READLINE= yes 15USE_GNU_READLINE= yes
16USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
17USE_LIBTOOL= yes 17USE_LIBTOOL= yes
18USE_PKGLOCALEDIR= yes 18USE_PKGLOCALEDIR= yes

cvs diff -r1.17 -r1.18 pkgsrc/math/qalculate/distinfo (expand / switch to unified diff)

--- pkgsrc/math/qalculate/distinfo 2007/11/05 20:44:03 1.17
+++ pkgsrc/math/qalculate/distinfo 2009/05/25 15:10:28 1.18
@@ -1,10 +1,11 @@ @@ -1,10 +1,11 @@
1$NetBSD: distinfo,v 1.17 2007/11/05 20:44:03 drochner Exp $ 1$NetBSD: distinfo,v 1.18 2009/05/25 15:10:28 drochner Exp $
2 2
3SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad 3SHA1 (libqalculate-0.9.6.tar.gz) = 0bcd42e13c23db9489ce594767d5017bdcb338ad
4RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d 4RMD160 (libqalculate-0.9.6.tar.gz) = 30f819530236da6b6b78088754643408c8aeb70d
5Size (libqalculate-0.9.6.tar.gz) = 1111134 bytes 5Size (libqalculate-0.9.6.tar.gz) = 1111134 bytes
6SHA1 (patch-aa) = fda2983150bbbdecc1578e747d8a6aa7ef965f3f 6SHA1 (patch-aa) = fda2983150bbbdecc1578e747d8a6aa7ef965f3f
7SHA1 (patch-ab) = b1a4b0ffe5dc19ff2b1c640960c3f3a524fd524b 7SHA1 (patch-ab) = b1a4b0ffe5dc19ff2b1c640960c3f3a524fd524b
8SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd 8SHA1 (patch-ac) = 98e817d60fc4cd521e7d227ecd330364ec072ecd
9SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28 9SHA1 (patch-ad) = 0e767ff393ea2d54da8a49527d24842ca0b90d28
10SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b 10SHA1 (patch-ae) = 7c9685c578a848cb4e9c55756110d891b9254f2b
 11SHA1 (patch-af) = 3bab134f0ca10ecf91252e8211982be767e594e5

File Added: pkgsrc/math/qalculate/patches/Attic/patch-af
$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();