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

Last change on this file since 57238 was 57238, checked in by macsforever2000@…, 8 years ago

Added trash variant. (#20412)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.3 KB
Line 
1# $Id: Portfile 57238 2009-09-08 00:54:43Z macsforever2000@macports.org $
2
3PortSystem          1.0
4
5name                mutt-devel
6version             1.5.20
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     027cdd9959203de0c3c64149a7ee351c \
25                        sha1    d2bec7a33771f128ca49b1723b06b6d248a35d31 \
26                        rmd160  df582f79364b9fd70a0001e76a119d8f78275ebb
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] && ![variant_isset tokyocabinet]} {
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.mutt.org.ua/download/mutt-1.5.20/
78    patchfiles-append       patch-1.5.20.rr.compressed.gz
79    checksums-append        patch-1.5.20.rr.compressed.gz md5 \
80                                5e608027bda1fddc2bc38c03a560f0a9
81}
82
83variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm, or tokyocabinet)} {
84    configure.args-append       --enable-hcache
85    configure.ldflags-append    "-L/usr/lib"
86}
87
88variant qdbm conflicts db4 gdbm tokyocabinet description {Use QDBM database} {
89    depends_lib-append      port:qdbm
90    configure.args-append   --enable-qdbm --without-bdb --without-gdbm --without-tokyocabinet
91}
92
93variant gdbm conflicts db4 qdbm tokyocabinet description {Use GNU dbm database} {
94    depends_lib-append      port:gdbm
95    configure.args-append   --enable-gdbm --without-bdb --without-qdbm --without-tokyocabinet
96}
97
98variant db4 conflicts qdbm gdbm tokyocabinet description {Use Berkeley DB database} {
99    depends_lib-append          port:db44
100    configure.args-append       --with-bdb=${prefix} --without-qdbm --without-gdbm --without-tokyocabinet
101    configure.cppflags-append   "-I${prefix}/include/db44"
102    configure.ldflags-append    "-L${prefix}/lib/db44"
103}
104
105variant tokyocabinet conflicts db4 gdbm qdbm description {Use Tokyo Cabinet database} {
106    depends_lib-append      port:tokyocabinet
107    configure.args-append   --enable-tokyocabinet --without-bdb --without-gdbm --without-qdbm
108}
109
110# The patches for nntp and sidebar conflict, see ticket #15135
111variant nntp conflicts sidebar description {NNTP support} {
112    configure.args-append   --enable-nntp
113    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.20/
114    patchfiles-append       patch-1.5.20.vvv.nntp.gz
115    checksums-append        patch-1.5.20.vvv.nntp.gz md5 \
116                                80355166f8ae9bff064124f2d2e6870f
117}
118
119variant deepif description {Allow nested if-else sequences in strings} {
120    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
121    patchfiles-append       patch-1.5.8.dgc.deepif.1
122    checksums-append        patch-1.5.8.dgc.deepif.1 md5 \
123                                b892597eff7b60c450b48c011ab941cb
124}
125
126# whoa! messy FAIL
127#variant unbind description {Undo stroke and macro bindings} {
128#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
129#    patchfiles-append       patch-1.5.6.dgc.unbind.1
130#    checksums-append        patch-1.5.6.dgc.unbind.1 md5 \
131#                                47a1f47382b33f4cc5ce89de1cfea4e1
132#}
133
134variant date_conditional requires deepif description \
135    {Allow the format of dates in the index to vary based on how recent the message is} {
136    # original, but now dgc hosts it with -p1
137    #patch_sites-append http://www.schrab.com/aaron/mutt/
138    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
139    patchfiles-append       patch-1.5.8.ats.date_conditional.1
140    checksums-append        patch-1.5.8.ats.date_conditional.1 md5 \
141                                83479a011390802b3f9f1c0f95b15199
142}
143
144# FIXME: doesn't apply
145#variant xlabel description {Custom message-tagging - X-Label:} {
146#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
147#    patchfiles-append       patch-1.5.14.dgc.xlabel_ext.9
148#    checksums-append        patch-1.5.14.dgc.xlabel_ext.9 md5 \
149#                                c5badc733020187b6677f31b343195e8
150#}
151
152# patch_site appears to be dead, can re-enable the variant if a working one is found
153#variant checkseen {
154#    patch_sites-append      http://www.neuronix.cz/coding/mutt_imap/
155#    patchfiles-append       imap_checkseen_1.5.11.patch
156#    checksums-append        imap_checkseen_1.5.11.patch md5 \
157#                                37e49d7203149027e30e28a7bc74c365
158#}
159
160variant smtp description {Include internal SMTP relay support} {
161    configure.args-append   --enable-smtp
162}
163
164variant sidebar conflicts nntp description {Add a sidebar with a list of folders} {
165    # http://www.lunar-linux.org/index.php/en/component/content/article/44-mutt-sidebar.html
166    patch_sites-append      http://lunar-linux.org/~tchan/mutt/
167    patchfiles-append       patch-1.5.20.sidebar.20090619.txt
168    checksums-append        patch-1.5.20.sidebar.20090619.txt md5 \
169                                5786519489877c92e4fff68cf547e869
170}
171
172variant trash description {Add a Trash folder} {
173    patchfiles-append       patch-1.5.20.cd.trash_folder.diff \
174                            patch-1.5.20.cd.purge_message.diff
175}
176
177variant gpgme description {Enable GPGME crypto support} {
178    configure.args-append   --enable-gpgme --with-gpgme-prefix=${prefix}
179    depends_lib-append      port:gpgme
180}
181
182livecheck.check     regex
183livecheck.regex     {Mutt (\d+(?:\.\d+)*) was released}
Note: See TracBrowser for help on using the repository browser.