aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-04-25 01:33:29 +0800
committerjgh <jgh@FreeBSD.org>2013-04-25 01:33:29 +0800
commite99a486e614288714b4306c61e7958d66ec15842 (patch)
tree1a36726c4deaa5cc6501b570af84415d57c784dd /mail
parent22e3452817c7a344208dcce7ec46772a537caba9 (diff)
downloadfreebsd-ports-gnome-e99a486e614288714b4306c61e7958d66ec15842.tar.gz
freebsd-ports-gnome-e99a486e614288714b4306c61e7958d66ec15842.tar.zst
freebsd-ports-gnome-e99a486e614288714b4306c61e7958d66ec15842.zip
- fix NOPORTDOCS
- add GSSAPI option - while here adopt uses for GETTEXT PR: 177903 Submitted by: koukopoulos@gmail.com, Udo.Schweigert@siemens.com Approved by: maintainer, Udo.Schweigert@siemens.com
Diffstat (limited to 'mail')
-rw-r--r--mail/mutt/Makefile44
-rw-r--r--mail/mutt/files/extra-patch-nodoc-contrib10
-rw-r--r--mail/mutt/files/extra-patch-nodoc-mailbox-contrib28
3 files changed, 60 insertions, 22 deletions
diff --git a/mail/mutt/Makefile b/mail/mutt/Makefile
index 88b992615a42..c65e406a6f9a 100644
--- a/mail/mutt/Makefile
+++ b/mail/mutt/Makefile
@@ -9,7 +9,7 @@
PORTNAME= mutt
PORTVERSION= 1.5.21
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES+= mail ipv6
MASTER_SITES= ftp://ftp.mutt.org/mutt/devel/ \
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/devel/ \
@@ -60,7 +60,7 @@ LITE= YES
.endif
.if !defined (LITE)
OPTIONS_DEFINE= COMPRESSED_FOLDERS SASL DEBUG FLOCK \
- GPGME GREETING_PATCH HTML ICONV IDN IFDEF_PATCH \
+ GPGME GREETING_PATCH GSSAPI HTML ICONV IDN IFDEF_PATCH \
IMAP_HEADER_CACHE LOCALES_FIX MAILBOX_MANPAGES \
MAILDIR_HEADER_CACHE MAILDIR_MTIME_PATCH \
NNTP PARENT_CHILD_MATCH_PATCH \
@@ -79,6 +79,7 @@ DEBUG_DESC= Debugging capabilities
FLOCK_DESC= flock() usage
GPGME_DESC= Gpgme interface
GREETING_PATCH_DESC= Greeting support
+GSSAPI_DESC= Use the gss API
HTML_DESC= HTML documentation
IFDEF_PATCH_DESC= ifdef feature
IMAP_HEADER_CACHE_DESC= IMAP header cache
@@ -176,7 +177,7 @@ XML_USED= no
.endif
.if ${PORT_OPTIONS:MNLS}
-USE_GETTEXT= yes
+USES+= gettext
SCRIPTS_ENV+= NLS="yes"
.else
CONFIGURE_ARGS+= --disable-nls
@@ -412,16 +413,28 @@ SCRIPTS_ENV+= SIDEBAR_PATCH="yes"
SCRIPTS_ENV+= IFDEF_PATCH="yes"
.endif
+.if ${PORT_OPTIONS:MREVERSE_REPLY_PATCH}
+SCRIPTS_ENV+= REVERSE_REPLY_PATCH="yes"
+.endif
+
+.if defined (XML_NEEDED) && ${PORT_OPTIONS:MXML}
+XML_USED= yes
+.endif
.if ${PORT_OPTIONS:MHTML}
-SCRIPTS_ENV+= HTML="yes"
+XML_USED= yes
.endif
-.if ${PORT_OPTIONS:MREVERSE_REPLY_PATCH}
-SCRIPTS_ENV+= REVERSE_REPLY_PATCH="yes"
+.if ${PORT_OPTIONS:MDOCS} || ${XML_USED} == yes
+INSTALL_DOCS= yes
+.else
+INSTALL_DOCS= no
.endif
-.if ${PORT_OPTIONS:MDOCS}
+.if ${INSTALL_DOCS} == yes
SCRIPTS_ENV+= PORTDOCS="yes"
+.if ${PORT_OPTIONS:MHTML}
+SCRIPTS_ENV+= HTML="yes"
+.endif
post-build:
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref
@${REINPLACE_CMD} -E -e 's|\$$\{PREFIX\}|${PREFIX}|g' \
@@ -432,17 +445,14 @@ post-build:
-e 's|\$$\{DOCSDIR\}|${DOCSDIR}|g' \
-e 's|\$$\{EXAMPLESDIR\}|${EXAMPLESDIR}|g' \
${WRKSRC}/doc/muttrc.man
-
-.if ${PORT_OPTIONS:MHTML}
-XML_USED= yes
-.endif
-.if defined(XML_NEEDED) && ${PORT_OPTIONS:MXML}
-XML_USED= yes
-.endif
-.else # ! DOCS
+.else # ! INSTALL_DOCS
post-patch::
+.if ${PORT_OPTIONS:MMAILBOX_MANPAGES}
+ @${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-nodoc-mailbox-contrib
+.else
@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-nodoc-contrib
-.endif # ! DOCS
+.endif
+.endif # ! INSTALL_DOCS
.if ${XML_USED} == yes
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
@@ -457,7 +467,7 @@ pre-install:
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/Muttrc ${PREFIX}/etc/Muttrc.dist
-.if ${PORT_OPTIONS:MDOCS}
+.if ${INSTALL_DOCS} == yes
@${ECHO} "===> Installing Mutt documentation"
@${MKDIR} ${DOCSDIR} && ${CHMOD} a+rx ${DOCSDIR}
@cd ${WRKSRC}/doc ; ${INSTALL_MAN} manual.txt PGP-Notes.txt \
diff --git a/mail/mutt/files/extra-patch-nodoc-contrib b/mail/mutt/files/extra-patch-nodoc-contrib
index 3a079bb2cdeb..1aee6bf0d7ba 100644
--- a/mail/mutt/files/extra-patch-nodoc-contrib
+++ b/mail/mutt/files/extra-patch-nodoc-contrib
@@ -9,12 +9,12 @@
bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@
---- doc/Makefile.am.orig 2008-05-19 19:43:38.000000000 +0200
-+++ doc/Makefile.am 2008-05-19 19:45:35.000000000 +0200
-@@ -60,14 +60,6 @@
+--- doc/Makefile.am.orig 2013-04-22 10:10:43.000000000 +0200
++++ doc/Makefile.am 2013-04-22 10:11:30.000000000 +0200
+@@ -57,14 +57,6 @@
+ test x@DOTLOCK_TARGET@ = x || ./instdoc $(srcdir)/dotlock.man \
+ $(DESTDIR)$(mandir)/man1/mutt_dotlock.1
./instdoc muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5
- ./instdoc $(srcdir)/mbox.man $(DESTDIR)$(mandir)/man5/mbox.5
- ./instdoc $(srcdir)/mmdf.man $(DESTDIR)$(mandir)/man5/mmdf.5
- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)
- for f in $(topsrcdir_DOCFILES) ; do \
- $(INSTALL) -m 644 $(top_srcdir)/$$f $(DESTDIR)$(docdir) ; \
diff --git a/mail/mutt/files/extra-patch-nodoc-mailbox-contrib b/mail/mutt/files/extra-patch-nodoc-mailbox-contrib
new file mode 100644
index 000000000000..3a079bb2cdeb
--- /dev/null
+++ b/mail/mutt/files/extra-patch-nodoc-mailbox-contrib
@@ -0,0 +1,28 @@
+--- Makefile.am.orig Fri Feb 11 14:54:08 2005
++++ Makefile.am Fri Feb 11 14:55:33 2005
+@@ -10,7 +10,7 @@
+ IMAP_INCLUDES = -I$(top_srcdir)/imap
+ endif
+
+-SUBDIRS = m4 po intl contrib $(IMAP_SUBDIR) . doc
++SUBDIRS = m4 po intl $(IMAP_SUBDIR) . doc
+
+ bin_SCRIPTS = muttbug flea @SMIMEAUX_TARGET@
+
+--- doc/Makefile.am.orig 2008-05-19 19:43:38.000000000 +0200
++++ doc/Makefile.am 2008-05-19 19:45:35.000000000 +0200
+@@ -60,14 +60,6 @@
+ ./instdoc muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5
+ ./instdoc $(srcdir)/mbox.man $(DESTDIR)$(mandir)/man5/mbox.5
+ ./instdoc $(srcdir)/mmdf.man $(DESTDIR)$(mandir)/man5/mmdf.5
+- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)
+- for f in $(topsrcdir_DOCFILES) ; do \
+- $(INSTALL) -m 644 $(top_srcdir)/$$f $(DESTDIR)$(docdir) ; \
+- done
+- for f in $(srcdir_DOCFILES) ; do \
+- $(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir) ; \
+- done
+- -$(INSTALL) -m 644 manual.txt $(DESTDIR)$(docdir)
+ $(INSTALL) -m 644 Muttrc $(DESTDIR)$(sysconfdir)/Muttrc.dist
+ -if [ -f $(DESTDIR)$(pkgdatadir)/Muttrc ] ; then \
+ mv $(DESTDIR)$(pkgdatadir)/Muttrc* $(DESTDIR)$(sysconfdir) ; \