1 |
commit: 2481db74fa33cd95a8bde14529c8afbec14479f7 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 27 12:33:45 2018 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 27 12:34:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2481db74 |
7 |
|
8 |
mail-client/mutt: version bump to 1.11.0 |
9 |
|
10 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
mail-client/mutt/Manifest | 2 + |
14 |
mail-client/mutt/mutt-1.11.0.ebuild | 282 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 284 insertions(+) |
16 |
|
17 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
18 |
index 23346c10d91..f5419514e41 100644 |
19 |
--- a/mail-client/mutt/Manifest |
20 |
+++ b/mail-client/mutt/Manifest |
21 |
@@ -1,3 +1,5 @@ |
22 |
DIST mutt-1.10.1.tar.gz 4255890 BLAKE2B 2a0e7629c42ba11ec5c3686d9c17e283ed9cb1f9874decec9453cf01ae0780c7993ac0104db7987571f27c04e408c1eff47d3b73918eb9754c253b6249ad48f4 SHA512 13509ff159c65e23614696967b4bd8baf7b8e16c0e85cfd89e2df8201de2dc97e6c4a426f5919f05051dee2b14f847c7203e0b236931d3cdf81dbbb221551726 |
23 |
+DIST mutt-1.11.0.tar.gz 4568953 BLAKE2B 1875290c9749addbf7813257901c52f0434581dfd5e15888370e8b6784a15c547d27e5c7ae4f6dfc99040be3f07ae87794d2eb17883b0cec4fcd0b4f21daeafc SHA512 1aa26deee563eee63bf8eb7116dbf7d5a796f5c8b5233ccdaf050188186b08fe1de948316cede5059375128b5771095b895e4113ac4f5549ced4aa83c6fa0c54 |
24 |
DIST mutt-gentoo-1.10.1-patches-r0.tar.xz 108396 BLAKE2B 86edca04154f96efce27543326f8610dffba0085c7d69e82a7ac5f48ae9cd6662bcf6afa0e55b3d83ec054ee2eb86dff70b0c15a5170f41cc57887e17a661406 SHA512 1e0675803abc2bc116ef6e726f5009c43b0fb7bbf9bd3141a7cbbded51033695ddcc5228612f228cd19dae4181719e756a85e3fa2c8c9a9a4a9aefb4170bd5f5 |
25 |
DIST mutt-gentoo-1.10.1-patches-r1.tar.xz 108416 BLAKE2B 22383f7d2f4ad405d6e691104d925b9547897f5bd730b5c573e8ac2d6902b0efa70432db077539122baff8d542964caa6204e6f09c235fe3454c30cf2a72af85 SHA512 ae23ddf13508ab565f6023544add7e2f8cf3d6b2e1cc64aa66f8b38fdabb2c1e3ca17c9b65ffab795428568c1d8eaf088f5dc823d377a9de4773c29bce228a33 |
26 |
+DIST mutt-gentoo-1.11.0-patches-r0.tar.xz 108760 BLAKE2B d68036f47bc32eef2e99297fbb38c6b2c9a678eae298f1fdb68d15fe6fc20f5aa3efe86ab9646e9fad4334c02050212b0dfbe8c9de5bba9f855ae28afcf1e205 SHA512 4cab228b68e148c87c9283b660e1ee1e0fc3b5ec890dd96b41d6a557f58fb221be24aa27a999f874fe8c2026cccc138a1a8ee066c4076cb74778cef101c4f327 |
27 |
|
28 |
diff --git a/mail-client/mutt/mutt-1.11.0.ebuild b/mail-client/mutt/mutt-1.11.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..84e3dc40704 |
31 |
--- /dev/null |
32 |
+++ b/mail-client/mutt/mutt-1.11.0.ebuild |
33 |
@@ -0,0 +1,282 @@ |
34 |
+# Copyright 1999-2018 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="6" |
38 |
+ |
39 |
+inherit eutils flag-o-matic autotools |
40 |
+ |
41 |
+PATCHREV="r0" |
42 |
+PATCHSET="gentoo-${PVR}/${PATCHREV}" |
43 |
+ |
44 |
+DESCRIPTION="A small but very powerful text-based mail client" |
45 |
+HOMEPAGE="http://www.mutt.org/" |
46 |
+MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
47 |
+SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
48 |
+ https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
49 |
+ https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
50 |
+IUSE="berkdb crypt debug doc gdbm gnutls gpg gpgme +hcache idn +imap kerberos libressl +lmdb mbox nls nntp notmuch pgp_classic pop qdbm +sasl selinux slang smime smime_classic +smtp +ssl tokyocabinet vanilla prefix" |
51 |
+# hcache: allow multiple, bug #607360 |
52 |
+REQUIRED_USE=" |
53 |
+ hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
54 |
+ imap? ( ssl ) |
55 |
+ pop? ( ssl ) |
56 |
+ nntp? ( ssl ) |
57 |
+ smime? ( ssl !gnutls ) |
58 |
+ smime_classic? ( ssl !gnutls ) |
59 |
+ smtp? ( ssl sasl ) |
60 |
+ sasl? ( || ( imap pop smtp nntp ) ) |
61 |
+ kerberos? ( || ( imap pop smtp nntp ) )" |
62 |
+SLOT="0" |
63 |
+LICENSE="GPL-2" |
64 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
65 |
+# yes, we overdepend on the backend impls here, hopefully one day we can |
66 |
+# have REQUIRED_USE do what it is made for again. bug #607360 |
67 |
+CDEPEND=" |
68 |
+ app-misc/mime-types |
69 |
+ |
70 |
+ berkdb? ( >=sys-libs/db-4:= ) |
71 |
+ gdbm? ( sys-libs/gdbm ) |
72 |
+ lmdb? ( dev-db/lmdb:= ) |
73 |
+ qdbm? ( dev-db/qdbm ) |
74 |
+ tokyocabinet? ( dev-db/tokyocabinet ) |
75 |
+ |
76 |
+ ssl? ( |
77 |
+ gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
78 |
+ !gnutls? ( |
79 |
+ libressl? ( dev-libs/libressl:= ) |
80 |
+ !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
81 |
+ ) |
82 |
+ ) |
83 |
+ |
84 |
+ nls? ( virtual/libintl ) |
85 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
86 |
+ kerberos? ( virtual/krb5 ) |
87 |
+ idn? ( net-dns/libidn2 ) |
88 |
+ gpg? ( >=app-crypt/gpgme-0.9.0:= ) |
89 |
+ gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
90 |
+ notmuch? ( net-mail/notmuch:= ) |
91 |
+ slang? ( sys-libs/slang ) |
92 |
+ !slang? ( >=sys-libs/ncurses-5.2:0= ) |
93 |
+" |
94 |
+DEPEND="${CDEPEND} |
95 |
+ net-mail/mailbase |
96 |
+ doc? ( |
97 |
+ dev-libs/libxml2 |
98 |
+ dev-libs/libxslt |
99 |
+ app-text/docbook-xsl-stylesheets |
100 |
+ || ( www-client/lynx www-client/w3m www-client/elinks ) |
101 |
+ )" |
102 |
+RDEPEND="${CDEPEND} |
103 |
+ selinux? ( sec-policy/selinux-mutt ) |
104 |
+ smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
105 |
+ smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
106 |
+ crypt? ( app-crypt/gnupg ) |
107 |
+ pgp_classic? ( app-crypt/gnupg ) |
108 |
+" |
109 |
+ |
110 |
+src_prepare() { |
111 |
+ local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
112 |
+ |
113 |
+ if use !vanilla ; then |
114 |
+ # apply patches |
115 |
+ export EPATCH_FORCE="yes" |
116 |
+ export EPATCH_SUFFIX="patch" |
117 |
+ # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
118 |
+ local patches=( |
119 |
+ patches-mutt |
120 |
+ bugs-gentoo |
121 |
+ features-common |
122 |
+ features-extra |
123 |
+ gentoo |
124 |
+ ) |
125 |
+ local patchset |
126 |
+ for patchset in "${patches[@]}" ; do |
127 |
+ [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
128 |
+ einfo "Patches for ${PATCHSET} patchset ${patchset}" |
129 |
+ EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
130 |
+ || die "patchset ${patchset} failed" |
131 |
+ done |
132 |
+ # add some explanation as to why not to go upstream |
133 |
+ sed -i \ |
134 |
+ -e '/ReachingUs = N_(/aThis release of Mutt is heavily enriched with patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor re-emerge with USE=vanilla and try to reproduce your problem.\\n\\' \ |
135 |
+ main.c || die "Failed to add bug instructions" |
136 |
+ fi |
137 |
+ |
138 |
+ local upatches= |
139 |
+ # allow user patches |
140 |
+ eapply_user && upatches=" with user patches" |
141 |
+ |
142 |
+ # patch version string for bug reports |
143 |
+ local patchset= |
144 |
+ use vanilla || patchset=", ${PATCHSET}" |
145 |
+ sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
146 |
+ muttlib.c || die "failed patching in Gentoo version" |
147 |
+ |
148 |
+ # many patches touch the buildsystem, we always need this |
149 |
+ AT_M4DIR="m4" eautoreconf |
150 |
+ |
151 |
+ # the configure script contains some "cleverness" whether or not to setgid |
152 |
+ # the dotlock program, resulting in bugs like #278332 |
153 |
+ sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
154 |
+} |
155 |
+ |
156 |
+src_configure() { |
157 |
+ local myconf=( |
158 |
+ # signing and encryption |
159 |
+ # clumpsy blocks for transition period of USE-flag renames |
160 |
+ $(use crypt && use_enable crypt pgp) |
161 |
+ $(use pgp_classic && use_enable pgp_classic pgp) |
162 |
+ $(use !crypt && use !pgp_classic && echo "--disable-pgp") |
163 |
+ |
164 |
+ $(use smime && use_enable smime) |
165 |
+ $(use smime_classic && use_enable smime_classic smime) |
166 |
+ $(use !smime && use !smime_classic && echo "--disable-smime") |
167 |
+ |
168 |
+ $(use gpg && use_enable gpg gpgme) |
169 |
+ $(use gpgme && use_enable gpgme) |
170 |
+ $(use !gpg && use !gpgme && echo "--disable-gpgme") |
171 |
+ |
172 |
+ # features |
173 |
+ $(use_enable debug) |
174 |
+ $(use_enable doc) |
175 |
+ $(use_enable nls) |
176 |
+ $(use_enable notmuch) |
177 |
+ |
178 |
+ # protocols |
179 |
+ $(use_enable imap) |
180 |
+ $(use_enable pop) |
181 |
+ $(use_enable nntp) |
182 |
+ $(use_enable smtp) |
183 |
+ |
184 |
+ $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
185 |
+ $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
186 |
+ $(use !ssl && echo --without-gnutls --without-ssl) |
187 |
+ |
188 |
+ $(use_with sasl) |
189 |
+ $(use_with idn) |
190 |
+ $(use_with kerberos gss) |
191 |
+ "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
192 |
+ "$(use_with !slang curses "${EPREFIX}"/usr)" |
193 |
+ |
194 |
+ "--enable-compressed" |
195 |
+ "--enable-external-dotlock" |
196 |
+ "--enable-nfs-fix" |
197 |
+ "--enable-sidebar" |
198 |
+ "--sysconfdir=${EPREFIX}/etc/${PN}" |
199 |
+ "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
200 |
+ "--with-regex" |
201 |
+ "--with-exec-shell=${EPREFIX}/bin/sh" |
202 |
+ ) |
203 |
+ |
204 |
+ if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
205 |
+ # arrows in index view do not show when using wchar_t |
206 |
+ # or misalign due to wrong computations |
207 |
+ myconf+=( "--without-wc-funcs" ) |
208 |
+ fi |
209 |
+ |
210 |
+ # note: REQUIRED_USE should have selected only one of these, but for |
211 |
+ # bug #607360 we're forced to allow multiple. For that reason, this |
212 |
+ # list is ordered to preference, and only the first is taken. |
213 |
+ local hcaches=( |
214 |
+ "lmdb" |
215 |
+ "qdbm" |
216 |
+ "tokyocabinet" |
217 |
+ "gdbm" |
218 |
+ "berkdb:bdb" |
219 |
+ ) |
220 |
+ local ucache hcache lcache |
221 |
+ for hcache in "${hcaches[@]}" ; do |
222 |
+ if use ${hcache%%:*} ; then |
223 |
+ ucache=${hcache} |
224 |
+ break |
225 |
+ fi |
226 |
+ done |
227 |
+ if [[ -n ${ucache} ]] ; then |
228 |
+ myconf+=( "--enable-hcache" ) |
229 |
+ else |
230 |
+ myconf+=( "--disable-hcache" ) |
231 |
+ fi |
232 |
+ for hcache in "${hcaches[@]}" ; do |
233 |
+ [[ ${hcache} == ${ucache} ]] \ |
234 |
+ && myconf+=( "--with-${hcache#*:}" ) \ |
235 |
+ || myconf+=( "--without-${hcache#*:}" ) |
236 |
+ done |
237 |
+ |
238 |
+ if use mbox; then |
239 |
+ myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
240 |
+ else |
241 |
+ myconf+=( "--with-homespool=Maildir" ) |
242 |
+ fi |
243 |
+ |
244 |
+ econf "${myconf[@]}" || die "configure failed" |
245 |
+} |
246 |
+ |
247 |
+src_install() { |
248 |
+ emake DESTDIR="${D}" install || die "install failed" |
249 |
+ if use mbox; then |
250 |
+ insinto /etc/mutt |
251 |
+ newins "${FILESDIR}"/Muttrc.mbox Muttrc |
252 |
+ else |
253 |
+ insinto /etc/mutt |
254 |
+ doins "${FILESDIR}"/Muttrc |
255 |
+ fi |
256 |
+ |
257 |
+ # A newer file is provided by app-misc/mime-types. So we link it. |
258 |
+ rm "${ED}"/etc/${PN}/mime.types |
259 |
+ dosym "${EPREFIX}"/etc/mime.types /etc/${PN}/mime.types |
260 |
+ |
261 |
+ # A man-page is always handy, so fake one |
262 |
+ if use !doc; then |
263 |
+ emake -C doc DESTDIR="${D}" muttrc.man || die |
264 |
+ # make the fake slightly better, bug #413405 |
265 |
+ sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
266 |
+ -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
267 |
+ -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
268 |
+ -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
269 |
+ doc/mutt.man > mutt.1 || die |
270 |
+ cp doc/muttrc.man muttrc.5 || die |
271 |
+ doman mutt.1 muttrc.5 |
272 |
+ else |
273 |
+ # nuke manpages that should be provided by an MTA, bug #177605 |
274 |
+ rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
275 |
+ || ewarn "failed to remove files, please file a bug" |
276 |
+ fi |
277 |
+ |
278 |
+ if use !prefix ; then |
279 |
+ fowners root:mail /usr/bin/mutt_dotlock |
280 |
+ fperms g+s /usr/bin/mutt_dotlock |
281 |
+ fi |
282 |
+ |
283 |
+ dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
284 |
+} |
285 |
+ |
286 |
+pkg_postinst() { |
287 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
288 |
+ echo |
289 |
+ elog "If you are new to mutt you may want to take a look at" |
290 |
+ elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
291 |
+ elog " https://wiki.gentoo.org/wiki/Mutt" |
292 |
+ echo |
293 |
+ fi |
294 |
+ if use crypt || use gpg || use smime ; then |
295 |
+ ewarn "Please note that the crypto related USE-flags of mutt have changed." |
296 |
+ ewarn "To remove some unclarity, the following USE-flags are renamed:" |
297 |
+ ewarn "(see https://bugs.gentoo.org/637176)" |
298 |
+ ewarn " crypt -> pgp_classic" |
299 |
+ ewarn " gpg -> gpgme" |
300 |
+ ewarn " smime -> smime_classic" |
301 |
+ ewarn "The old USE flags still work but their use is deprecated and will" |
302 |
+ ewarn "be removed in a future release. Please update your package.use" |
303 |
+ if use gpg && ( use crypt || use smime ) ; then |
304 |
+ ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
305 |
+ ewarn " support. You can probably remove pgp_classic (old crypt)" |
306 |
+ ewarn " and smime_classic (old smime) from your USE-flags and" |
307 |
+ ewarn " only enable gpgme." |
308 |
+ fi |
309 |
+ fi |
310 |
+ if use gpgme ; then |
311 |
+ ewarn "Note: in order for Mutt to actually use the gpgme backend" |
312 |
+ ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc" |
313 |
+ ewarn " https://dev.mutt.org/doc/manual.html#crypt-use-gpgme" |
314 |
+ fi |
315 |
+} |