Gentoo Archives: gentoo-commits

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