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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name neomutt |
---|
7 | version 20160910 |
---|
8 | categories mail |
---|
9 | platforms darwin |
---|
10 | license GPL-2 |
---|
11 | maintainers leonardo@schenkel.net |
---|
12 | |
---|
13 | description The Mutt E-Mail Client (patched version with added features) |
---|
14 | long_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. |
---|
21 | homepage https://www.neomutt.org |
---|
22 | |
---|
23 | conflicts mutt |
---|
24 | depends_lib port:gettext \ |
---|
25 | port:libiconv \ |
---|
26 | port:ncurses |
---|
27 | |
---|
28 | depends_run path:share/curl/curl-ca-bundle.crt:curl-ca-bundle |
---|
29 | |
---|
30 | master_sites https://github.com/neomutt/neomutt/archive/ |
---|
31 | checksums ${distfiles} \ |
---|
32 | rmd160 f5a7d0c3d224ae9eeaa29a4bb9aa9b88d224258b \ |
---|
33 | sha256 cc1159c7210a706db765b7198ac53405d25e7577ff9e5cd2f1d062964213798b |
---|
34 | |
---|
35 | worksrcdir neomutt-neomutt-${version} |
---|
36 | use_autoreconf yes |
---|
37 | configure.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 | |
---|
44 | default_variants +idn +imap +pop +ssl |
---|
45 | |
---|
46 | if {![variant_isset db4] && ![variant_isset qdbm] && ![variant_isset tokyocabinet]} { |
---|
47 | variant_set gdbm |
---|
48 | } |
---|
49 | |
---|
50 | post-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 | |
---|
57 | variant compress description {Compressed folders} { |
---|
58 | configure.args-append --enable-compressed |
---|
59 | } |
---|
60 | variant 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 | } |
---|
69 | variant debug description {Debugging support} { |
---|
70 | configure.args-append --enable-debug |
---|
71 | } |
---|
72 | variant 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 | } |
---|
79 | variant gnuregex description {Use the GNU regular expression library} { |
---|
80 | configure.args-append --with-regex |
---|
81 | } |
---|
82 | variant gpgme description {Enable GPGME crypto support} { |
---|
83 | configure.args-append --enable-gpgme \ |
---|
84 | --with-gpgme-prefix=${prefix} |
---|
85 | depends_lib-append port:gpgme |
---|
86 | } |
---|
87 | variant 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 | } |
---|
91 | variant idn description {Internationalized Domain Name support} { |
---|
92 | configure.args-append --with-idn=${prefix} |
---|
93 | depends_lib-append port:libidn port:zlib |
---|
94 | } |
---|
95 | variant imap description {IMAP support} { |
---|
96 | configure.args-append --enable-imap |
---|
97 | } |
---|
98 | variant nntp description {NNTP support} { |
---|
99 | configure.args-append --enable-nntp |
---|
100 | } |
---|
101 | variant pop description {POP support} { |
---|
102 | configure.args-append --enable-pop |
---|
103 | } |
---|
104 | variant 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 | } |
---|
111 | variant sasl description {Simple Authentication and Security Layer support} { |
---|
112 | configure.args-append --with-sasl=${prefix} |
---|
113 | depends_lib-append port:cyrus-sasl2 |
---|
114 | } |
---|
115 | variant sidebar description {Add a sidebar with a list of folders} { |
---|
116 | configure.args-append --enable-sidebar |
---|
117 | } |
---|
118 | variant smtp description {Include internal SMTP relay support} { |
---|
119 | configure.args-append --enable-smtp |
---|
120 | } |
---|
121 | variant ssl description {Secure Sockets Layer support} { |
---|
122 | configure.args-append --with-ssl=${prefix} |
---|
123 | depends_lib-append path:lib/libssl.dylib:openssl |
---|
124 | } |
---|
125 | variant 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 | |
---|
133 | notes "This port no longer installs the pgpring binary. Please install the signing-party port if you need it." |
---|
134 | |
---|