Ticket #52264: Portfile

File Portfile, 5.3 KB (added by lbschenkel (Leonardo Brondani Schenkel), 8 years ago)
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 147581 2016-04-08 18:50:22Z cal@macports.org $
3
4PortSystem          1.0
5
6name                neomutt
7version             20160910
8categories          mail
9platforms           darwin
10license             GPL-2
11maintainers         leonardo@schenkel.net
12
13description         The Mutt E-Mail Client (patched version with added features)
14long_description    Mutt is a small but very powerful text-based MIME \
15                    mail client. Mutt is highly configurable, and is \
16                    well suited to the mail power user with advanced \
17                    features like key bindings, keyboard macros, mail \
18                    threading, regular expression searches and \
19                    a powerful pattern matching language for selecting \
20                    groups of messages.
21homepage            https://www.neomutt.org
22
23conflicts           mutt
24depends_lib         port:gettext \
25                    port:libiconv \
26                    port:ncurses
27
28depends_run         path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
29
30master_sites        https://github.com/neomutt/neomutt/archive/
31checksums           ${distfiles} \
32                    rmd160  f5a7d0c3d224ae9eeaa29a4bb9aa9b88d224258b \
33                    sha256  cc1159c7210a706db765b7198ac53405d25e7577ff9e5cd2f1d062964213798b
34
35worksrcdir          neomutt-neomutt-${version}
36use_autoreconf      yes
37configure.args      --disable-warnings \
38                    --mandir=${prefix}/share/man \
39                    --with-docdir=${prefix}/share/doc/mutt \
40                    --with-libiconv-prefix=${prefix} \
41                    --with-curses=${prefix} \
42                    --disable-silent-rules
43
44default_variants    +idn +imap +pop +ssl
45
46if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} {
47    variant_set     gdbm
48}
49
50post-destroot {
51    # delete pgpring to avoid a conflict with signing-party
52    delete ${destroot}${prefix}/bin/pgpring ${destroot}${prefix}/share/man/man1/pgpring.1
53    # delete horribly outdated ca bundle, I hope people weren't using that!
54    delete ${destroot}${prefix}/share/doc/mutt/samples/ca-bundle.crt
55}
56
57variant compress description {Compressed folders} {
58    configure.args-append   --enable-compressed
59}
60variant db4 conflicts qdbm gdbm tokyocabinet description {Use Berkeley DB database} {
61    depends_lib-append          port:db44
62    configure.args-append       --with-bdb=${prefix} \
63                                --without-qdbm \
64                                --without-gdbm \
65                                --without-tokyocabinet
66    configure.cppflags-append   "-I${prefix}/include/db44"
67    configure.ldflags-append    "-L${prefix}/lib/db44"
68}
69variant debug description {Debugging support} {
70    configure.args-append   --enable-debug
71}
72variant gdbm conflicts db4 qdbm tokyocabinet description {Use GNU dbm database} {
73    depends_lib-append      port:gdbm
74    configure.args-append   --with-gdbm \
75                            --without-bdb \
76                            --without-qdbm \
77                            --without-tokyocabinet
78}
79variant gnuregex description {Use the GNU regular expression library} {
80    configure.args-append   --with-regex
81}
82variant gpgme description {Enable GPGME crypto support} {
83    configure.args-append   --enable-gpgme \
84                            --with-gpgme-prefix=${prefix}
85    depends_lib-append      port:gpgme
86}
87variant headercache conflicts db4 description {Enable header caching (requires gdbm, qdbm, or tokyocabinet)} {
88    configure.args-append       --enable-hcache
89    configure.ldflags-append    "-L/usr/lib"
90}
91variant idn description {Internationalized Domain Name support} {
92    configure.args-append   --with-idn=${prefix}
93    depends_lib-append      port:libidn port:zlib
94}
95variant imap description {IMAP support} {
96    configure.args-append   --enable-imap
97}
98variant nntp description {NNTP support} {
99    configure.args-append   --enable-nntp
100}
101variant pop description {POP support} {
102    configure.args-append   --enable-pop
103}
104variant qdbm conflicts db4 gdbm tokyocabinet description {Use QDBM database} {
105    depends_lib-append      port:qdbm
106    configure.args-append   --with-qdbm \
107                            --without-bdb \
108                            --without-gdbm \
109                            --without-tokyocabinet
110}
111variant sasl description {Simple Authentication and Security Layer support} {
112    configure.args-append   --with-sasl=${prefix}
113    depends_lib-append      port:cyrus-sasl2
114}
115variant sidebar description {Add a sidebar with a list of folders} {
116    configure.args-append   --enable-sidebar
117}
118variant smtp description {Include internal SMTP relay support} {
119    configure.args-append   --enable-smtp
120}
121variant ssl description {Secure Sockets Layer support} {
122    configure.args-append   --with-ssl=${prefix}
123    depends_lib-append      path:lib/libssl.dylib:openssl
124}
125variant tokyocabinet conflicts db4 gdbm qdbm description {Use Tokyo Cabinet database} {
126    depends_lib-append      port:tokyocabinet
127    configure.args-append   --with-tokyocabinet \
128                            --without-bdb \
129                            --without-gdbm \
130                            --without-qdbm
131}
132
133notes "This port no longer installs the pgpring binary. Please install the signing-party port if you need it."
134