# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name mutt-devel conflicts mutt version 1.5.23 revision 3 categories mail platforms darwin license GPL-2 maintainers nomaintainer description The Mutt E-Mail Client long_description Mutt is a small but very powerful text-based MIME \ mail client. Mutt is highly configurable, and is \ well suited to the mail power user with advanced \ features like key bindings, keyboard macros, mail \ threading, regular expression searches and \ a powerful pattern matching language for selecting \ groups of messages. homepage http://www.mutt.org/ depends_lib port:gettext \ port:libiconv \ port:ncurses depends_run path:share/curl/curl-ca-bundle.crt:curl-ca-bundle master_sites https://bitbucket.org/mutt/mutt/downloads/ distname mutt-${version} checksums ${distfiles} \ md5 11f5b6a3eeba1afa1257fe93c9f26bff \ sha1 8ac821d8b1e25504a31bf5fda9c08d93a4acc862 \ rmd160 2476a9e202ab1cd20a512253246e37538e0aad5a patch.args -p1 # Fix handling of smime # http://dev.mutt.org/trac/ticket/3639 patchfiles-append patch-1.5.20.crypt.c.diff # Fix for handling emails from bad clients w.r.t smime patchfiles-append patch-thunderbird-fix.diff # Fix smime_keys patchfiles-append patch-smime_keys.diff configure.args --disable-warnings \ --mandir=${prefix}/share/man \ --with-docdir=${prefix}/share/doc/mutt \ --with-libiconv-prefix=${prefix} \ --with-curses=${prefix} \ --disable-silent-rules default_variants +pop +imap if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} { variant_set gdbm } # These variants' patches modify Makefile.am if {[variant_isset compress] || [variant_isset sidebar]} { use_autoreconf yes } post-destroot { # delete pgpring to avoid a conflict with signing-party delete ${destroot}${prefix}/bin/pgpring ${destroot}${prefix}/share/man/man1/pgpring.1 # delete horribly outdated ca bundle, I hope people weren't using that! delete ${destroot}${prefix}/share/doc/mutt/samples/ca-bundle.crt } variant idn description {Internationalized Domain Name support} { configure.args-append --with-idn=${prefix} depends_lib-append port:libidn port:zlib } variant pop description {POP support} { configure.args-append --enable-pop } variant imap description {IMAP support} { configure.args-append --enable-imap } variant ssl description {Secure Sockets Layer support} { configure.args-append --with-ssl=${prefix} depends_lib-append port:openssl } variant sasl description {Simple Authentication and Security Layer support} { configure.args-append --with-sasl=${prefix} depends_lib-append port:cyrus-sasl2 } variant debug description {Debugging support} { configure.args-append --enable-debug } variant gnuregex description {Use the GNU regular expression library} { configure.args-append --with-regex } variant compress description {Compressed folders} { configure.args-append --enable-compressed patch_sites-append http://www.mutt.org.ua/download/mutt-1.5.23/ patchfiles-append patch-1.5.23.rr.compressed.gz checksums-append patch-1.5.23.rr.compressed.gz \ md5 ff4af5d5b91d58930d06edcea3c34936 } variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm, or tokyocabinet)} { configure.args-append --enable-hcache configure.ldflags-append "-L/usr/lib" } variant qdbm conflicts db4 gdbm tokyocabinet description {Use QDBM database} { depends_lib-append port:qdbm configure.args-append --with-qdbm \ --without-bdb \ --without-gdbm \ --without-tokyocabinet } variant gdbm conflicts db4 qdbm tokyocabinet description {Use GNU dbm database} { depends_lib-append port:gdbm configure.args-append --with-gdbm \ --without-bdb \ --without-qdbm \ --without-tokyocabinet } variant db4 conflicts qdbm gdbm tokyocabinet description {Use Berkeley DB database} { depends_lib-append port:db44 configure.args-append --with-bdb=${prefix} \ --without-qdbm \ --without-gdbm \ --without-tokyocabinet configure.cppflags-append "-I${prefix}/include/db44" configure.ldflags-append "-L${prefix}/lib/db44" } variant tokyocabinet conflicts db4 gdbm qdbm description {Use Tokyo Cabinet database} { depends_lib-append port:tokyocabinet configure.args-append --with-tokyocabinet \ --without-bdb \ --without-gdbm \ --without-qdbm } # The patches for nntp and sidebar conflict, see ticket #15135 variant nntp conflicts sidebar description {NNTP support} { configure.args-append --enable-nntp patch_sites-append http://www.mutt.org.ua/download/mutt-1.5.21/ patchfiles-append patch-1.5.21.vvv.nntp.gz checksums-append patch-1.5.21.vvv.nntp.gz \ md5 afcf40f7e53a016b953cbf6af27b3cd8 } variant deepif description {Allow nested if-else sequences in strings} { patch_sites-append http://home.uchicago.edu/~dgc/sw/mutt/ patchfiles-append patch-1.5.8.dgc.deepif.1 checksums-append patch-1.5.8.dgc.deepif.1 \ md5 b892597eff7b60c450b48c011ab941cb } # whoa! messy FAIL #variant unbind description {Undo stroke and macro bindings} { # patch_sites-append http://home.uchicago.edu/~dgc/sw/mutt/ # patchfiles-append patch-1.5.6.dgc.unbind.1 # checksums-append patch-1.5.6.dgc.unbind.1 md5 \ # 47a1f47382b33f4cc5ce89de1cfea4e1 #} variant date_conditional requires deepif description \ {Allow the format of dates in the index to vary based on how recent the message is} { # original, but now dgc hosts it with -p1 #patch_sites-append http://www.schrab.com/aaron/mutt/ patch_sites-append http://home.uchicago.edu/~dgc/sw/mutt/ patchfiles-append patch-1.5.8.ats.date_conditional.1 checksums-append patch-1.5.8.ats.date_conditional.1 \ md5 83479a011390802b3f9f1c0f95b15199 } variant xlabel description {Custom message-tagging - X-Label:} { patchfiles-append patch-1.5.21.mp.xlabel_ext.9 } # patch_site appears to be dead, can re-enable the variant if a working one is found #variant checkseen { # patch_sites-append http://www.neuronix.cz/coding/mutt_imap/ # patchfiles-append imap_checkseen_1.5.11.patch # checksums-append imap_checkseen_1.5.11.patch md5 \ # 37e49d7203149027e30e28a7bc74c365 #} variant smtp description {Include internal SMTP relay support} { configure.args-append --enable-smtp } variant sidebar conflicts nntp description {Add a sidebar with a list of folders} { # http://www.lunar-linux.org/index.php/en/component/content/article/44-mutt-sidebar.html patchfiles-append patch-1.5.23.sidebar.20140412.diff } variant trash description {Add a Trash folder} { patchfiles-append patch-1.5.20.bk.trash_folder-purge_message.1 } variant gpgme description {Enable GPGME crypto support} { configure.args-append --enable-gpgme \ --with-gpgme-prefix=${prefix} depends_lib-append port:gpgme # the following patch makes mutt 1.5.20 compatible with gpgme 1.2.0, # cf. http://bugs.gentoo.org/show_bug.cgi?id=278394 # and http://dev.mutt.org/trac/ticket/3300 patchfiles-append patch-1.5.20.gpgme.diff checksums-append patch-1.5.20.gpgme.diff \ md5 6faa84e2520dad7c603e8a8b9e0a9b30 } notes "This port no longer installs the pgpring binary. Please install the signing-party port if you need it." livecheck.type regex livecheck.regex {Mutt (\d+(?:\.\d+)*) was released}