aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-06-16 15:35:59 +0800
committerbms <bms@FreeBSD.org>2004-06-16 15:35:59 +0800
commit25214bb3a8a95fb99096fd0c9f786369932fad67 (patch)
treea1f51472fe975592997464ebc82f2a029384b999 /devel
parent64838a7cc431b1179cc99e15d678e1da6d2772f3 (diff)
downloadfreebsd-ports-gnome-25214bb3a8a95fb99096fd0c9f786369932fad67.tar.gz
freebsd-ports-gnome-25214bb3a8a95fb99096fd0c9f786369932fad67.tar.zst
freebsd-ports-gnome-25214bb3a8a95fb99096fd0c9f786369932fad67.zip
Fix leap year calculation. Bump PORTREVISION.
PR: ports/64871 Submitted by: Johannes Groedem
Diffstat (limited to 'devel')
-rw-r--r--devel/cvstrac/Makefile2
-rw-r--r--devel/cvstrac/files/patch-history.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/cvstrac/Makefile b/devel/cvstrac/Makefile
index 05b4e59c6c6e..50d516fdfcd9 100644
--- a/devel/cvstrac/Makefile
+++ b/devel/cvstrac/Makefile
@@ -7,7 +7,7 @@
PORTNAME= cvstrac
PORTVERSION= 1.1.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.cvstrac.org/cvstrac/
diff --git a/devel/cvstrac/files/patch-history.c b/devel/cvstrac/files/patch-history.c
new file mode 100644
index 000000000000..73cc6bc41c27
--- /dev/null
+++ b/devel/cvstrac/files/patch-history.c
@@ -0,0 +1,11 @@
+--- history.c 5 Apr 2003 16:04:21 -0000 1.28
++++ history.c 28 Mar 2004 21:01:11 -0000
+@@ -155,7 +155,7 @@
+ p->tm_year += p->tm_mon/12;
+ p->tm_mon %= 12;
+ }
+- isLeapYr = p->tm_year/4==0 && (p->tm_year/100!=0 || (p->tm_year+300)/400==0);
++ isLeapYr = p->tm_year%4==0 && (p->tm_year%100!=0 || p->tm_year%400==0);
+ p->tm_yday = priorDays[p->tm_mon] + p->tm_mday - 1;
+ if( isLeapYr && p->tm_mon>1 ) p->tm_yday++;
+ nDay = (p->tm_year-70)*365 + (p->tm_year-69)/4 -p->tm_year/100 +