Skip to content

Commit

Permalink
mail/mutt: Remove feature patches
Browse files Browse the repository at this point in the history
 * As mentioned in efe2cf3 UPDATING and pkg-message to keep mail/mutt
   inline with upstream removing addtional ports patches.
 * Update post-install sed to be more vim make.vim syntax friendly.  It is
   making any # a make comments.

Some of these patches
PR:		272194
Reported by:	dereks@lifeofadishwasher.com (maintainer)
Differential Revision:	https://reviews.freebsd.org/D40754
  • Loading branch information
derekschrock authored and fernape committed Jun 29, 2023
1 parent da51004 commit ee5c580
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 600 deletions.
57 changes: 7 additions & 50 deletions mail/mutt/Makefile
@@ -1,19 +1,12 @@
PORTNAME= mutt
DISTVERSION= 2.2.10
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES+= mail
MASTER_SITES= ftp://ftp.mutt.org/pub/mutt/ \
https://bitbucket.org/mutt/mutt/downloads/ \
http://www.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv \
http://www2.mutt.org.ua/download/mutt-${VVV_PATCH_VERSION}/:vvv
https://bitbucket.org/mutt/mutt/downloads/
DIST_SUBDIR= mutt
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 \
http://vc.org.ua/mutt/:vc
PATCH_DIST_STRIP= -p1

MAINTAINER= dereks@lifeofadishwasher.com
COMMENT= Small but powerful text based program for read/writing e-mail
WWW= http://www.mutt.org/
Expand Down Expand Up @@ -47,16 +40,11 @@ CONFLICTS= ja-mutt ja-mutt-devel mutt-1.4* mutt-devel-lite mutt-lite \

INFO= ${PORTNAME}

OPTIONS_DEFINE= AUTOCRYPT DEBUG_LOGS DOCS EXAMPLES FLOCK GPGME \
GREETING_PATCH HTML ICONV IDN IFDEF_PATCH \
INITIALS_PATCH LOCALES_FIX MAILBOX_MANPAGES \
MAILDIR_MTIME_PATCH NLS REVERSE_REPLY_PATCH SMART_DATE \
SMIME SMTP URLVIEW
OPTIONS_DEFINE= AUTOCRYPT DEBUG_LOGS DOCS EXAMPLES FLOCK GPGME HTML \
ICONV IDN LOCALES_FIX MAILBOX_MANPAGES NLS SMTP URLVIEW
OPTIONS_DEFAULT= AUTOCRYPT DEBUG_LOGS GPGME GSSAPI_NONE HCACHE_LMDB HTML \
ICONV IDN IFDEF_PATCH INITIALS_PATCH LOCALES_FIX \
MAILBOX_MANPAGES MAILDIR_MTIME_PATCH NCURSES NLS \
REVERSE_REPLY_PATCH SASL_CYRUS SMART_DATE SMIME SMTP \
URLVIEW
ICONV IDN LOCALES_FIX MAILBOX_MANPAGES NCURSES NLS \
SASL_CYRUS SMTP URLVIEW

OPTIONS_SINGLE= GSSAPI HCACHE SASL SCREEN
OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT GSSAPI_NONE
Expand All @@ -70,7 +58,6 @@ AUTOCRYPT_DESC= Convenient End-to-End Encryption
DEBUG_LOGS_DESC= Debugging capabilities
FLOCK_DESC= flock() usage
GPGME_DESC= Gpgme interface
GREETING_PATCH_DESC= Greeting support
HCACHE_BDB_DESC= Use Berkeley DB (BDB) (AGPLv3)
HCACHE_DESC= Header Cache support
HCACHE_GDBM_DESC= Use GDBM
Expand All @@ -81,20 +68,14 @@ HCACHE_QDBM_DESC= Use QDBM
HCACHE_TOKYOCABINET_DESC= Use Tokyo Cabinet
HTML_DESC= HTML documentation
IDN_DESC= International Domain Names (implies ICONV)
IFDEF_PATCH_DESC= ifdef feature
INITIALS_PATCH_DESC= Adds exando '%I' initials of author
LOCALES_FIX_DESC= Locales fix
MAILBOX_MANPAGES_DESC= Install mbox.5/mmdf.5 manpages
MAILDIR_MTIME_PATCH_DESC= Maildir mtime patch
NCURSES_DESC= Ncurses support
NLS_DESC= Native language support (implies ICONV)
REVERSE_REPLY_PATCH_DESC= Reverse_reply
SASL_CYRUS_DESC= Cyrus SASL Authentication
SASL_GSASL_DESC= GNU SASL Authentication
SASL_NONE_DESC= Disable SASL Authentication
SLANG_DESC= SLANG support
SMART_DATE_DESC= Dynamic date formatting with "%@"
SMIME_DESC= SMIME email check option patch
SMTP_DESC= SMTP relay support
URLVIEW_DESC= Use urlview for the URL selector menu

