1 |
commit: 256fdce3926b98ba0ecd04cf2ec32dd29c02a7d1 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 6 07:15:15 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 6 07:25:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=256fdce3 |
7 |
|
8 |
mail-client/mutt: cleanup old |
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 | 4 - |
14 |
mail-client/mutt/mutt-1.11.4.ebuild | 288 -------------------------------- |
15 |
mail-client/mutt/mutt-1.12.1.ebuild | 289 --------------------------------- |
16 |
mail-client/mutt/mutt-1.12.2-r1.ebuild | 289 --------------------------------- |
17 |
4 files changed, 870 deletions(-) |
18 |
|
19 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
20 |
index d510cb01f83..2a726abed65 100644 |
21 |
--- a/mail-client/mutt/Manifest |
22 |
+++ b/mail-client/mutt/Manifest |
23 |
@@ -1,10 +1,6 @@ |
24 |
DIST mutt-1.10.1.tar.gz 4255890 BLAKE2B 2a0e7629c42ba11ec5c3686d9c17e283ed9cb1f9874decec9453cf01ae0780c7993ac0104db7987571f27c04e408c1eff47d3b73918eb9754c253b6249ad48f4 SHA512 13509ff159c65e23614696967b4bd8baf7b8e16c0e85cfd89e2df8201de2dc97e6c4a426f5919f05051dee2b14f847c7203e0b236931d3cdf81dbbb221551726 |
25 |
-DIST mutt-1.11.4.tar.gz 4582417 BLAKE2B 750385cc90df0d34d35103883a9918f205830ea93e5ec9f33cd579d5c121d630b3074f1918fa0e8e5aa91edd503c7ba38c34785a8a96803d7af30d08a0966c4d SHA512 18c5bfa5c45ef70b3307afccf28f613a36de035f1b5c493f84f0571f7ba297cd0b25e01be9102a028c51c28c459c4bc62281da88926e16ce58c3c1407609e0eb |
26 |
-DIST mutt-1.12.1.tar.gz 4675166 BLAKE2B f1c073e05d60f41a8057d90074b7cbc2a882243b0c4b495b1b147356c83daad136d5574dd6a567c0180823e73d8fb79a38d316ab0b2c56731baed24fe9ad9890 SHA512 0101120ad2acab89552be210725bae1a903f0b2c48be7207750589d141236537823f27c39e8d700eee16eb6b978058d056180b3d51e45e0242546f176b971538 |
27 |
DIST mutt-1.12.2.tar.gz 4675774 BLAKE2B 0b0a4695f31db97437e7d6e52ca8e131376bd0ae168195a4a73c3d2230f43460000c5b623e39b89c5cc7bf5253e7ffad8f007b844a864fcde94baef1aa7369f9 SHA512 a824a056edef0c320b7633a39ab2421646442132190c2b2bf788ac39aaf7a0143d12847eb27290913d8ae793810bb6353803977610045b36235579001a1096bd |
28 |
DIST mutt-1.13.4.tar.gz 4901222 BLAKE2B 70ab2dcd93d860a2a1bc31059230f034bc87780e423f6a7ccd3b464d67c59d0f547ad2ae2ddfa42f07dc3d5ec9dea2e7302f92eeb2f5b9f722798ea80bf2fe1d SHA512 59ae13d7cef052818f38f6d52e2cb42251f393ecf622eae113bfa29218b541195471de822efbdb072c6f74a4dc385bb94fe27c37b44c62eac7e2a0a4e0c6adc3 |
29 |
DIST mutt-gentoo-1.10.1-patches-r0.tar.xz 108396 BLAKE2B 86edca04154f96efce27543326f8610dffba0085c7d69e82a7ac5f48ae9cd6662bcf6afa0e55b3d83ec054ee2eb86dff70b0c15a5170f41cc57887e17a661406 SHA512 1e0675803abc2bc116ef6e726f5009c43b0fb7bbf9bd3141a7cbbded51033695ddcc5228612f228cd19dae4181719e756a85e3fa2c8c9a9a4a9aefb4170bd5f5 |
30 |
-DIST mutt-gentoo-1.11.4-patches-r0.tar.xz 107064 BLAKE2B f8ad915fd0ceea729fdc14719e69c43751e75fd4afc9f19460d15493fd97baee9606703d7d6a8239a34b2c0d6f2458fc007277933bbc724b6a8588bb7514decd SHA512 57714259f802efe54e21cd23560bb158777b50320604db0a8ff8a47c25166a873d13d64b03eba4cb1c5067a586e7c64d9d0ba84ddbe0e179745e92d704a55cd1 |
31 |
-DIST mutt-gentoo-1.12.1-patches-r0.tar.xz 106064 BLAKE2B 60b73bcfd9713261c7b88fe74d70a630954511a38331c3e8e958ef7f6459b3bf8548211ee920fe238085c6481c03633cec21e7ae70c1473c89914ce720bd7c21 SHA512 feffbd49ad8156e226e7d4dc56b1c976f3f2a0f8dc3551c11696d5653342b91b4406a494d6081b969fe8267bf09a441a4f3c5a0014d108000e55c985aaafa596 |
32 |
DIST mutt-gentoo-1.12.2-patches-r1.tar.xz 106720 BLAKE2B 788735757dd4cf8c1d9fe09350eaf4780b1e90f1e1d9bf39c98ee03255b9b84847a387402940d1a05e4be2b8684688216ea62f564c40715cd6ccf4bebaeebdc0 SHA512 ec8c0989bff2008e6df0c43a8e833fb4f463993eacb1cbdd11722a6c49bb400804c80f74ac0073883a050f352a65d2743c4aebc882a2cd7db369a4e214a95701 |
33 |
DIST mutt-gentoo-1.13.4-patches-r0.tar.xz 36084 BLAKE2B 80f508d55199b036d7ba2a5b848dc99a4d60acea5edbc5b582472ee61c89f477fe613c043c6abf6fd4c9ef6c70acc0c656c2e93430b2fbce0aa39a8e0a0ef480 SHA512 775b22b667d67d1ddc9b2c15d208c52f00bc8e42cabc2985eb5f2983589476d5fc6eaab38230aeafd7e4dbcb6165eef33ea2d5721cc973d406ca4f736afd4c32 |
34 |
|
35 |
diff --git a/mail-client/mutt/mutt-1.11.4.ebuild b/mail-client/mutt/mutt-1.11.4.ebuild |
36 |
deleted file mode 100644 |
37 |
index 0b9a1ff5ceb..00000000000 |
38 |
--- a/mail-client/mutt/mutt-1.11.4.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,288 +0,0 @@ |
41 |
-# Copyright 1999-2020 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI="6" |
45 |
- |
46 |
-inherit eutils flag-o-matic autotools |
47 |
- |
48 |
-PATCHREV="r0" |
49 |
-PATCHSET="gentoo-${PVR}/${PATCHREV}" |
50 |
- |
51 |
-DESCRIPTION="A small but very powerful text-based mail client" |
52 |
-HOMEPAGE="http://www.mutt.org/" |
53 |
-MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
54 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
55 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
56 |
- https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
57 |
-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" |
58 |
-# hcache: allow multiple, bug #607360 |
59 |
-REQUIRED_USE=" |
60 |
- hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
61 |
- imap? ( ssl ) |
62 |
- pop? ( ssl ) |
63 |
- nntp? ( ssl ) |
64 |
- smime? ( ssl !gnutls ) |
65 |
- smime_classic? ( ssl !gnutls ) |
66 |
- smtp? ( ssl sasl ) |
67 |
- sasl? ( || ( imap pop smtp nntp ) ) |
68 |
- kerberos? ( || ( imap pop smtp nntp ) )" |
69 |
-SLOT="0" |
70 |
-LICENSE="GPL-2" |
71 |
-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" |
72 |
-# yes, we overdepend on the backend impls here, hopefully one day we can |
73 |
-# have REQUIRED_USE do what it is made for again. bug #607360 |
74 |
-CDEPEND=" |
75 |
- app-misc/mime-types |
76 |
- virtual/libiconv |
77 |
- |
78 |
- berkdb? ( >=sys-libs/db-4:= ) |
79 |
- gdbm? ( sys-libs/gdbm ) |
80 |
- lmdb? ( dev-db/lmdb:= ) |
81 |
- qdbm? ( dev-db/qdbm ) |
82 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
83 |
- |
84 |
- ssl? ( |
85 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
86 |
- !gnutls? ( |
87 |
- libressl? ( dev-libs/libressl:= ) |
88 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
89 |
- ) |
90 |
- ) |
91 |
- |
92 |
- nls? ( virtual/libintl ) |
93 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
94 |
- kerberos? ( virtual/krb5 ) |
95 |
- idn? ( net-dns/libidn2 ) |
96 |
- gpg? ( >=app-crypt/gpgme-0.9.0:= ) |
97 |
- gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
98 |
- notmuch? ( net-mail/notmuch:= ) |
99 |
- slang? ( sys-libs/slang ) |
100 |
- !slang? ( >=sys-libs/ncurses-5.2:0= ) |
101 |
-" |
102 |
-DEPEND="${CDEPEND} |
103 |
- net-mail/mailbase |
104 |
- doc? ( |
105 |
- dev-libs/libxml2 |
106 |
- dev-libs/libxslt |
107 |
- app-text/docbook-xsl-stylesheets |
108 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
109 |
- )" |
110 |
-RDEPEND="${CDEPEND} |
111 |
- selinux? ( sec-policy/selinux-mutt ) |
112 |
- smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
113 |
- smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
114 |
- crypt? ( app-crypt/gnupg ) |
115 |
- pgp_classic? ( app-crypt/gnupg ) |
116 |
-" |
117 |
- |
118 |
-src_prepare() { |
119 |
- local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
120 |
- |
121 |
- if use !vanilla ; then |
122 |
- # apply patches |
123 |
- export EPATCH_FORCE="yes" |
124 |
- export EPATCH_SUFFIX="patch" |
125 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
126 |
- local patches=( |
127 |
- patches-mutt |
128 |
- bugs-gentoo |
129 |
- features-common |
130 |
- features-extra |
131 |
- gentoo |
132 |
- ) |
133 |
- local patchset |
134 |
- for patchset in "${patches[@]}" ; do |
135 |
- [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
136 |
- einfo "Patches for ${PATCHSET} patchset ${patchset}" |
137 |
- EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
138 |
- || die "patchset ${patchset} failed" |
139 |
- done |
140 |
- # add some explanation as to why not to go upstream |
141 |
- sed -i \ |
142 |
- -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\\' \ |
143 |
- main.c || die "Failed to add bug instructions" |
144 |
- fi |
145 |
- |
146 |
- local upatches= |
147 |
- # allow user patches |
148 |
- eapply_user && upatches=" with user patches" |
149 |
- |
150 |
- # patch version string for bug reports |
151 |
- local patchset= |
152 |
- use vanilla || patchset=", ${PATCHSET}" |
153 |
- sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
154 |
- muttlib.c || die "failed patching in Gentoo version" |
155 |
- |
156 |
- # many patches touch the buildsystem, we always need this |
157 |
- AT_M4DIR="m4" eautoreconf |
158 |
- |
159 |
- # the configure script contains some "cleverness" whether or not to setgid |
160 |
- # the dotlock program, resulting in bugs like #278332 |
161 |
- sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
162 |
-} |
163 |
- |
164 |
-src_configure() { |
165 |
- local myconf=( |
166 |
- # signing and encryption |
167 |
- # clumpsy blocks for transition period of USE-flag renames |
168 |
- $(use crypt && use_enable crypt pgp) |
169 |
- $(use pgp_classic && use_enable pgp_classic pgp) |
170 |
- $(use !crypt && use !pgp_classic && echo "--disable-pgp") |
171 |
- |
172 |
- $(use smime && use_enable smime) |
173 |
- $(use smime_classic && use_enable smime_classic smime) |
174 |
- $(use !smime && use !smime_classic && echo "--disable-smime") |
175 |
- |
176 |
- $(use gpg && use_enable gpg gpgme) |
177 |
- $(use gpgme && use_enable gpgme) |
178 |
- $(use !gpg && use !gpgme && echo "--disable-gpgme") |
179 |
- |
180 |
- # features |
181 |
- $(use_enable debug) |
182 |
- $(use_enable doc) |
183 |
- $(use_enable nls) |
184 |
- $(use_enable notmuch) |
185 |
- |
186 |
- # protocols |
187 |
- $(use_enable imap) |
188 |
- $(use_enable pop) |
189 |
- $(use_enable nntp) |
190 |
- $(use_enable smtp) |
191 |
- |
192 |
- $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
193 |
- $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
194 |
- $(use !ssl && echo --without-gnutls --without-ssl) |
195 |
- |
196 |
- $(use_with sasl) |
197 |
- $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
198 |
- $(use_with kerberos gss) |
199 |
- "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
200 |
- "$(use_with !slang curses "${EPREFIX}"/usr)" |
201 |
- |
202 |
- "--enable-compressed" |
203 |
- "--enable-external-dotlock" |
204 |
- "--enable-iconv" |
205 |
- "--enable-nfs-fix" |
206 |
- "--enable-sidebar" |
207 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
208 |
- "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
209 |
- "--with-regex" |
210 |
- "--with-exec-shell=${EPREFIX}/bin/sh" |
211 |
- ) |
212 |
- |
213 |
- if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
214 |
- # arrows in index view do not show when using wchar_t |
215 |
- # or misalign due to wrong computations |
216 |
- myconf+=( "--without-wc-funcs" ) |
217 |
- fi |
218 |
- |
219 |
- # note: REQUIRED_USE should have selected only one of these, but for |
220 |
- # bug #607360 we're forced to allow multiple. For that reason, this |
221 |
- # list is ordered to preference, and only the first is taken. |
222 |
- local hcaches=( |
223 |
- "lmdb" |
224 |
- "qdbm" |
225 |
- "tokyocabinet" |
226 |
- "gdbm" |
227 |
- "berkdb:bdb" |
228 |
- ) |
229 |
- local ucache hcache lcache |
230 |
- for hcache in "${hcaches[@]}" ; do |
231 |
- if use ${hcache%%:*} ; then |
232 |
- ucache=${hcache} |
233 |
- break |
234 |
- fi |
235 |
- done |
236 |
- if [[ -n ${ucache} ]] ; then |
237 |
- myconf+=( "--enable-hcache" ) |
238 |
- else |
239 |
- myconf+=( "--disable-hcache" ) |
240 |
- fi |
241 |
- for hcache in "${hcaches[@]}" ; do |
242 |
- [[ ${hcache} == ${ucache} ]] \ |
243 |
- && myconf+=( "--with-${hcache#*:}" ) \ |
244 |
- || myconf+=( "--without-${hcache#*:}" ) |
245 |
- done |
246 |
- |
247 |
- if use mbox; then |
248 |
- myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
249 |
- else |
250 |
- myconf+=( "--with-homespool=Maildir" ) |
251 |
- fi |
252 |
- |
253 |
- econf "${myconf[@]}" |
254 |
-} |
255 |
- |
256 |
-src_install() { |
257 |
- emake DESTDIR="${D}" install |
258 |
- if use mbox; then |
259 |
- insinto /etc/mutt |
260 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
261 |
- else |
262 |
- insinto /etc/mutt |
263 |
- doins "${FILESDIR}"/Muttrc |
264 |
- fi |
265 |
- |
266 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
267 |
- rm "${ED}"/etc/${PN}/mime.types |
268 |
- dosym ../mime.types /etc/${PN}/mime.types |
269 |
- |
270 |
- # A man-page is always handy, so fake one |
271 |
- if use !doc; then |
272 |
- emake -C doc DESTDIR="${D}" muttrc.man |
273 |
- # make the fake slightly better, bug #413405 |
274 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
275 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
276 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
277 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
278 |
- doc/mutt.man > mutt.1 || die |
279 |
- cp doc/muttrc.man muttrc.5 || die |
280 |
- doman mutt.1 muttrc.5 |
281 |
- else |
282 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
283 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
284 |
- || ewarn "failed to remove files, please file a bug" |
285 |
- fi |
286 |
- |
287 |
- if use !prefix ; then |
288 |
- fowners root:mail /usr/bin/mutt_dotlock |
289 |
- fperms g+s /usr/bin/mutt_dotlock |
290 |
- fi |
291 |
- |
292 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
293 |
-} |
294 |
- |
295 |
-pkg_postinst() { |
296 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
297 |
- echo |
298 |
- elog "If you are new to mutt you may want to take a look at" |
299 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
300 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
301 |
- echo |
302 |
- else |
303 |
- ewarn "This release removes the conditional date feature in favour" |
304 |
- ewarn "of Dynamic \$index_format Content, see:" |
305 |
- ewarn " http://www.mutt.org/doc/manual/#index-format-hook" |
306 |
- fi |
307 |
- if use crypt || use gpg || use smime ; then |
308 |
- ewarn "Please note that the crypto related USE-flags of mutt have changed." |
309 |
- ewarn "To remove some unclarity, the following USE-flags are renamed:" |
310 |
- ewarn "(see https://bugs.gentoo.org/637176)" |
311 |
- ewarn " crypt -> pgp_classic" |
312 |
- ewarn " gpg -> gpgme" |
313 |
- ewarn " smime -> smime_classic" |
314 |
- ewarn "The old USE flags still work but their use is deprecated and will" |
315 |
- ewarn "be removed in a future release. Please update your package.use" |
316 |
- if use gpg && ( use crypt || use smime ) ; then |
317 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
318 |
- ewarn " support. You can probably remove pgp_classic (old crypt)" |
319 |
- ewarn " and smime_classic (old smime) from your USE-flags and" |
320 |
- ewarn " only enable gpgme." |
321 |
- fi |
322 |
- fi |
323 |
- if use gpgme ; then |
324 |
- ewarn "Note: in order for Mutt to actually use the gpgme backend" |
325 |
- ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc" |
326 |
- ewarn " https://www.mutt.org/doc/manual/#crypt-use-gpgme" |
327 |
- fi |
328 |
-} |
329 |
|
330 |
diff --git a/mail-client/mutt/mutt-1.12.1.ebuild b/mail-client/mutt/mutt-1.12.1.ebuild |
331 |
deleted file mode 100644 |
332 |
index 9520c1c482d..00000000000 |
333 |
--- a/mail-client/mutt/mutt-1.12.1.ebuild |
334 |
+++ /dev/null |
335 |
@@ -1,289 +0,0 @@ |
336 |
-# Copyright 1999-2020 Gentoo Authors |
337 |
-# Distributed under the terms of the GNU General Public License v2 |
338 |
- |
339 |
-EAPI="6" |
340 |
- |
341 |
-inherit eutils flag-o-matic autotools |
342 |
- |
343 |
-PATCHREV="r0" |
344 |
-PATCHSET="gentoo-${PVR}/${PATCHREV}" |
345 |
- |
346 |
-DESCRIPTION="A small but very powerful text-based mail client" |
347 |
-HOMEPAGE="http://www.mutt.org/" |
348 |
-MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
349 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
350 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
351 |
- https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
352 |
-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" |
353 |
-# hcache: allow multiple, bug #607360 |
354 |
-REQUIRED_USE=" |
355 |
- hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
356 |
- imap? ( ssl ) |
357 |
- pop? ( ssl ) |
358 |
- nntp? ( ssl ) |
359 |
- smime? ( ssl !gnutls ) |
360 |
- smime_classic? ( ssl !gnutls ) |
361 |
- smtp? ( ssl sasl ) |
362 |
- sasl? ( || ( imap pop smtp nntp ) ) |
363 |
- kerberos? ( || ( imap pop smtp nntp ) ) |
364 |
- vanilla? ( !nntp !notmuch )" |
365 |
-SLOT="0" |
366 |
-LICENSE="GPL-2" |
367 |
-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" |
368 |
-# yes, we overdepend on the backend impls here, hopefully one day we can |
369 |
-# have REQUIRED_USE do what it is made for again. bug #607360 |
370 |
-CDEPEND=" |
371 |
- app-misc/mime-types |
372 |
- virtual/libiconv |
373 |
- |
374 |
- berkdb? ( >=sys-libs/db-4:= ) |
375 |
- gdbm? ( sys-libs/gdbm ) |
376 |
- lmdb? ( dev-db/lmdb:= ) |
377 |
- qdbm? ( dev-db/qdbm ) |
378 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
379 |
- |
380 |
- ssl? ( |
381 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
382 |
- !gnutls? ( |
383 |
- libressl? ( dev-libs/libressl:= ) |
384 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
385 |
- ) |
386 |
- ) |
387 |
- |
388 |
- nls? ( virtual/libintl ) |
389 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
390 |
- kerberos? ( virtual/krb5 ) |
391 |
- idn? ( net-dns/libidn2 ) |
392 |
- gpg? ( >=app-crypt/gpgme-0.9.0:= ) |
393 |
- gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
394 |
- notmuch? ( net-mail/notmuch:= ) |
395 |
- slang? ( sys-libs/slang ) |
396 |
- !slang? ( >=sys-libs/ncurses-5.2:0= ) |
397 |
-" |
398 |
-DEPEND="${CDEPEND} |
399 |
- net-mail/mailbase |
400 |
- doc? ( |
401 |
- dev-libs/libxml2 |
402 |
- dev-libs/libxslt |
403 |
- app-text/docbook-xsl-stylesheets |
404 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
405 |
- )" |
406 |
-RDEPEND="${CDEPEND} |
407 |
- selinux? ( sec-policy/selinux-mutt ) |
408 |
- smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
409 |
- smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
410 |
- crypt? ( app-crypt/gnupg ) |
411 |
- pgp_classic? ( app-crypt/gnupg ) |
412 |
-" |
413 |
- |
414 |
-src_prepare() { |
415 |
- local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
416 |
- |
417 |
- if use !vanilla ; then |
418 |
- # apply patches |
419 |
- export EPATCH_FORCE="yes" |
420 |
- export EPATCH_SUFFIX="patch" |
421 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
422 |
- local patches=( |
423 |
- patches-mutt |
424 |
- bugs-gentoo |
425 |
- features-common |
426 |
- features-extra |
427 |
- gentoo |
428 |
- ) |
429 |
- local patchset |
430 |
- for patchset in "${patches[@]}" ; do |
431 |
- [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
432 |
- einfo "Patches for ${PATCHSET} patchset ${patchset}" |
433 |
- EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
434 |
- || die "patchset ${patchset} failed" |
435 |
- done |
436 |
- # add some explanation as to why not to go upstream |
437 |
- sed -i \ |
438 |
- -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\\' \ |
439 |
- main.c || die "Failed to add bug instructions" |
440 |
- fi |
441 |
- |
442 |
- local upatches= |
443 |
- # allow user patches |
444 |
- eapply_user && upatches=" with user patches" |
445 |
- |
446 |
- # patch version string for bug reports |
447 |
- local patchset= |
448 |
- use vanilla || patchset=", ${PATCHSET}" |
449 |
- sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
450 |
- muttlib.c || die "failed patching in Gentoo version" |
451 |
- |
452 |
- # many patches touch the buildsystem, we always need this |
453 |
- AT_M4DIR="m4" eautoreconf |
454 |
- |
455 |
- # the configure script contains some "cleverness" whether or not to setgid |
456 |
- # the dotlock program, resulting in bugs like #278332 |
457 |
- sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
458 |
-} |
459 |
- |
460 |
-src_configure() { |
461 |
- local myconf=( |
462 |
- # signing and encryption |
463 |
- # clumpsy blocks for transition period of USE-flag renames |
464 |
- $(use crypt && use_enable crypt pgp) |
465 |
- $(use pgp_classic && use_enable pgp_classic pgp) |
466 |
- $(use !crypt && use !pgp_classic && echo "--disable-pgp") |
467 |
- |
468 |
- $(use smime && use_enable smime) |
469 |
- $(use smime_classic && use_enable smime_classic smime) |
470 |
- $(use !smime && use !smime_classic && echo "--disable-smime") |
471 |
- |
472 |
- $(use gpg && use_enable gpg gpgme) |
473 |
- $(use gpgme && use_enable gpgme) |
474 |
- $(use !gpg && use !gpgme && echo "--disable-gpgme") |
475 |
- |
476 |
- # features |
477 |
- $(use_enable debug) |
478 |
- $(use_enable doc) |
479 |
- $(use_enable nls) |
480 |
- $(use_enable notmuch) |
481 |
- |
482 |
- # protocols |
483 |
- $(use_enable imap) |
484 |
- $(use_enable pop) |
485 |
- $(use_enable nntp) |
486 |
- $(use_enable smtp) |
487 |
- |
488 |
- $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
489 |
- $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
490 |
- $(use !ssl && echo --without-gnutls --without-ssl) |
491 |
- |
492 |
- $(use_with sasl) |
493 |
- $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
494 |
- $(use_with kerberos gss) |
495 |
- "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
496 |
- "$(use_with !slang curses "${EPREFIX}"/usr)" |
497 |
- |
498 |
- "--enable-compressed" |
499 |
- "--enable-external-dotlock" |
500 |
- "--enable-iconv" |
501 |
- "--enable-nfs-fix" |
502 |
- "--enable-sidebar" |
503 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
504 |
- "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
505 |
- "--with-regex" |
506 |
- "--with-exec-shell=${EPREFIX}/bin/sh" |
507 |
- ) |
508 |
- |
509 |
- if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
510 |
- # arrows in index view do not show when using wchar_t |
511 |
- # or misalign due to wrong computations |
512 |
- myconf+=( "--without-wc-funcs" ) |
513 |
- fi |
514 |
- |
515 |
- # note: REQUIRED_USE should have selected only one of these, but for |
516 |
- # bug #607360 we're forced to allow multiple. For that reason, this |
517 |
- # list is ordered to preference, and only the first is taken. |
518 |
- local hcaches=( |
519 |
- "lmdb" |
520 |
- "qdbm" |
521 |
- "tokyocabinet" |
522 |
- "gdbm" |
523 |
- "berkdb:bdb" |
524 |
- ) |
525 |
- local ucache hcache lcache |
526 |
- for hcache in "${hcaches[@]}" ; do |
527 |
- if use ${hcache%%:*} ; then |
528 |
- ucache=${hcache} |
529 |
- break |
530 |
- fi |
531 |
- done |
532 |
- if [[ -n ${ucache} ]] ; then |
533 |
- myconf+=( "--enable-hcache" ) |
534 |
- else |
535 |
- myconf+=( "--disable-hcache" ) |
536 |
- fi |
537 |
- for hcache in "${hcaches[@]}" ; do |
538 |
- [[ ${hcache} == ${ucache} ]] \ |
539 |
- && myconf+=( "--with-${hcache#*:}" ) \ |
540 |
- || myconf+=( "--without-${hcache#*:}" ) |
541 |
- done |
542 |
- |
543 |
- if use mbox; then |
544 |
- myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
545 |
- else |
546 |
- myconf+=( "--with-homespool=Maildir" ) |
547 |
- fi |
548 |
- |
549 |
- econf "${myconf[@]}" |
550 |
-} |
551 |
- |
552 |
-src_install() { |
553 |
- emake DESTDIR="${D}" install |
554 |
- if use mbox; then |
555 |
- insinto /etc/mutt |
556 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
557 |
- else |
558 |
- insinto /etc/mutt |
559 |
- doins "${FILESDIR}"/Muttrc |
560 |
- fi |
561 |
- |
562 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
563 |
- rm "${ED}"/etc/${PN}/mime.types |
564 |
- dosym ../mime.types /etc/${PN}/mime.types |
565 |
- |
566 |
- # A man-page is always handy, so fake one |
567 |
- if use !doc; then |
568 |
- emake -C doc DESTDIR="${D}" muttrc.man |
569 |
- # make the fake slightly better, bug #413405 |
570 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
571 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
572 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
573 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
574 |
- doc/mutt.man > mutt.1 || die |
575 |
- cp doc/muttrc.man muttrc.5 || die |
576 |
- doman mutt.1 muttrc.5 |
577 |
- else |
578 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
579 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
580 |
- || ewarn "failed to remove files, please file a bug" |
581 |
- fi |
582 |
- |
583 |
- if use !prefix ; then |
584 |
- fowners root:mail /usr/bin/mutt_dotlock |
585 |
- fperms g+s /usr/bin/mutt_dotlock |
586 |
- fi |
587 |
- |
588 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
589 |
-} |
590 |
- |
591 |
-pkg_postinst() { |
592 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
593 |
- echo |
594 |
- elog "If you are new to mutt you may want to take a look at" |
595 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
596 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
597 |
- echo |
598 |
- else |
599 |
- ewarn "This release removes the conditional date feature in favour" |
600 |
- ewarn "of Dynamic \$index_format Content, see:" |
601 |
- ewarn " http://www.mutt.org/doc/manual/#index-format-hook" |
602 |
- fi |
603 |
- if use crypt || use gpg || use smime ; then |
604 |
- ewarn "Please note that the crypto related USE-flags of mutt have changed." |
605 |
- ewarn "To remove some unclarity, the following USE-flags are renamed:" |
606 |
- ewarn "(see https://bugs.gentoo.org/637176)" |
607 |
- ewarn " crypt -> pgp_classic" |
608 |
- ewarn " gpg -> gpgme" |
609 |
- ewarn " smime -> smime_classic" |
610 |
- ewarn "The old USE flags still work but their use is deprecated and will" |
611 |
- ewarn "be removed in a future release. Please update your package.use" |
612 |
- if use gpg && ( use crypt || use smime ) ; then |
613 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
614 |
- ewarn " support. You can probably remove pgp_classic (old crypt)" |
615 |
- ewarn " and smime_classic (old smime) from your USE-flags and" |
616 |
- ewarn " only enable gpgme." |
617 |
- fi |
618 |
- fi |
619 |
- if use gpgme ; then |
620 |
- ewarn "Note: in order for Mutt to actually use the gpgme backend" |
621 |
- ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc" |
622 |
- ewarn " https://www.mutt.org/doc/manual/#crypt-use-gpgme" |
623 |
- fi |
624 |
-} |
625 |
|
626 |
diff --git a/mail-client/mutt/mutt-1.12.2-r1.ebuild b/mail-client/mutt/mutt-1.12.2-r1.ebuild |
627 |
deleted file mode 100644 |
628 |
index cfee64ff6e1..00000000000 |
629 |
--- a/mail-client/mutt/mutt-1.12.2-r1.ebuild |
630 |
+++ /dev/null |
631 |
@@ -1,289 +0,0 @@ |
632 |
-# Copyright 1999-2020 Gentoo Authors |
633 |
-# Distributed under the terms of the GNU General Public License v2 |
634 |
- |
635 |
-EAPI="6" |
636 |
- |
637 |
-inherit eutils flag-o-matic autotools |
638 |
- |
639 |
-PATCHREV="r1" |
640 |
-PATCHSET="gentoo-${PVR}/${PATCHREV}" |
641 |
- |
642 |
-DESCRIPTION="A small but very powerful text-based mail client" |
643 |
-HOMEPAGE="http://www.mutt.org/" |
644 |
-MUTT_G_PATCHES="mutt-gentoo-${PV}-patches-${PATCHREV}.tar.xz" |
645 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
646 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
647 |
- https://dev.gentoo.org/~grobian/distfiles/${MUTT_G_PATCHES}" |
648 |
-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" |
649 |
-# hcache: allow multiple, bug #607360 |
650 |
-REQUIRED_USE=" |
651 |
- hcache? ( || ( berkdb gdbm lmdb qdbm tokyocabinet ) ) |
652 |
- imap? ( ssl ) |
653 |
- pop? ( ssl ) |
654 |
- nntp? ( ssl ) |
655 |
- smime? ( ssl !gnutls ) |
656 |
- smime_classic? ( ssl !gnutls ) |
657 |
- smtp? ( ssl sasl ) |
658 |
- sasl? ( || ( imap pop smtp nntp ) ) |
659 |
- kerberos? ( || ( imap pop smtp nntp ) ) |
660 |
- vanilla? ( !nntp !notmuch )" |
661 |
-SLOT="0" |
662 |
-LICENSE="GPL-2" |
663 |
-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" |
664 |
-# yes, we overdepend on the backend impls here, hopefully one day we can |
665 |
-# have REQUIRED_USE do what it is made for again. bug #607360 |
666 |
-CDEPEND=" |
667 |
- app-misc/mime-types |
668 |
- virtual/libiconv |
669 |
- |
670 |
- berkdb? ( >=sys-libs/db-4:= ) |
671 |
- gdbm? ( sys-libs/gdbm ) |
672 |
- lmdb? ( dev-db/lmdb:= ) |
673 |
- qdbm? ( dev-db/qdbm ) |
674 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
675 |
- |
676 |
- ssl? ( |
677 |
- gnutls? ( >=net-libs/gnutls-1.0.17:= ) |
678 |
- !gnutls? ( |
679 |
- libressl? ( dev-libs/libressl:= ) |
680 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0= ) |
681 |
- ) |
682 |
- ) |
683 |
- |
684 |
- nls? ( virtual/libintl ) |
685 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
686 |
- kerberos? ( virtual/krb5 ) |
687 |
- idn? ( net-dns/libidn2 ) |
688 |
- gpg? ( >=app-crypt/gpgme-0.9.0:= ) |
689 |
- gpgme? ( >=app-crypt/gpgme-0.9.0:= ) |
690 |
- notmuch? ( net-mail/notmuch:= ) |
691 |
- slang? ( sys-libs/slang ) |
692 |
- !slang? ( >=sys-libs/ncurses-5.2:0= ) |
693 |
-" |
694 |
-DEPEND="${CDEPEND} |
695 |
- net-mail/mailbase |
696 |
- doc? ( |
697 |
- dev-libs/libxml2 |
698 |
- dev-libs/libxslt |
699 |
- app-text/docbook-xsl-stylesheets |
700 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
701 |
- )" |
702 |
-RDEPEND="${CDEPEND} |
703 |
- selinux? ( sec-policy/selinux-mutt ) |
704 |
- smime? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
705 |
- smime_classic? ( || ( dev-libs/libressl >=dev-libs/openssl-0.9.6:0 ) ) |
706 |
- crypt? ( app-crypt/gnupg ) |
707 |
- pgp_classic? ( app-crypt/gnupg ) |
708 |
-" |
709 |
- |
710 |
-src_prepare() { |
711 |
- local PATCHDIR="${WORKDIR}"/mutt-gentoo-${PV}-patches-${PATCHREV} |
712 |
- |
713 |
- if use !vanilla ; then |
714 |
- # apply patches |
715 |
- export EPATCH_FORCE="yes" |
716 |
- export EPATCH_SUFFIX="patch" |
717 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/file/mutt-1.10 |
718 |
- local patches=( |
719 |
- patches-mutt |
720 |
- bugs-gentoo |
721 |
- features-common |
722 |
- features-extra |
723 |
- gentoo |
724 |
- ) |
725 |
- local patchset |
726 |
- for patchset in "${patches[@]}" ; do |
727 |
- [[ -d "${PATCHDIR}/${patchset}" ]] || continue |
728 |
- einfo "Patches for ${PATCHSET} patchset ${patchset}" |
729 |
- EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
730 |
- || die "patchset ${patchset} failed" |
731 |
- done |
732 |
- # add some explanation as to why not to go upstream |
733 |
- sed -i \ |
734 |
- -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\\' \ |
735 |
- main.c || die "Failed to add bug instructions" |
736 |
- fi |
737 |
- |
738 |
- local upatches= |
739 |
- # allow user patches |
740 |
- eapply_user && upatches=" with user patches" |
741 |
- |
742 |
- # patch version string for bug reports |
743 |
- local patchset= |
744 |
- use vanilla || patchset=", ${PATCHSET}" |
745 |
- sed -i -e 's|"Mutt %s (%s)"|"Mutt %s (%s'"${patchset}${upatches}"')"|' \ |
746 |
- muttlib.c || die "failed patching in Gentoo version" |
747 |
- |
748 |
- # many patches touch the buildsystem, we always need this |
749 |
- AT_M4DIR="m4" eautoreconf |
750 |
- |
751 |
- # the configure script contains some "cleverness" whether or not to setgid |
752 |
- # the dotlock program, resulting in bugs like #278332 |
753 |
- sed -i -e 's/@DOTLOCK_GROUP@//' Makefile.in || die "sed failed" |
754 |
-} |
755 |
- |
756 |
-src_configure() { |
757 |
- local myconf=( |
758 |
- # signing and encryption |
759 |
- # clumpsy blocks for transition period of USE-flag renames |
760 |
- $(use crypt && use_enable crypt pgp) |
761 |
- $(use pgp_classic && use_enable pgp_classic pgp) |
762 |
- $(use !crypt && use !pgp_classic && echo "--disable-pgp") |
763 |
- |
764 |
- $(use smime && use_enable smime) |
765 |
- $(use smime_classic && use_enable smime_classic smime) |
766 |
- $(use !smime && use !smime_classic && echo "--disable-smime") |
767 |
- |
768 |
- $(use gpg && use_enable gpg gpgme) |
769 |
- $(use gpgme && use_enable gpgme) |
770 |
- $(use !gpg && use !gpgme && echo "--disable-gpgme") |
771 |
- |
772 |
- # features |
773 |
- $(use_enable debug) |
774 |
- $(use_enable doc) |
775 |
- $(use_enable nls) |
776 |
- $(use_enable notmuch) |
777 |
- |
778 |
- # protocols |
779 |
- $(use_enable imap) |
780 |
- $(use_enable pop) |
781 |
- $(use_enable nntp) |
782 |
- $(use_enable smtp) |
783 |
- |
784 |
- $(use ssl && use gnutls && echo --with-gnutls --without-ssl) |
785 |
- $(use ssl && use !gnutls && echo --without-gnutls --with-ssl ) |
786 |
- $(use !ssl && echo --without-gnutls --without-ssl) |
787 |
- |
788 |
- $(use_with sasl) |
789 |
- $(use_with idn idn2) --without-idn # avoid automagic libidn dep |
790 |
- $(use_with kerberos gss) |
791 |
- "$(use slang && echo --with-slang="${EPREFIX}"/usr || echo a=b)" |
792 |
- "$(use_with !slang curses "${EPREFIX}"/usr)" |
793 |
- |
794 |
- "--enable-compressed" |
795 |
- "--enable-external-dotlock" |
796 |
- "--enable-iconv" |
797 |
- "--enable-nfs-fix" |
798 |
- "--enable-sidebar" |
799 |
- "--sysconfdir=${EPREFIX}/etc/${PN}" |
800 |
- "--with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR}" |
801 |
- "--with-regex" |
802 |
- "--with-exec-shell=${EPREFIX}/bin/sh" |
803 |
- ) |
804 |
- |
805 |
- if [[ ${CHOST} == *-solaris2.* && ${CHOST#*-solaris2.} -le 10 ]] ; then |
806 |
- # arrows in index view do not show when using wchar_t |
807 |
- # or misalign due to wrong computations |
808 |
- myconf+=( "--without-wc-funcs" ) |
809 |
- fi |
810 |
- |
811 |
- # note: REQUIRED_USE should have selected only one of these, but for |
812 |
- # bug #607360 we're forced to allow multiple. For that reason, this |
813 |
- # list is ordered to preference, and only the first is taken. |
814 |
- local hcaches=( |
815 |
- "lmdb" |
816 |
- "qdbm" |
817 |
- "tokyocabinet" |
818 |
- "gdbm" |
819 |
- "berkdb:bdb" |
820 |
- ) |
821 |
- local ucache hcache lcache |
822 |
- for hcache in "${hcaches[@]}" ; do |
823 |
- if use ${hcache%%:*} ; then |
824 |
- ucache=${hcache} |
825 |
- break |
826 |
- fi |
827 |
- done |
828 |
- if [[ -n ${ucache} ]] ; then |
829 |
- myconf+=( "--enable-hcache" ) |
830 |
- else |
831 |
- myconf+=( "--disable-hcache" ) |
832 |
- fi |
833 |
- for hcache in "${hcaches[@]}" ; do |
834 |
- [[ ${hcache} == ${ucache} ]] \ |
835 |
- && myconf+=( "--with-${hcache#*:}" ) \ |
836 |
- || myconf+=( "--without-${hcache#*:}" ) |
837 |
- done |
838 |
- |
839 |
- if use mbox; then |
840 |
- myconf+=( "--with-mailpath=${EPREFIX}/var/spool/mail" ) |
841 |
- else |
842 |
- myconf+=( "--with-homespool=Maildir" ) |
843 |
- fi |
844 |
- |
845 |
- econf "${myconf[@]}" |
846 |
-} |
847 |
- |
848 |
-src_install() { |
849 |
- emake DESTDIR="${D}" install |
850 |
- if use mbox; then |
851 |
- insinto /etc/mutt |
852 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
853 |
- else |
854 |
- insinto /etc/mutt |
855 |
- doins "${FILESDIR}"/Muttrc |
856 |
- fi |
857 |
- |
858 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
859 |
- rm "${ED}"/etc/${PN}/mime.types |
860 |
- dosym ../mime.types /etc/${PN}/mime.types |
861 |
- |
862 |
- # A man-page is always handy, so fake one |
863 |
- if use !doc; then |
864 |
- emake -C doc DESTDIR="${D}" muttrc.man |
865 |
- # make the fake slightly better, bug #413405 |
866 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
867 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
868 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
869 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
870 |
- doc/mutt.man > mutt.1 || die |
871 |
- cp doc/muttrc.man muttrc.5 || die |
872 |
- doman mutt.1 muttrc.5 |
873 |
- else |
874 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
875 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
876 |
- || ewarn "failed to remove files, please file a bug" |
877 |
- fi |
878 |
- |
879 |
- if use !prefix ; then |
880 |
- fowners root:mail /usr/bin/mutt_dotlock |
881 |
- fperms g+s /usr/bin/mutt_dotlock |
882 |
- fi |
883 |
- |
884 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
885 |
-} |
886 |
- |
887 |
-pkg_postinst() { |
888 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
889 |
- echo |
890 |
- elog "If you are new to mutt you may want to take a look at" |
891 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
892 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
893 |
- echo |
894 |
- else |
895 |
- ewarn "This release removes the conditional date feature in favour" |
896 |
- ewarn "of Dynamic \$index_format Content, see:" |
897 |
- ewarn " http://www.mutt.org/doc/manual/#index-format-hook" |
898 |
- fi |
899 |
- if use crypt || use gpg || use smime ; then |
900 |
- ewarn "Please note that the crypto related USE-flags of mutt have changed." |
901 |
- ewarn "To remove some unclarity, the following USE-flags are renamed:" |
902 |
- ewarn "(see https://bugs.gentoo.org/637176)" |
903 |
- ewarn " crypt -> pgp_classic" |
904 |
- ewarn " gpg -> gpgme" |
905 |
- ewarn " smime -> smime_classic" |
906 |
- ewarn "The old USE flags still work but their use is deprecated and will" |
907 |
- ewarn "be removed in a future release. Please update your package.use" |
908 |
- if use gpg && ( use crypt || use smime ) ; then |
909 |
- ewarn " Note that gpgme (old gpg) includes both pgp and smime" |
910 |
- ewarn " support. You can probably remove pgp_classic (old crypt)" |
911 |
- ewarn " and smime_classic (old smime) from your USE-flags and" |
912 |
- ewarn " only enable gpgme." |
913 |
- fi |
914 |
- fi |
915 |
- if use gpgme ; then |
916 |
- ewarn "Note: in order for Mutt to actually use the gpgme backend" |
917 |
- ewarn " you MUST include 'set crypt_use_gpgme=yes' in .muttrc" |
918 |
- ewarn " https://www.mutt.org/doc/manual/#crypt-use-gpgme" |
919 |
- fi |
920 |
-} |