1 |
commit: 83abebd3b7051b9808d8ee1dfec4543773b00bd7 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 1 09:32:31 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 1 09:34:08 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83abebd3 |
7 |
|
8 |
mail-client/mutt-1.13.0: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
mail-client/mutt/Manifest | 2 + |
14 |
mail-client/mutt/mutt-1.13.0.ebuild | 253 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 255 insertions(+) |
16 |
|
17 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
18 |
index 0ff5222a6cd..d6d8772a2fd 100644 |
19 |
--- a/mail-client/mutt/Manifest |
20 |
+++ b/mail-client/mutt/Manifest |
21 |
@@ -2,7 +2,9 @@ DIST mutt-1.10.1.tar.gz 4255890 BLAKE2B 2a0e7629c42ba11ec5c3686d9c17e283ed9cb1f9 |
22 |
DIST mutt-1.11.4.tar.gz 4582417 BLAKE2B 750385cc90df0d34d35103883a9918f205830ea93e5ec9f33cd579d5c121d630b3074f1918fa0e8e5aa91edd503c7ba38c34785a8a96803d7af30d08a0966c4d SHA512 18c5bfa5c45ef70b3307afccf28f613a36de035f1b5c493f84f0571f7ba297cd0b25e01be9102a028c51c28c459c4bc62281da88926e16ce58c3c1407609e0eb |
23 |
DIST mutt-1.12.1.tar.gz 4675166 BLAKE2B f1c073e05d60f41a8057d90074b7cbc2a882243b0c4b495b1b147356c83daad136d5574dd6a567c0180823e73d8fb79a38d316ab0b2c56731baed24fe9ad9890 SHA512 0101120ad2acab89552be210725bae1a903f0b2c48be7207750589d141236537823f27c39e8d700eee16eb6b978058d056180b3d51e45e0242546f176b971538 |
24 |
DIST mutt-1.12.2.tar.gz 4675774 BLAKE2B 0b0a4695f31db97437e7d6e52ca8e131376bd0ae168195a4a73c3d2230f43460000c5b623e39b89c5cc7bf5253e7ffad8f007b844a864fcde94baef1aa7369f9 SHA512 a824a056edef0c320b7633a39ab2421646442132190c2b2bf788ac39aaf7a0143d12847eb27290913d8ae793810bb6353803977610045b36235579001a1096bd |
25 |
+DIST mutt-1.13.0.tar.gz 4889693 BLAKE2B 1c3f1e2107ea4f6147b9010ab4751afc09dbf16eec88c8c94b8edf84783abb8e75649eb3482d043c1c2fdd8c9428599ddcd844b72fa55881b5728ab09b564e07 SHA512 76dc0a0cce4293851fb4caa0018538f112bac0f02a1faa2a8ec62bbf078b130d2907709423b3eda5217d24886e58a1e7a184a094701c9bdb989e93b9dac123fa |
26 |
DIST mutt-gentoo-1.10.1-patches-r0.tar.xz 108396 BLAKE2B 86edca04154f96efce27543326f8610dffba0085c7d69e82a7ac5f48ae9cd6662bcf6afa0e55b3d83ec054ee2eb86dff70b0c15a5170f41cc57887e17a661406 SHA512 1e0675803abc2bc116ef6e726f5009c43b0fb7bbf9bd3141a7cbbded51033695ddcc5228612f228cd19dae4181719e756a85e3fa2c8c9a9a4a9aefb4170bd5f5 |
27 |
DIST mutt-gentoo-1.11.4-patches-r0.tar.xz 107064 BLAKE2B f8ad915fd0ceea729fdc14719e69c43751e75fd4afc9f19460d15493fd97baee9606703d7d6a8239a34b2c0d6f2458fc007277933bbc724b6a8588bb7514decd SHA512 57714259f802efe54e21cd23560bb158777b50320604db0a8ff8a47c25166a873d13d64b03eba4cb1c5067a586e7c64d9d0ba84ddbe0e179745e92d704a55cd1 |
28 |
DIST mutt-gentoo-1.12.1-patches-r0.tar.xz 106064 BLAKE2B 60b73bcfd9713261c7b88fe74d70a630954511a38331c3e8e958ef7f6459b3bf8548211ee920fe238085c6481c03633cec21e7ae70c1473c89914ce720bd7c21 SHA512 feffbd49ad8156e226e7d4dc56b1c976f3f2a0f8dc3551c11696d5653342b91b4406a494d6081b969fe8267bf09a441a4f3c5a0014d108000e55c985aaafa596 |
29 |
DIST mutt-gentoo-1.12.2-patches-r1.tar.xz 106720 BLAKE2B 788735757dd4cf8c1d9fe09350eaf4780b1e90f1e1d9bf39c98ee03255b9b84847a387402940d1a05e4be2b8684688216ea62f564c40715cd6ccf4bebaeebdc0 SHA512 ec8c0989bff2008e6df0c43a8e833fb4f463993eacb1cbdd11722a6c49bb400804c80f74ac0073883a050f352a65d2743c4aebc882a2cd7db369a4e214a95701 |
30 |
+DIST mutt-gentoo-1.13.0-patches-r0.tar.xz 36020 BLAKE2B 56bda1576ef2ab8c0fa2f35ee0ddab88a391512c1530ad7ec77d921ee5686645cbde97ca3b131eb7370a89fe0517b1d4424aca3aea81dc708dcad51226eb1f29 SHA512 750e2165b4e4ae4f8caa0bf81797edbe10f0e10195978cbbf1a59263e788c5fa5e0ed78cdff19af1a574d9fdc0cc4c84c82faa712e755a482f8107390446a746 |
31 |
|
32 |
diff --git a/mail-client/mutt/mutt-1.13.0.ebuild b/mail-client/mutt/mutt-1.13.0.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..031717cb2e3 |
35 |
--- /dev/null |
36 |
+++ b/mail-client/mutt/mutt-1.13.0.ebuild |
37 |
@@ -0,0 +1,253 @@ |
38 |
+# Copyright 1999-2019 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI="6" |
42 |
+ |
43 |
+inherit eutils flag-o-matic autotools |
44 |
+ |
45 |
+PATCHREV="r0" |
46 |
+PATCHSET="gentoo-${PVR}/${PATCHREV}" |
47 |
+ |
48 |
+DESCRIPTION="A small but very powerful text-based mail client" |
49 |
+HOMEPAGE="http://www.mutt.org/" |
50 |
+MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
51 |
+SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
52 |
+ https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
53 |
+ https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
54 |
+IUSE="berkdb debug doc gdbm gnutls gpgme +hcache idn +imap kerberos libressl +lmdb mbox nls pgp-classic pop qdbm +sasl selinux slang smime-classic +smtp +ssl tokyocabinet vanilla prefix" |
55 |
+# hcache: allow multiple, bug #607360 |
56 |
+REQUIRED_USE=" |
57 |
+ hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
58 |
+ imap? ( ssl ) |
59 |
+ pop? ( ssl ) |
60 |
+ smime-classic? ( ssl !gnutls ) |
61 |
+ smtp? ( ssl sasl ) |
62 |
+ sasl? ( || ( imap pop smtp ) ) |
63 |
+ kerberos? ( || ( imap pop smtp ) )" |
64 |
+SLOT="0" |
65 |
+LICENSE="GPL-2" |
66 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
67 |
+# yes, we overdepend on the backend impls here, hopefully one day we can |
68 |
+# have REQUIRED_USE do what it is made for again. bug #607360 |
69 |
+CDEPEND=" |
70 |
+ app-misc/mime-types |
71 |
+ virtual/libiconv |
72 |
+ |
73 |
+ berkdb? ( >=sys-libs/db-4:= ) |
74 |
+ gdbm? ( sys-libs/gdbm ) |
75 |
+ lmdb? ( dev-db/lmdb:= ) |
76 |
+ qdbm? ( dev-db/qdbm ) |
77 |
+ tokyocabinet? ( dev-db/tokyocabinet ) |
78 |
+ |
79 |
+ ssl? ( |
80 |
+ gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
81 |
+ !gnutls? ( |
82 |
+ libressl? ( dev-libs/libressl:= ) |
83 |
+ !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
84 |
+ ) |
85 |
+ ) |
86 |
+ |
87 |
+ nls? ( virtual/libintl ) |
88 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
89 |
+ kerberos? ( virtual/krb5 ) |
90 |
+ idn? ( net-dns/libidn2 ) |
91 |
+ gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
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-classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
106 |
+ pgp-classic? ( app-crypt/gnupg ) |
107 |
+" |
108 |
+ |
109 |
+src_prepare() { |
110 |
+ local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
111 |
+ |
112 |
+ if use !vanilla ; then |
113 |
+ # apply patches |
114 |
+ export EPATCH_FORCE="yes" |
115 |
+ export EPATCH_SUFFIX="patch" |
116 |
+ # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
117 |
+ local patches=( |
118 |
+ patches-mutt |
119 |
+ bugs-gentoo |
120 |
+ features-common |
121 |
+ features-extra |
122 |
+ gentoo |
123 |
+ ) |
124 |
+ local patchset |
125 |
+ for patchset in "${patches[@]}" ; do |
126 |
+ [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
127 |
+ einfo "Patches for ${PATCHSET} patchset ${patchset}" |
128 |
+ EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
129 |
+ || die "patchset ${patchset} failed" |
130 |
+ done |
131 |
+ # add some explanation as to why not to go upstream |
132 |
+ sed -i \ |
133 |
+ -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\\' \ |
134 |
+ main.c || die "Failed to add bug instructions" |
135 |
+ fi |
136 |
+ |
137 |
+ local upatches= |
138 |
+ # allow user patches |
139 |
+ eapply_user && upatches=" with user patches" |
140 |
+ |
141 |
+ # patch version string for bug reports |
142 |
+ local patchset= |
143 |
+ use vanilla || patchset=", ${PATCHSET}" |
144 |
+ sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
145 |
+ muttlib.c || die "failed patching in Gentoo version" |
146 |
+ |
147 |
+ # many patches touch the buildsystem, we always need this |
148 |
+ AT_M4DIR="m4" eautoreconf |
149 |
+ |
150 |
+ # the configure script contains some "cleverness" whether or not to setgid |
151 |
+ # the dotlock program, resulting in bugs like #278332 |
152 |
+ sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
153 |
+} |
154 |
+ |
155 |
+src_configure() { |
156 |
+ local myconf=( |
157 |
+ # signing and encryption |
158 |
+ $(use_enable pgp-classic pgp) |
159 |
+ $(use_enable smime-classic smime) |
160 |
+ $(use_enable gpgme) |
161 |
+ |
162 |
+ # features |
163 |
+ $(use_enable debug) |
164 |
+ $(use_enable doc) |
165 |
+ $(use_enable nls) |
166 |
+ |
167 |
+ # protocols |
168 |
+ $(use_enable imap) |
169 |
+ $(use_enable pop) |
170 |
+ $(use_enable smtp) |
171 |
+ |
172 |
+ $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
173 |
+ $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
174 |
+ $(use !ssl && echo --without-gnutls --without-ssl) |
175 |
+ |
176 |
+ $(use_with sasl) |
177 |
+ $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
178 |
+ $(use_with kerberos gss) |
179 |
+ "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
180 |
+ "$(use_with !slang curses "${EPREFIX}"/usr)" |
181 |
+ |
182 |
+ "--enable-compressed" |
183 |
+ "--enable-external-dotlock" |
184 |
+ "--enable-iconv" |
185 |
+ "--enable-nfs-fix" |
186 |
+ "--enable-sidebar" |
187 |
+ "--sysconfdir=${EPREFIX}/etc/${PN}" |
188 |
+ "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
189 |
+ "--without-bundled-regex" # use the implementation from libc |
190 |
+ "--with-exec-shell=${EPREFIX}/bin/sh" |
191 |
+ ) |
192 |
+ |
193 |
+ if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
194 |
+ # arrows in index view do not show when using wchar_t |
195 |
+ # or misalign due to wrong computations |
196 |
+ myconf+=( "--without-wc-funcs" ) |
197 |
+ fi |
198 |
+ |
199 |
+ # note: REQUIRED_USE should have selected only one of these, but for |
200 |
+ # bug #607360 we're forced to allow multiple. For that reason, this |
201 |
+ # list is ordered to preference, and only the first is taken. |
202 |
+ local hcaches=( |
203 |
+ "lmdb" |
204 |
+ "qdbm" |
205 |
+ "tokyocabinet" |
206 |
+ "gdbm" |
207 |
+ "berkdb:bdb" |
208 |
+ ) |
209 |
+ local ucache hcache lcache |
210 |
+ for hcache in "${hcaches[@]}" ; do |
211 |
+ if use ${hcache%%:*} ; then |
212 |
+ ucache=${hcache} |
213 |
+ break |
214 |
+ fi |
215 |
+ done |
216 |
+ if [[ -n ${ucache} ]] ; then |
217 |
+ myconf+=( "--enable-hcache" ) |
218 |
+ else |
219 |
+ myconf+=( "--disable-hcache" ) |
220 |
+ fi |
221 |
+ for hcache in "${hcaches[@]}" ; do |
222 |
+ [[ ${hcache} == ${ucache} ]] \ |
223 |
+ && myconf+=( "--with-${hcache#*:}" ) \ |
224 |
+ || myconf+=( "--without-${hcache#*:}" ) |
225 |
+ done |
226 |
+ |
227 |
+ if use mbox; then |
228 |
+ myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
229 |
+ else |
230 |
+ myconf+=( "--with-homespool=Maildir" ) |
231 |
+ fi |
232 |
+ |
233 |
+ econf "${myconf[@]}" || die "configure failed" |
234 |
+} |
235 |
+ |
236 |
+src_install() { |
237 |
+ emake DESTDIR="${D}" install || die "install failed" |
238 |
+ if use mbox; then |
239 |
+ insinto /etc/mutt |
240 |
+ newins "${FILESDIR}"/Muttrc.mbox Muttrc |
241 |
+ else |
242 |
+ insinto /etc/mutt |
243 |
+ doins "${FILESDIR}"/Muttrc |
244 |
+ fi |
245 |
+ |
246 |
+ # A newer file is provided by app-misc/mime-types. So we link it. |
247 |
+ rm "${ED}"/etc/${PN}/mime.types |
248 |
+ dosym "${EPREFIX}"/etc/mime.types /etc/${PN}/mime.types |
249 |
+ |
250 |
+ # nuke manpages that should be provided by an MTA, bug #177605 |
251 |
+ rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
252 |
+ || ewarn "failed to remove files, please file a bug" |
253 |
+ |
254 |
+ if use !prefix ; then |
255 |
+ fowners root:mail /usr/bin/mutt_dotlock |
256 |
+ fperms g+s /usr/bin/mutt_dotlock |
257 |
+ fi |
258 |
+ |
259 |
+ dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
260 |
+} |
261 |
+ |
262 |
+pkg_postinst() { |
263 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
264 |
+ echo |
265 |
+ elog "If you are new to mutt you may want to take a look at" |
266 |
+ elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
267 |
+ elog " https://wiki.gentoo.org/wiki/Mutt" |
268 |
+ echo |
269 |
+ else |
270 |
+ ewarn "The nntp and notmuch patches were dropped from this release." |
271 |
+ ewarn "Due to too much maintenance cost, the nntp and notmuch patches" |
272 |
+ ewarn "were dropped from this release. If you need support for any" |
273 |
+ ewarn "of these features, please consider using mail-client/neomutt." |
274 |
+ echo |
275 |
+ fi |
276 |
+ if use !pgp-classic && use !smime-classic && use !gpgme ; then |
277 |
+ ewarn "Please note that crypto related USE-flags of Mutt have changed." |
278 |
+ ewarn "To comply with PMS, the following USE-flags were renamed:" |
279 |
+ ewarn "(see https://bugs.gentoo.org/695078)" |
280 |
+ ewarn " pgp_classic -> pgp-classic" |
281 |
+ ewarn " smime_classic -> smime-classic" |
282 |
+ echo |
283 |
+ fi |
284 |
+ if use gpgme ; then |
285 |
+ ewarn "Note: in order for Mutt to actually use the gpgme backend" |
286 |
+ ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc" |
287 |
+ # https is broken due to a certificate mismatch :( |
288 |
+ ewarn " http://www.mutt.org/doc/manual/#crypt-use-gpgme" |
289 |
+ fi |
290 |
+} |