1 |
commit: a3e4d08ec543b9e269dbf297ed8cbd600c32711d |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 4 07:07:34 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 4 07:09:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3e4d08e |
7 |
|
8 |
mail-client/mutt-1.14.0: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
mail-client/mutt/Manifest | 2 + |
14 |
mail-client/mutt/mutt-1.14.0.ebuild | 257 ++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 259 insertions(+) |
16 |
|
17 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
18 |
index af9a77b11b2..38f1f5edc7d 100644 |
19 |
--- a/mail-client/mutt/Manifest |
20 |
+++ b/mail-client/mutt/Manifest |
21 |
@@ -1,2 +1,4 @@ |
22 |
DIST mutt-1.13.5.tar.gz 4902500 BLAKE2B 24c7f40ca177a64118f30d3ea1af95ebbf88c4e9b53a12bab058544350606b85d47ed659eab5f59e5bf17964843243ce175b6e0f0571baca93367ed1bc866a94 SHA512 f2ea863626e5dad4854c98a1797faa97c9f14fb5161c590e88ee02afbdde7f48493bd2cce6109f9839501cf38aa238dc804f4c98f17ac97c68b48cb0bc0e5b4a |
23 |
+DIST mutt-1.14.0.tar.gz 5220515 BLAKE2B 4a9b70f0d32df1a33947898b71044a97b9cbca04ba0c01f06cae967cb9dff6fa06dd005c7f0e0642654a4cef04686eb38af7c032aa361f0e3f2f57faf66d93d4 SHA512 66eddad7a9ce0c067795b8f0285159a6aa7fbf9304ef287888f1c86a942d565e1f71294549e22960a4db8bcc06b1e9f6690c3e04dedf8b37d304b4aa6a250225 |
24 |
DIST mutt-gentoo-1.13.5-patches-r0.tar.xz 35932 BLAKE2B 7f4488e6478ba2a2593a58d9905fd8cb857d95a7c05dd90d7d08843bafc060c0560fc5061a85a0a91baf063f055139fa09e5a54ea353e0118418f73baa333928 SHA512 1ddad0550a9bc772247d5ca468efd044c9eeccb497cbe391b19382d598fd0ec8dbdb3d34d4297cc5cd3a8ff43c881155a5874db24e89c0f2a4702b6e0ba4f0d9 |
25 |
+DIST mutt-gentoo-1.14.0-patches-r0.tar.xz 31124 BLAKE2B e5703fb22d627cac2fd7ef9565c10a46ccd3153611335aa3051b1d38feb68b52fb0bd0a1360c02fa0723bedbdaa2b4000020546f3f5bf039b5e9578c6481cf6f SHA512 1c89d6843392ad9db869dce9c90a04cb712bf3c783797f231749fddee6047e5ec79513abca644e76e3f28c4af2e94f055ab72a794f4ba6a971d2f668c6b6a1ff |
26 |
|
27 |
diff --git a/mail-client/mutt/mutt-1.14.0.ebuild b/mail-client/mutt/mutt-1.14.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..45ba49cadf8 |
30 |
--- /dev/null |
31 |
+++ b/mail-client/mutt/mutt-1.14.0.ebuild |
32 |
@@ -0,0 +1,257 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="6" |
37 |
+ |
38 |
+inherit eutils flag-o-matic autotools |
39 |
+ |
40 |
+PATCHREV="r0" |
41 |
+PATCHSET="gentoo-${PVR}/${PATCHREV}" |
42 |
+ |
43 |
+DESCRIPTION="A small but very powerful text-based mail client" |
44 |
+HOMEPAGE="http://www.mutt.org/" |
45 |
+MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
46 |
+SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
47 |
+ https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
48 |
+ https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
49 |
+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" |
50 |
+# hcache: allow multiple, bug #607360 |
51 |
+REQUIRED_USE=" |
52 |
+ hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
53 |
+ imap? ( ssl ) |
54 |
+ pop? ( ssl ) |
55 |
+ smime-classic? ( ssl !gnutls ) |
56 |
+ smtp? ( ssl sasl ) |
57 |
+ sasl? ( || ( imap pop smtp ) ) |
58 |
+ kerberos? ( || ( imap pop smtp ) )" |
59 |
+SLOT="0" |
60 |
+LICENSE="GPL-2" |
61 |
+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" |
62 |
+# yes, we overdepend on the backend impls here, hopefully one day we can |
63 |
+# have REQUIRED_USE do what it is made for again. bug #607360 |
64 |
+CDEPEND=" |
65 |
+ app-misc/mime-types |
66 |
+ virtual/libiconv |
67 |
+ |
68 |
+ berkdb? ( >=sys-libs/db-4:= ) |
69 |
+ gdbm? ( sys-libs/gdbm ) |
70 |
+ lmdb? ( dev-db/lmdb:= ) |
71 |
+ qdbm? ( dev-db/qdbm ) |
72 |
+ tokyocabinet? ( dev-db/tokyocabinet ) |
73 |
+ |
74 |
+ ssl? ( |
75 |
+ gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
76 |
+ !gnutls? ( |
77 |
+ libressl? ( dev-libs/libressl:= ) |
78 |
+ !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
79 |
+ ) |
80 |
+ ) |
81 |
+ |
82 |
+ nls? ( virtual/libintl ) |
83 |
+ sasl? ( >=dev-libs/cyrus-sasl-2 ) |
84 |
+ kerberos? ( virtual/krb5 ) |
85 |
+ idn? ( net-dns/libidn2 ) |
86 |
+ gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
87 |
+ slang? ( sys-libs/slang ) |
88 |
+ !slang? ( >=sys-libs/ncurses-5.2:0= ) |
89 |
+" |
90 |
+DEPEND="${CDEPEND} |
91 |
+ net-mail/mailbase |
92 |
+ doc? ( |
93 |
+ dev-libs/libxml2 |
94 |
+ dev-libs/libxslt |
95 |
+ app-text/docbook-xsl-stylesheets |
96 |
+ || ( www-client/lynx www-client/w3m www-client/elinks ) |
97 |
+ )" |
98 |
+RDEPEND="${CDEPEND} |
99 |
+ selinux? ( sec-policy/selinux-mutt ) |
100 |
+ smime-classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
101 |
+ pgp-classic? ( app-crypt/gnupg ) |
102 |
+" |
103 |
+ |
104 |
+src_prepare() { |
105 |
+ local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
106 |
+ |
107 |
+ if use !vanilla ; then |
108 |
+ # apply patches |
109 |
+ export EPATCH_FORCE="yes" |
110 |
+ export EPATCH_SUFFIX="patch" |
111 |
+ # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
112 |
+ local patches=( |
113 |
+ patches-mutt |
114 |
+ bugs-gentoo |
115 |
+ features-common |
116 |
+ features-extra |
117 |
+ gentoo |
118 |
+ ) |
119 |
+ local patchset |
120 |
+ for patchset in "${patches[@]}" ; do |
121 |
+ [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
122 |
+ einfo "Patches for ${PATCHSET} patchset ${patchset}" |
123 |
+ EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
124 |
+ || die "patchset ${patchset} failed" |
125 |
+ done |
126 |
+ # add some explanation as to why not to go upstream |
127 |
+ sed -i \ |
128 |
+ -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\\' \ |
129 |
+ main.c || die "Failed to add bug instructions" |
130 |
+ fi |
131 |
+ |
132 |
+ local upatches= |
133 |
+ # allow user patches |
134 |
+ eapply_user && upatches=" with user patches" |
135 |
+ |
136 |
+ # patch version string for bug reports |
137 |
+ local patchset= |
138 |
+ use vanilla || patchset=", ${PATCHSET}" |
139 |
+ sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
140 |
+ muttlib.c || die "failed patching in Gentoo version" |
141 |
+ |
142 |
+ # many patches touch the buildsystem, we always need this |
143 |
+ AT_M4DIR="m4" eautoreconf |
144 |
+ |
145 |
+ # the configure script contains some "cleverness" whether or not to setgid |
146 |
+ # the dotlock program, resulting in bugs like #278332 |
147 |
+ sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
148 |
+} |
149 |
+ |
150 |
+src_configure() { |
151 |
+ local myconf=( |
152 |
+ # signing and encryption |
153 |
+ $(use_enable pgp-classic pgp) |
154 |
+ $(use_enable smime-classic smime) |
155 |
+ $(use_enable gpgme) |
156 |
+ |
157 |
+ # features |
158 |
+ $(use_enable debug) |
159 |
+ $(use_enable doc) |
160 |
+ $(use_enable nls) |
161 |
+ |
162 |
+ # protocols |
163 |
+ $(use_enable imap) |
164 |
+ $(use_enable pop) |
165 |
+ $(use_enable smtp) |
166 |
+ |
167 |
+ $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
168 |
+ $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
169 |
+ $(use !ssl && echo --without-gnutls --without-ssl) |
170 |
+ |
171 |
+ $(use_with sasl) |
172 |
+ $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
173 |
+ $(use_with kerberos gss) |
174 |
+ "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
175 |
+ "$(use_with !slang curses "${EPREFIX}"/usr)" |
176 |
+ |
177 |
+ "--enable-compressed" |
178 |
+ "--enable-external-dotlock" |
179 |
+ "--enable-iconv" |
180 |
+ "--enable-nfs-fix" |
181 |
+ "--enable-sidebar" |
182 |
+ "--sysconfdir=${EPREFIX}/etc/${PN}" |
183 |
+ "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
184 |
+ "--without-bundled-regex" # use the implementation from libc |
185 |
+ "--with-exec-shell=${EPREFIX}/bin/sh" |
186 |
+ ) |
187 |
+ |
188 |
+ if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
189 |
+ # arrows in index view do not show when using wchar_t |
190 |
+ # or misalign due to wrong computations |
191 |
+ myconf+=( "--without-wc-funcs" ) |
192 |
+ fi |
193 |
+ |
194 |
+ # note: REQUIRED_USE should have selected only one of these, but for |
195 |
+ # bug #607360 we're forced to allow multiple. For that reason, this |
196 |
+ # list is ordered to preference, and only the first is taken. |
197 |
+ local hcaches=( |
198 |
+ "lmdb" |
199 |
+ "qdbm" |
200 |
+ "tokyocabinet" |
201 |
+ "gdbm" |
202 |
+ "berkdb:bdb" |
203 |
+ ) |
204 |
+ local ucache hcache lcache |
205 |
+ for hcache in "${hcaches[@]}" ; do |
206 |
+ if use ${hcache%%:*} ; then |
207 |
+ ucache=${hcache} |
208 |
+ break |
209 |
+ fi |
210 |
+ done |
211 |
+ if [[ -n ${ucache} ]] ; then |
212 |
+ myconf+=( "--enable-hcache" ) |
213 |
+ else |
214 |
+ myconf+=( "--disable-hcache" ) |
215 |
+ fi |
216 |
+ for hcache in "${hcaches[@]}" ; do |
217 |
+ [[ ${hcache} == ${ucache} ]] \ |
218 |
+ && myconf+=( "--with-${hcache#*:}" ) \ |
219 |
+ || myconf+=( "--without-${hcache#*:}" ) |
220 |
+ done |
221 |
+ |
222 |
+ if use mbox; then |
223 |
+ myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
224 |
+ else |
225 |
+ myconf+=( "--with-homespool=Maildir" ) |
226 |
+ fi |
227 |
+ |
228 |
+ econf "${myconf[@]}" |
229 |
+} |
230 |
+ |
231 |
+src_install() { |
232 |
+ emake DESTDIR="${D}" install |
233 |
+ insinto /etc/${PN} |
234 |
+ if use mbox; then |
235 |
+ newins "${FILESDIR}"/Muttrc.mbox Muttrc |
236 |
+ else |
237 |
+ doins "${FILESDIR}"/Muttrc |
238 |
+ fi |
239 |
+ |
240 |
+ # include attachment settings, it's mandatory and shouldn't harm |
241 |
+ # when not being referenced (index_format using %X) |
242 |
+ { |
243 |
+ echo |
244 |
+ echo "# mandatory attachments settings, not setting these is a BUG!" |
245 |
+ echo "# see https://marc.info/?l=mutt-dev&m=158347284923517&w=2" |
246 |
+ grep '^attachments' "${ED}"/etc/${PN}/Muttrc.dist |
247 |
+ } >> "${ED}"/etc/${PN}/Muttrc |
248 |
+ |
249 |
+ # add setting to actually enable gpgme usage |
250 |
+ if use gpgme ; then |
251 |
+ { |
252 |
+ echo |
253 |
+ echo "# this setting enables the gpgme backend (via USE=gpgme)" |
254 |
+ # https is broken due to a certificate mismatch :( |
255 |
+ echo "# see http://www.mutt.org/doc/manual/#crypt-use-gpgme" |
256 |
+ echo "set crypt_use_gpgme = yes" |
257 |
+ } >> "${ED}"/etc/${PN}/Muttrc |
258 |
+ fi |
259 |
+ |
260 |
+ # A newer file is provided by app-misc/mime-types. So we link it. |
261 |
+ rm "${ED}"/etc/${PN}/mime.types |
262 |
+ dosym ../mime.types /etc/${PN}/mime.types |
263 |
+ |
264 |
+ # nuke manpages that should be provided by an MTA, bug #177605 |
265 |
+ rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
266 |
+ || ewarn "failed to remove files, please file a bug" |
267 |
+ |
268 |
+ if use !prefix ; then |
269 |
+ fowners root:mail /usr/bin/mutt_dotlock |
270 |
+ fperms g+s /usr/bin/mutt_dotlock |
271 |
+ fi |
272 |
+ |
273 |
+ dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
274 |
+} |
275 |
+ |
276 |
+pkg_postinst() { |
277 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
278 |
+ echo |
279 |
+ elog "If you are new to mutt you may want to take a look at" |
280 |
+ elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
281 |
+ elog " https://wiki.gentoo.org/wiki/Mutt" |
282 |
+ echo |
283 |
+ else |
284 |
+ elog "The multiple fcc patch was dropped in favour of an implementation" |
285 |
+ elog "from upstream. If you use the feature, review the new" |
286 |
+ elog " \$fcc_delimiter" |
287 |
+ elog "variable." |
288 |
+ fi |
289 |
+} |