source: trunk/dports/mail/mutt-devel/Portfile @ 49882

Last change on this file since 49882 was 49882, checked in by simon@…, 11 years ago

mutt/devel: Reactivate sidebar patch, thanks to frodwith@…. Closes #18942 and #19133.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.0 KB
Line 
1# $Id: Portfile 49882 2009-04-19 13:55:56Z simon@macports.org $
2
3PortSystem          1.0
4
5name                mutt-devel
6version             1.5.19
7categories          mail
8platforms           darwin
9maintainers         simon openmaintainer
10description         Mongrel of Mail User Agents (part Elm, Pine, Mush, mh, etc)
11long_description    Mutt -- "The Mongrel of Mail User Agents" (part Elm, \
12                    part Pine, part mh, part slrn, part everything else) is \
13                    an interactive screen-oriented mailer program that \
14                    supersedes Elm, Pine, mail and mailx.  Features include \
15                    color support, message threading, MIME support \
16                    (including RFC1522 support for encoded headers), \
17                    customizable key bindings, POP3, Delivery Status \
18                    Notification (DSN) support, PGP/MIME, and S/MIME.
19
20homepage            http://www.mutt.org/
21master_sites        ftp://ftp.mutt.org/mutt/devel/
22distname            mutt-${version}
23checksums           ${distfiles} \
24                        md5 73b3747bc7f7c805921e8d24ebac693f \
25                        sha1 96e4cc1e1419ba816fcc19d77255978e62c20793 \
26                        rmd160 dcb8d027593bfccd62eb7aba338007bce3c7e22e
27
28depends_lib         port:gettext \
29                    port:libiconv \
30                    port:ncurses
31
32patch.args          -p1
33
34configure.args      --disable-warnings \
35                    --mandir=${prefix}/share/man \
36                    --with-docdir=${prefix}/share/doc/mutt \
37                    --with-libiconv-prefix=${prefix} \
38                    --with-curses=${prefix}
39
40default_variants    +pop +imap
41
42
43if {![variant_isset db4] && ![variant_isset qdbm]} {
44        variant_set gdbm
45}
46
47variant idn description {Internationalized Domain Name support} {
48    configure.args-append   --with-idn=${prefix}
49    depends_lib-append      port:libidn port:zlib
50}
51
52variant pop description {POP support} {
53    configure.args-append   --enable-pop
54}
55variant imap description {IMAP support} {
56    configure.args-append   --enable-imap
57}
58variant ssl description {Secure Sockets Layer support} {
59    configure.args-append   --with-ssl=${prefix}
60    depends_lib-append      port:openssl
61}
62variant sasl description {Simple Authentication and Security Layer support} {
63    configure.args-append   --with-sasl=${prefix}
64    depends_lib-append      port:cyrus-sasl2
65}
66
67variant debug description {Debugging support} {
68    configure.args-append   --enable-debug
69}
70
71variant gnuregex description {Use the GNU regular expression library} {
72    configure.args-append   --with-regex
73}
74
75variant compress description {Compressed folders} {
76    configure.args-append   --enable-compressed
77    patch_sites-append      http://www.spinnaker.de/mutt/compressed/
78    patchfiles-append       patch-1.5.19.rr.compressed.1.gz
79    checksums-append        patch-1.5.19.rr.compressed.1.gz md5 \
80                                7e4e8a547763d217351846f31599019e
81}
82
83variant headercache conflicts db4 description {Enable header caching (requires gdbm or qdbm)} {
84    configure.args-append       --enable-hcache
85    configure.ldflags-append    "-L/usr/lib"
86}
87
88variant qdbm conflicts db4 gdbm description {Use QDBM database} {
89    depends_lib-append      port:qdbm
90    configure.args-append   --enable-qdbm --without-bdb --without-gdbm
91}
92
93variant gdbm conflicts db4 qdbm description {Use GNU dbm database} {
94    depends_lib-append      port:gdbm
95    configure.args-append   --enable-gdbm --without-bdb --without-qdbm
96}
97
98variant db4 conflicts qdbm gdbm description {Use Berkeley DB database} {
99    depends_lib-append          port:db44
100    configure.args-append       --with-bdb=${prefix} --without-qdbm --without-gdbm
101    configure.cppflags-append   "-I${prefix}/include/db44"
102    configure.ldflags-append    "-L${prefix}/lib/db44"
103}
104
105# The patches for nntp and sidebar conflict, see ticket #15135
106variant nntp conflicts sidebar description {NNTP support} {
107    configure.args-append   --enable-nntp
108    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.19/
109    patchfiles-append       patch-1.5.19.vvv.nntp.gz
110    checksums-append        patch-1.5.19.vvv.nntp.gz md5 \
111                                1e2ad0cb9b918f8382537752df0c9958
112}
113
114variant deepif description {Allow nested if-else sequences in strings} {
115    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
116    patchfiles-append       patch-1.5.8.dgc.deepif.1
117    checksums-append        patch-1.5.8.dgc.deepif.1 md5 \
118                                b892597eff7b60c450b48c011ab941cb
119}
120
121# whoa! messy FAIL
122#variant unbind description {Undo stroke and macro bindings} {
123#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
124#    patchfiles-append       patch-1.5.6.dgc.unbind.1
125#    checksums-append        patch-1.5.6.dgc.unbind.1 md5 \
126#                                47a1f47382b33f4cc5ce89de1cfea4e1
127#}
128
129variant date_conditional requires deepif description \
130    {Allow the format of dates in the index to vary based on how recent the message is} {
131    # original, but now dgc hosts it with -p1
132    #patch_sites-append http://www.schrab.com/aaron/mutt/
133    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
134    patchfiles-append       patch-1.5.8.ats.date_conditional.1
135    checksums-append        patch-1.5.8.ats.date_conditional.1 md5 \
136                                83479a011390802b3f9f1c0f95b15199
137}
138
139# FIXME: doesn't apply
140#variant xlabel description {Custom message-tagging - X-Label:} {
141#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
142#    patchfiles-append       patch-1.5.14.dgc.xlabel_ext.9
143#    checksums-append        patch-1.5.14.dgc.xlabel_ext.9 md5 \
144#                                c5badc733020187b6677f31b343195e8
145#}
146
147# patch_site appears to be dead, can re-enable the variant if a working one is found
148#variant checkseen {
149#    patch_sites-append      http://www.neuronix.cz/coding/mutt_imap/
150#    patchfiles-append       imap_checkseen_1.5.11.patch
151#    checksums-append        imap_checkseen_1.5.11.patch md5 \
152#                                37e49d7203149027e30e28a7bc74c365
153#}
154
155variant smtp description {Include internal SMTP relay support} {
156    configure.args-append   --enable-smtp
157}
158
159# FIXME: doesn't apply
160#variant trash description {Add a Trash folder} {
161#    patchfiles-append       patch-trash-1.5.16.diff \
162#                            patch-1.5.17.cd.purge_message.bk.1.diff
163#}
164
165variant sidebar conflicts nntp description {Add a sidebar with a list of folders} {
166    # http://www.lunar-linux.org/index.php/en/component/content/article/44-mutt-sidebar.html
167    patch_sites-append      http://lunar-linux.org/~tchan/mutt/
168    patchfiles-append       patch-1.5.19.sidebar.20090308.txt
169    checksums-append        patch-1.5.19.sidebar.20090308.txt md5 \
170                                601f9f7ee46653f138cc53e5ff444cd2
171}
172
173variant gpgme description {Enable GPGME crypto support} {
174    configure.args-append   --enable-gpgme --with-gpgme-prefix=${prefix}
175    depends_lib-append      port:gpgme
176}
177
178livecheck.check     regex
179livecheck.regex     {Mutt (\d+(?:\.\d+)*) was released}
Note: See TracBrowser for help on using the repository browser.