summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-06-06 07:00:40 +0000
committerkrion <krion@FreeBSD.org>2004-06-06 07:00:40 +0000
commita53f8bc3f1d103c31cfc9c6c3587d84cf253af41 (patch)
tree7d518fa13ea31aaa8fd50f3d7c6b44a3f1b74667
parentac3525988ad721dbac2ae3f7308222440fc72595 (diff)
downloadFreeBSD-ports-a53f8bc3f1d103c31cfc9c6c3587d84cf253af41.zip
FreeBSD-ports-a53f8bc3f1d103c31cfc9c6c3587d84cf253af41.tar.gz
- Add the color_after_eol option (after several discussions on
the mutt-users mailing list) to be able to behave like mutt-1.4.x. - Remove a non-working site from PATCH_SITES - Bump PORTREVISION PR: ports/67619 Submitted by: maintainer
-rw-r--r--mail/mutt-devel/Makefile3
-rw-r--r--mail/mutt-devel/files/patch-color-eol62
-rw-r--r--mail/mutt-devel/scripts/generate-plist2
3 files changed, 64 insertions, 3 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile
index 97387b4..6365239 100644
--- a/mail/mutt-devel/Makefile
+++ b/mail/mutt-devel/Makefile
@@ -81,7 +81,7 @@
PORTNAME= mutt-devel
PORTVERSION= 1.5.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES+= mail ipv6
.if defined(WITH_MUTT_NNTP)
CATEGORIES+= news
@@ -96,7 +96,6 @@ PATCH_SITES+= http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
http://www3.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
ftp://ftp.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \
- ftp://ftp2.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \
ftp://ftp3.mutt.org.ua/pub/mutt/mutt-${VVV_PATCH_VERSION}/:vvv \
http://cedricduval.free.fr/mutt/patches/download/:cd \
http://home.woolridge.ca/mutt/patches/:dw
diff --git a/mail/mutt-devel/files/patch-color-eol b/mail/mutt-devel/files/patch-color-eol
new file mode 100644
index 0000000..686be16
--- /dev/null
+++ b/mail/mutt-devel/files/patch-color-eol
@@ -0,0 +1,62 @@
+--- mutt.h.orig Fri Jun 4 13:35:59 2004
++++ mutt.h Fri Jun 4 13:49:26 2004
+@@ -350,6 +350,7 @@
+ OPTBEEPNEW,
+ OPTBOUNCEDELIVERED,
+ OPTCHECKNEW,
++ OPTCOLORAFTEREOL,
+ OPTCOLLAPSEUNREAD,
+ OPTCONFIRMAPPEND,
+ OPTCONFIRMCREATE,
+--- init.h.orig Fri Jun 4 13:35:56 2004
++++ init.h Fri Jun 4 13:45:43 2004
+@@ -315,6 +315,12 @@
+ ** \fIcheck_new\fP is \fIunset\fP, no check for new mail is performed
+ ** while the mailbox is open.
+ */
++ { "color_after_eol", DT_BOOL, R_NONE, OPTCOLORAFTEREOL, 1 },
++ /*
++ ** .pp
++ ** When \fIset\fP, Mutt will color a line after the last character extending
++ ** to the end of the window.
++ */
+ { "collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 },
+ /*
+ ** .pp
+--- pager.c.orig Sat Jun 5 09:13:33 2004
++++ pager.c Sat Jun 5 09:12:31 2004
+@@ -1392,7 +1392,7 @@
+ * ncurses does an implicit clrtoeol() when you do addch('\n') so we have
+ * to make sure to reset the color *after* that
+ */
+- if (flags & M_SHOWCOLOR)
++ if (option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR))
+ {
+ m = ((*lineInfo)[n].continuation) ? ((*lineInfo)[n].syntax)[0].first : n;
+ if ((*lineInfo)[m].type == MT_COLOR_HEADER)
+@@ -1406,6 +1406,16 @@
+ #endif
+ }
+
++ /*
++ * reset the color back to normal. This *must* come before the
++ * addch('\n') for the color not to be filled to the right margin.
++ */
++ if (!option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR))
++ {
++ SETCOLOR(MT_COLOR_NORMAL);
++ BKGDSET(MT_COLOR_NORMAL);
++ }
++
+ /* ncurses always wraps lines when you get to the right side of the
+ * screen, but S-Lang seems to only wrap if the next character is *not*
+ * a newline (grr!).
+@@ -1420,7 +1430,7 @@
+ * addch('\n'), otherwise the color for this line will not be
+ * filled to the right margin.
+ */
+- if (flags & M_SHOWCOLOR)
++ if (option (OPTCOLORAFTEREOL) && (flags & M_SHOWCOLOR))
+ {
+ SETCOLOR(MT_COLOR_NORMAL);
+ BKGDSET(MT_COLOR_NORMAL);
diff --git a/mail/mutt-devel/scripts/generate-plist b/mail/mutt-devel/scripts/generate-plist
index d38ecb7..6306b4b 100644
--- a/mail/mutt-devel/scripts/generate-plist
+++ b/mail/mutt-devel/scripts/generate-plist
@@ -131,7 +131,7 @@ EOF
fi
if [ "$MUTT_HTML" = "yes" ]; then
- html=370
+ html=371
if [ "$MUTT_COMPRESSED_FOLDERS" = "yes" ]; then
html=$(($html + 5))
fi
OpenPOWER on IntegriCloud