Expand All @@ -120,8 +101,6 @@ GPGME_LIB_DEPENDS+= libassuan.so:security/libassuan \

GPGME_CONFIGURE_ENABLE= gpgme

GREETING_PATCH_PATCHFILES= mutt-${GREETING_PATCH_VERSION}.vc.greeting:vc

# Handle GSSAPI from various places
GSSAPI_BASE_USES= gssapi
GSSAPI_BASE_CONFIGURE_ON= ${GSSAPI_CONFIGURE_ARGS} \
Expand Down Expand Up @@ -161,22 +140,14 @@ IDN_LIB_DEPENDS= libidn2.so:dns/libidn2 \
libunistring.so:devel/libunistring
IDN_CONFIGURE_WITH= idn2=${LOCALBASE}

IFDEF_PATCH_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ifdef

INITIALS_PATCH_PATCHFILES= patch-${VVV_PATCH_VERSION}.vvv.initials.xz:vvv

LOCALES_FIX_CONFIGURE_ON= --enable-locales-fix

MAILDIR_MTIME_PATCH_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-maildir-mtime

NCURSES_USES= ncurses

NLS_IMPLIES= ICONV
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls

REVERSE_REPLY_PATCH_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-reverse_reply

SASL_CYRUS_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_CYRUS_CONFIGURE_WITH= sasl=${LOCALBASE}
SASL_GSASL_LIB_DEPENDS= libgsasl.so:security/libgsasl
Expand All @@ -189,26 +160,12 @@ SLANG_LIB_DEPENDS= libslang.so:devel/libslang2
SLANG_CONFIGURE_ON= --with-slang=${LOCALBASE}
SLANG_VARS= PKGMESSAGE+=${FILESDIR}/pkg-message.slang

SMART_DATE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-smartdate

SMIME_EXTRA_PATCHES= ${PATCHDIR}/extra-smime-sender

SMTP_CONFIGURE_ENABLE= smtp

URLVIEW_RUN_DEPENDS= urlview:textproc/urlview

.ifnmake portclippy
.ifmake makesum # for optional distfiles patchfiles
OPTIONS_OVERRIDE= ${OPTIONS_DEFAULT} ${OPTIONS_DEFINE}
.MAKEOVERRIDES+= OPTIONS_OVERRIDE
.endif
.endif

.include <bsd.port.options.mk>

VVV_PATCH_VERSION= 1.13.0
GREETING_PATCH_VERSION= 2.2.0

post-install:
${INSTALL_MAN} ${FILESDIR}/mailcap.5 ${STAGEDIR}${MANPREFIX}/man/man5

Expand All @@ -221,7 +178,7 @@ pre-configure::
@${REINPLACE_CMD} -e 's,?eimdal\*),?eimdal*|\"FreeBSD heimdal\"*),' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
# Install contrib samples to ${EXAMPLESDIR}
@${REINPLACE_CMD} -e 's#$$(docdir)/samples#${EXAMPLESDIR}#g' \
@${REINPLACE_CMD} -e 's,$$(docdir)/samples,${EXAMPLESDIR},g' \
${WRKSRC}/contrib/Makefile.in

# Undo some dist. installed files
Expand Down
77 changes: 0 additions & 77 deletions mail/mutt/files/extra-patch-ifdef

This file was deleted.

52 changes: 0 additions & 52 deletions mail/mutt/files/extra-patch-maildir-mtime

This file was deleted.

18 changes: 0 additions & 18 deletions mail/mutt/files/extra-patch-quote

This file was deleted.

93 changes: 0 additions & 93 deletions mail/mutt/files/extra-patch-reverse_reply

This file was deleted.

0 comments on commit ee5c580

Please sign in to comment.