summaryrefslogtreecommitdiff
path: root/www/htdig-devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2009-01-17 09:13:10 +0000
committeradam <adam@pkgsrc.org>2009-01-17 09:13:10 +0000
commitdbbd9f5b24bf1690068e93caa488af746d33b606 (patch)
treec071d9e587607fa435e7541125611a998f3496b8 /www/htdig-devel
parent3fbf2781c744a64ccba8aed3642f1e565dcc05dc (diff)
downloadpkgsrc-dbbd9f5b24bf1690068e93caa488af746d33b606.tar.gz
Fix building with 64-bit time_t
Diffstat (limited to 'www/htdig-devel')
-rw-r--r--www/htdig-devel/distinfo3
-rw-r--r--www/htdig-devel/patches/patch-ab13
2 files changed, 15 insertions, 1 deletions
diff --git a/www/htdig-devel/distinfo b/www/htdig-devel/distinfo
index 8146c66e44d..42a3c8d86ef 100644
--- a/www/htdig-devel/distinfo
+++ b/www/htdig-devel/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.5 2008/01/14 09:46:45 yyamano Exp $
+$NetBSD: distinfo,v 1.6 2009/01/17 09:13:10 adam Exp $
SHA1 (htdig-3.2.0b6.tar.bz2) = 0b28134386e78fe724c56583fbc61b280551122a
RMD160 (htdig-3.2.0b6.tar.bz2) = 1e0900e11618ffe3d43a6fc26163e3ed926a1012
Size (htdig-3.2.0b6.tar.bz2) = 2498246 bytes
SHA1 (patch-aa) = 6f4d22f84fe8caa809c1062e210200d9cea1a555
+SHA1 (patch-ab) = 864655d311c2a9fe1f5de8b150587f3625a7c8c7
SHA1 (patch-af) = 17b6f2f18c805cab76bd3b399057e035af16c70d
SHA1 (patch-ag) = 6105b1526f31bb7b757c3ceeae286c7f2c0aa007
SHA1 (patch-ah) = e6e87151c7bd0a44d138d431bdcc7ce7f950d1ee
diff --git a/www/htdig-devel/patches/patch-ab b/www/htdig-devel/patches/patch-ab
new file mode 100644
index 00000000000..62fa7c5b199
--- /dev/null
+++ b/www/htdig-devel/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2009/01/17 09:13:10 adam Exp $
+
+--- htsearch/Display.cc.orig 2009-01-17 10:05:37.000000000 +0100
++++ htsearch/Display.cc
+@@ -1541,7 +1541,7 @@ Display::buildMatchList()
+ // seconds in a 365 days year). The formula gives less weight
+ // as the distance between the date document and the current time
+ // increases (the absolute value is for documents with future date)
+-#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((n) - (dd)) / 31536000)))
++#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((int)((n) - (dd))) / 31536000)))
+ date_score = DATE_FACTOR(date_factor, now, thisRef->DocTime());
+ score += date_score;
+ }