# $Id: Portfile 57238 2009-09-08 00:54:43Z macsforever2000@macports.org $ PortSystem 1.0 name mutt-devel version 1.5.20 categories mail platforms darwin maintainers simon openmaintainer description Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc) long_description Mutt -- "The Mongrel of Mail User Agents" (part Elm, \ part Pine, part mh, part slrn, part everything else) is \ an interactive screen-oriented mailer program that \ supersedes Elm, Pine, mail and mailx. Features include \ color support, message threading, MIME support \ (including RFC1522 support for encoded headers), \ customizable key bindings, POP3, Delivery Status \ Notification (DSN) support, PGP/MIME, and S/MIME. homepage http://www.mutt.org/ master_sites ftp://ftp.mutt.org/mutt/devel/ distname mutt-${version} checksums ${distfiles} \ md5 027cdd9959203de0c3c64149a7ee351c \ sha1 d2bec7a33771f128ca49b1723b06b6d248a35d31 \ rmd160 df582f79364b9fd70a0001e76a119d8f78275ebb depends_lib port:gettext \ port:libiconv \ port:ncurses patch.args -p1 configure.args --disable-warnings \ --mandir=${prefix}/share/man \ --with-docdir=${prefix}/share/doc/mutt \ --with-libiconv-prefix=${prefix} \ --with-curses=${prefix} default_variants +pop +imap if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} { variant_set gdbm } 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.20/ patchfiles-append patch-1.5.20.rr.compressed.gz checksums-append patch-1.5.20.rr.compressed.gz md5 \ 5e608027bda1fddc2bc38c03a560f0a9 } 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 --enable-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 --enable-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 --enable-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.20/ patchfiles-append patch-1.5.20.vvv.nntp.gz checksums-append patch-1.5.20.vvv.nntp.gz md5 \ 80355166f8ae9bff064124f2d2e6870f } 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 } # FIXME: doesn't apply #variant xlabel description {Custom message-tagging - X-Label:} { # patch_sites-append http://home.uchicago.edu/~dgc/sw/mutt/ # patchfiles-append patch-1.5.14.dgc.xlabel_ext.9 # checksums-append patch-1.5.14.dgc.xlabel_ext.9 md5 \ # c5badc733020187b6677f31b343195e8 #} # 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 patch_sites-append http://lunar-linux.org/~tchan/mutt/ patchfiles-append patch-1.5.20.sidebar.20090619.txt checksums-append patch-1.5.20.sidebar.20090619.txt md5 \ 5786519489877c92e4fff68cf547e869 } variant trash description {Add a Trash folder} { patchfiles-append patch-1.5.20.cd.trash_folder.diff \ patch-1.5.20.cd.purge_message.diff } variant gpgme description {Enable GPGME crypto support} { configure.args-append --enable-gpgme --with-gpgme-prefix=${prefix} depends_lib-append port:gpgme } livecheck.check regex livecheck.regex {Mutt (\d+(?:\.\d+)*) was released}