aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorriggs <riggs@FreeBSD.org>2017-12-18 00:46:05 +0800
committerriggs <riggs@FreeBSD.org>2017-12-18 00:46:05 +0800
commit3dbf0c0440e02b38171a5c83be8351774ac562a3 (patch)
tree46e493216e6f3b808789ae1269c8b74316721a2c /mail
parent311ee24454b8146541a0e20cd42fec611d16cc10 (diff)
downloadfreebsd-ports-gnome-3dbf0c0440e02b38171a5c83be8351774ac562a3.tar.gz
freebsd-ports-gnome-3dbf0c0440e02b38171a5c83be8351774ac562a3.tar.zst
freebsd-ports-gnome-3dbf0c0440e02b38171a5c83be8351774ac562a3.zip
Update to upstream release 1.9.2
Detailed maintainer log: - Update to mutt 1.9.2 - Bring ats date-conditional back as a local patch file - Due to the patch not having versioning an update can break the port if the hash of the file changes - Update greeting patch to 1.9.1 PR: 224374 Submitted by: dereks@lifeofadishwasher.com (maintainer) Differential Revision: https://reviews.freebsd.org/D13509
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt/Makefile10
-rw-r--r--mail/mutt/distinfo12
-rw-r--r--mail/mutt/files/patch-date-conditional97
3 files changed, 106 insertions, 13 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index 67a79051f87c..7092ada63e2f 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -2,8 +2,8 @@
# $FreeBSD$
PORTNAME= mutt
-PORTVERSION= 1.9.1
-PORTREVISION?= 1
+PORTVERSION= 1.9.2
+PORTREVISION?= 0
CATEGORIES+= mail ipv6
MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/ \
@@ -17,10 +17,8 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PATCH_SITES+= http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
- https://github.com/aschrab/mutt/compare/dev-base...feature/:ats \
http://vc.org.ua/mutt/:vc
PATCH_DIST_STRIP= -p1
-PATCHFILES= date-conditional.diff:ats
MAINTAINER?= dereks@lifeofadishwasher.com
COMMENT?= Small but powerful text based program for read/writing e-mail
@@ -204,8 +202,8 @@ DOCS_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-doc-ref
.include <bsd.port.options.mk>
# un/comment as each VERSION is created for PORTVERSION
-#VVV_PATCH_VERSION= 1.8.3
-GREETING_PATCH_VERSION= 1.9.0
+VVV_PATCH_VERSION= 1.9.1
+GREETING_PATCH_VERSION= 1.9.1
.if !defined(VVV_PATCH_VERSION)
VVV_PATCH_VERSION= ${PORTVERSION}
diff --git a/mail/mutt/distinfo b/mail/mutt/distinfo
index f811a3a838b3..ecb41ea828a1 100644
--- a/mail/mutt/distinfo
+++ b/mail/mutt/distinfo
@@ -1,10 +1,8 @@
-TIMESTAMP = 1506285098
-SHA256 (mutt/mutt-1.9.1.tar.gz) = 749b83a96373c6e2101ebe8c4b9a651735e02c478edb750750a5146a15d91bb1
-SIZE (mutt/mutt-1.9.1.tar.gz) = 4193868
-SHA256 (mutt/date-conditional.diff) = 8936c5fe7a2a62a68f2a8d001c7a6dddf138c48186a338482b6639507ba9133e
-SIZE (mutt/date-conditional.diff) = 2023
-SHA256 (mutt/mutt-1.9.0.vc.greeting) = b4ac804c24a07c7eb8330ebfdc94cdbf6fd7a4671badfb32fb611df09c008317
-SIZE (mutt/mutt-1.9.0.vc.greeting) = 4534
+TIMESTAMP = 1513396241
+SHA256 (mutt/mutt-1.9.2.tar.gz) = a2e152a352bbf02d222d54074199d9c53821c19f700c4cb85f78fa85faed7896
+SIZE (mutt/mutt-1.9.2.tar.gz) = 4195627
+SHA256 (mutt/mutt-1.9.1.vc.greeting) = b4ac804c24a07c7eb8330ebfdc94cdbf6fd7a4671badfb32fb611df09c008317
+SIZE (mutt/mutt-1.9.1.vc.greeting) = 4534
SHA256 (mutt/patch-1.9.1.vvv.nntp.gz) = f7098b713dfcbb2a4a6e5edaf536eb99be6d92fad073d5d3ac436b0191c7c892
SIZE (mutt/patch-1.9.1.vvv.nntp.gz) = 60687
SHA256 (mutt/patch-1.9.1.vvv.initials.gz) = 4673ca438fb673dfee09c6b8b8f9e8e78af06056f1b515c6030b0533dae847e5
diff --git a/mail/mutt/files/patch-date-conditional b/mail/mutt/files/patch-date-conditional
new file mode 100644
index 000000000000..9cbae9c3718a
--- /dev/null
+++ b/mail/mutt/files/patch-date-conditional
@@ -0,0 +1,97 @@
+--- PATCHES.orig 2017-12-03 03:10:17 UTC
++++ PATCHES
+@@ -0,0 +1 @@
++patch-1.5.0.ats.date_conditional.1
+--- hdrline.c.orig 2017-12-03 03:10:17 UTC
++++ hdrline.c
+@@ -428,6 +428,53 @@ hdr_format_str (char *dest,
+ const char *cp;
+ struct tm *tm;
+ time_t T;
++ int i = 0, invert = 0;
++
++ if (optional && (op == '[' || op == '(')) {
++ char *is;
++ T = time(NULL);
++ T -= (op == '(') ? hdr->received : hdr->date_sent;
++
++ is = (char *)prefix;
++ if( *is == '>' ) {
++ invert = 1;
++ ++is;
++ }
++
++ while( *is && *is != '?' ) {
++ int t = strtol (is, &is, 10);
++ switch (*(is++)) {
++ case '?':
++ break;
++ case 'y':
++ t *= 365 * 24 * 60 * 60;
++ break;
++ case 'M':
++ t *= 30 * 24 * 60 * 60;
++ break;
++ case 'w':
++ t *= 7 * 24 * 60 * 60;
++ break;
++ case 'd':
++ t *= 24 * 60 * 60;
++ break;
++ case 'h':
++ t *= 60 * 60;
++ break;
++ case 'm':
++ t *= 60;
++ break;
++ }
++ i += t;
++ }
++
++ if (i < 0)
++ i *= -1;
++
++ if( (T > i || T < -1*i) ^ invert )
++ optional = 0;
++ break;
++ }
+
+ p = dest;
+
+--- muttlib.c.orig 2017-12-03 03:10:17 UTC
++++ muttlib.c
+@@ -1335,7 +1335,16 @@ void mutt_FormatString (char *dest, /*
+ if (*src == '?')
+ {
+ flags |= MUTT_FORMAT_OPTIONAL;
+- src++;
++ ch = *(++src); /* save the character to switch on */
++ cp = prefix;
++ ++src;
++ count = 0;
++ while (count < sizeof (prefix) && *src != '?')
++ {
++ *cp++ = *src++;
++ count++;
++ }
++ *cp = 0;
+ }
+ else
+ {
+@@ -1351,12 +1360,12 @@ void mutt_FormatString (char *dest, /*
+ count++;
+ }
+ *cp = 0;
+- }
+
+- if (!*src)
+- break; /* bad format */
++ if (!*src)
++ break; /* bad format */
+
+- ch = *src++; /* save the character to switch on */
++ ch = *src++; /* save the character to switch on */
++ }
+
+ if (flags & MUTT_FORMAT_OPTIONAL)
+ {