# $Id: Portfile 49882 2009-04-19 13:55:56Z simon@macports.org $ PortSystem 1.0 name mutt-devel version 1.5.19 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 73b3747bc7f7c805921e8d24ebac693f \ sha1 96e4cc1e1419ba816fcc19d77255978e62c20793 \ rmd160 dcb8d027593bfccd62eb7aba338007bce3c7e22e 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_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.spinnaker.de/mutt/compressed/ patchfiles-append patch-1.5.19.rr.compressed.1.gz checksums-append patch-1.5.19.rr.compressed.1.gz md5 \ 7e4e8a547763d217351846f31599019e } variant headercache conflicts db4 description {Enable header caching (requires gdbm or qdbm)} { configure.args-append --enable-hcache configure.ldflags-append "-L/usr/lib" } variant qdbm conflicts db4 gdbm description {Use QDBM database} { depends_lib-append port:qdbm configure.args-append --enable-qdbm --without-bdb --without-gdbm } variant gdbm conflicts db4 qdbm description {Use GNU dbm database} { depends_lib-append port:gdbm configure.args-append --enable-gdbm --without-bdb --without-qdbm } variant db4 conflicts qdbm gdbm description {Use Berkeley DB database} { depends_lib-append port:db44 configure.args-append --with-bdb=${prefix} --without-qdbm --without-gdbm configure.cppflags-append "-I${prefix}/include/db44" configure.ldflags-append "-L${prefix}/lib/db44" } # 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.19/ patchfiles-append patch-1.5.19.vvv.nntp.gz checksums-append patch-1.5.19.vvv.nntp.gz md5 \ 1e2ad0cb9b918f8382537752df0c9958 } 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 } # FIXME: doesn't apply #variant trash description {Add a Trash folder} { # patchfiles-append patch-trash-1.5.16.diff \ # patch-1.5.17.cd.purge_message.bk.1.diff #} 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.19.sidebar.20090308.txt checksums-append patch-1.5.19.sidebar.20090308.txt md5 \ 601f9f7ee46653f138cc53e5ff444cd2 } 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}