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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 8.6 KB
Line 
1# -*- 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
2# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem          1.0
5
6name                mutt-devel
7conflicts           mutt
8version             1.5.23
9revision            3
10categories          mail
11platforms           darwin
12license             GPL-2
13maintainers         nomaintainer
14
15description         The Mutt E-Mail Client
16long_description    Mutt is a small but very powerful text-based MIME \
17                    mail client. Mutt is highly configurable, and is \
18                    well suited to the mail power user with advanced \
19                    features like key bindings, keyboard macros, mail \
20                    threading, regular expression searches and \
21                    a powerful pattern matching language for selecting \
22                    groups of messages.
23homepage            http://www.mutt.org/
24
25depends_lib         port:gettext \
26                    port:libiconv \
27                    port:ncurses
28
29depends_run         path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
30
31master_sites        https://bitbucket.org/mutt/mutt/downloads/
32distname            mutt-${version}
33checksums           ${distfiles} \
34                        md5     11f5b6a3eeba1afa1257fe93c9f26bff \
35                        sha1    8ac821d8b1e25504a31bf5fda9c08d93a4acc862 \
36                        rmd160  2476a9e202ab1cd20a512253246e37538e0aad5a
37
38patch.args          -p1
39# Fix handling of smime
40# http://dev.mutt.org/trac/ticket/3639
41patchfiles-append   patch-1.5.20.crypt.c.diff
42# Fix for handling emails from bad clients w.r.t smime
43patchfiles-append   patch-thunderbird-fix.diff
44# Fix smime_keys
45patchfiles-append   patch-smime_keys.diff
46
47
48configure.args      --disable-warnings \
49                    --mandir=${prefix}/share/man \
50                    --with-docdir=${prefix}/share/doc/mutt \
51                    --with-libiconv-prefix=${prefix} \
52                    --with-curses=${prefix} \
53                    --disable-silent-rules
54
55default_variants    +pop +imap
56
57if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} {
58    variant_set     gdbm
59}
60
61# These variants' patches modify Makefile.am
62if {[variant_isset compress] || [variant_isset sidebar]} {
63    use_autoreconf  yes
64}
65
66post-destroot {
67    # delete pgpring to avoid a conflict with signing-party
68    delete ${destroot}${prefix}/bin/pgpring ${destroot}${prefix}/share/man/man1/pgpring.1
69    # delete horribly outdated ca bundle, I hope people weren't using that!
70    delete ${destroot}${prefix}/share/doc/mutt/samples/ca-bundle.crt
71}
72
73variant idn description {Internationalized Domain Name support} {
74    configure.args-append   --with-idn=${prefix}
75    depends_lib-append      port:libidn port:zlib
76}
77
78variant pop description {POP support} {
79    configure.args-append   --enable-pop
80}
81variant imap description {IMAP support} {
82    configure.args-append   --enable-imap
83}
84variant ssl description {Secure Sockets Layer support} {
85    configure.args-append   --with-ssl=${prefix}
86    depends_lib-append      path:lib/libssl.dylib:openssl
87}
88variant sasl description {Simple Authentication and Security Layer support} {
89    configure.args-append   --with-sasl=${prefix}
90    depends_lib-append      port:cyrus-sasl2
91}
92
93variant debug description {Debugging support} {
94    configure.args-append   --enable-debug
95}
96
97variant gnuregex description {Use the GNU regular expression library} {
98    configure.args-append   --with-regex
99}
100
101variant compress description {Compressed folders} {
102    configure.args-append   --enable-compressed
103    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.23/
104    patchfiles-append       patch-1.5.23.rr.compressed.gz
105    checksums-append        patch-1.5.23.rr.compressed.gz \
106                                md5 ff4af5d5b91d58930d06edcea3c34936
107}
108
109variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm, or tokyocabinet)} {
110    configure.args-append       --enable-hcache
111    configure.ldflags-append    "-L/usr/lib"
112}
113
114variant qdbm conflicts db4 gdbm tokyocabinet description {Use QDBM database} {
115    depends_lib-append      port:qdbm
116    configure.args-append   --with-qdbm \
117                            --without-bdb \
118                            --without-gdbm \
119                            --without-tokyocabinet
120}
121
122variant gdbm conflicts db4 qdbm tokyocabinet description {Use GNU dbm database} {
123    depends_lib-append      port:gdbm
124    configure.args-append   --with-gdbm \
125                            --without-bdb \
126                            --without-qdbm \
127                            --without-tokyocabinet
128}
129
130variant db4 conflicts qdbm gdbm tokyocabinet description {Use Berkeley DB database} {
131    depends_lib-append          port:db44
132    configure.args-append       --with-bdb=${prefix} \
133                                --without-qdbm \
134                                --without-gdbm \
135                                --without-tokyocabinet
136    configure.cppflags-append   "-I${prefix}/include/db44"
137    configure.ldflags-append    "-L${prefix}/lib/db44"
138}
139
140variant tokyocabinet conflicts db4 gdbm qdbm description {Use Tokyo Cabinet database} {
141    depends_lib-append      port:tokyocabinet
142    configure.args-append   --with-tokyocabinet \
143                            --without-bdb \
144                            --without-gdbm \
145                            --without-qdbm
146}
147
148# The patches for nntp and sidebar conflict, see ticket #15135
149variant nntp conflicts sidebar description {NNTP support} {
150    configure.args-append   --enable-nntp
151    patch_sites-append      http://www.mutt.org.ua/download/mutt-1.5.21/
152    patchfiles-append       patch-1.5.21.vvv.nntp.gz
153    checksums-append        patch-1.5.21.vvv.nntp.gz \
154                                md5 afcf40f7e53a016b953cbf6af27b3cd8
155}
156
157variant deepif description {Allow nested if-else sequences in strings} {
158    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
159    patchfiles-append       patch-1.5.8.dgc.deepif.1
160    checksums-append        patch-1.5.8.dgc.deepif.1 \
161                                md5 b892597eff7b60c450b48c011ab941cb
162}
163
164# whoa! messy FAIL
165#variant unbind description {Undo stroke and macro bindings} {
166#    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
167#    patchfiles-append       patch-1.5.6.dgc.unbind.1
168#    checksums-append        patch-1.5.6.dgc.unbind.1 md5 \
169#                                47a1f47382b33f4cc5ce89de1cfea4e1
170#}
171
172variant date_conditional requires deepif description \
173    {Allow the format of dates in the index to vary based on how recent the message is} {
174    # original, but now dgc hosts it with -p1
175    #patch_sites-append http://www.schrab.com/aaron/mutt/
176    patch_sites-append      http://home.uchicago.edu/~dgc/sw/mutt/
177    patchfiles-append       patch-1.5.8.ats.date_conditional.1
178    checksums-append        patch-1.5.8.ats.date_conditional.1 \
179                                md5 83479a011390802b3f9f1c0f95b15199
180}
181
182variant xlabel description {Custom message-tagging - X-Label:} {
183    patchfiles-append       patch-1.5.21.mp.xlabel_ext.9
184}
185
186# patch_site appears to be dead, can re-enable the variant if a working one is found
187#variant checkseen {
188#    patch_sites-append      http://www.neuronix.cz/coding/mutt_imap/
189#    patchfiles-append       imap_checkseen_1.5.11.patch
190#    checksums-append        imap_checkseen_1.5.11.patch md5 \
191#                                37e49d7203149027e30e28a7bc74c365
192#}
193
194variant smtp description {Include internal SMTP relay support} {
195    configure.args-append   --enable-smtp
196}
197
198variant sidebar conflicts nntp description {Add a sidebar with a list of folders} {
199    # http://www.lunar-linux.org/index.php/en/component/content/article/44-mutt-sidebar.html
200    patchfiles-append       patch-1.5.23.sidebar.20140412.diff
201}
202
203variant trash description {Add a Trash folder} {
204    patchfiles-append       patch-1.5.20.bk.trash_folder-purge_message.1
205}
206
207variant gpgme description {Enable GPGME crypto support} {
208    configure.args-append   --enable-gpgme \
209                            --with-gpgme-prefix=${prefix}
210    depends_lib-append      port:gpgme
211
212    # the following patch makes mutt 1.5.20 compatible with gpgme 1.2.0,
213    # cf. http://bugs.gentoo.org/show_bug.cgi?id=278394
214    # and http://dev.mutt.org/trac/ticket/3300
215    patchfiles-append       patch-1.5.20.gpgme.diff
216    checksums-append        patch-1.5.20.gpgme.diff \
217                                md5 6faa84e2520dad7c603e8a8b9e0a9b30
218}
219
220notes "This port no longer installs the pgpring binary. Please install the signing-party port if you need it."
221
222livecheck.type      regex
223livecheck.regex     {Mutt (\d+(?:\.\d+)*) was released}
Note: See TracBrowser for help on using the repository browser.