1 |
commit: c194bd87ebd69a55fcfe0f62b41389ca7bd16caa |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 22 09:33:22 2016 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 22 09:33:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c194bd87 |
7 |
|
8 |
mail-client/mutt: remove old |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
mail-client/mutt/Manifest | 5 - |
13 |
mail-client/mutt/mutt-1.5.23-r5.ebuild | 250 ----------------------------- |
14 |
mail-client/mutt/mutt-1.5.23-r8.ebuild | 252 ------------------------------ |
15 |
mail-client/mutt/mutt-1.5.24-r1.ebuild | 254 ------------------------------ |
16 |
mail-client/mutt/mutt-1.6.0-r2.ebuild | 277 --------------------------------- |
17 |
mail-client/mutt/mutt-1.6.1-r2.ebuild | 260 ------------------------------- |
18 |
6 files changed, 1298 deletions(-) |
19 |
|
20 |
diff --git a/mail-client/mutt/Manifest b/mail-client/mutt/Manifest |
21 |
index b02eeb1..8825d7a 100644 |
22 |
--- a/mail-client/mutt/Manifest |
23 |
+++ b/mail-client/mutt/Manifest |
24 |
@@ -1,13 +1,8 @@ |
25 |
-DIST mutt-1.5.23-gentoo-patches-r5.tar.bz2 127745 SHA256 a2c457071b17fc1886c8f0d24728df388c5c90eed3276783db061b92212786f3 SHA512 8f89abcca7048a24f5e37190b479f724eb51eb6a1703bc419c9f200f4ad1cb544fa7283ea6d76519f002aed26c9c2f54bd14e89b845001755a0b98e3317b39f8 WHIRLPOOL 04843ec6df35a34b2f601caaff60c6cd2fe16ab66946c6ab0a3be0ff4570743fdc365f7fb28c00c16b6d88e299d0b1b8fac86e8936474e170d1f0d2331209e2c |
26 |
DIST mutt-1.5.23-gentoo-patches-r7.tar.bz2 167553 SHA256 354bd25bdba4f58b4bfcbc84b451199d0d801c239b7e610ff0ec3e76e838741e SHA512 7e7090d7bf74d3d0cc59facc3715f2671a5a2b82ab794b1e1b2b6178ff4059854b3fe6f5b3e3833381d24f7150bea2b8542f26e7ea29aa72752bda1ac3051b29 WHIRLPOOL 0e2f37efdcb4195c5d9d3ec7c859a1f1fa2316907e4b6352c470701ef3613e41502deccd3ca45b5a3e60e5353612b339a26f8c649d2813a0898d67a3802a1a99 |
27 |
-DIST mutt-1.5.23-gentoo-patches-r8.tar.bz2 167959 SHA256 30aed5383b77321b92e407b53d759d72ab6da105771a65cecbb07eae191e496b SHA512 5f88217f0fa94e5eb08aa574b1bfa78a512528eaff8127487c8fd3d3e9c59fb9090a11c3f72beff28ca36a3dd5a8ab155f9de880d332836a0ac12e72b64640f8 WHIRLPOOL 994e0bd6a80d4fbcd523d71cf7615deaa46f5e1753fdb5967730e0013cbb8de0d6ceba3c01ea015e3b363fb395456db7507f75fb52e860e28c03e71371acd2b6 |
28 |
DIST mutt-1.5.23.tar.gz 3782032 SHA256 3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37 SHA512 f1b4a7230253651857f61bd7215cce870a613012f613d4c907d401556083726c8ed7d429d57a8bf858c3b5b23683380d4c1494540d86ca80813e22cb6b95bc1e WHIRLPOOL b5a676d204aece8c572d57a027fa5a402b7afe8e5b7d4c83b2d1b1612eb0ac5cb58cd225757732a017f03444e0ea42dacffcf1cf2d46c18ae92d7d3306059c61 |
29 |
DIST mutt-1.5.24-gentoo-patches-r1.tar.bz2 118546 SHA256 411ad728404f4e7743b82bb79020776ce5bdf614772c387b15992e14f7c444d2 SHA512 c19e6627683b91119bbbfcd5b3250cb3fb79ff9d62b45861002c50ac232f65447744313921fe10a517efb9cb93f5638615d5b8ce1dd946fab3083bd9eaffefc1 WHIRLPOOL cbd1a3858e3b187117e26718066a2f2dd9c690aca3a77b050142d12b96599adada1a8a723b91b000f9eda92d9ceed284a1ac5cdd243de8085a233f01fac003d7 |
30 |
DIST mutt-1.5.24.tar.gz 3897115 SHA256 a292ca765ed7b19db4ac495938a3ef808a16193b7d623d65562bb8feb2b42200 SHA512 f7fe7edf9d1701a8e92761b1f5e6ef2e3a3b513af7898872cbe36a8800714cb76945788a60d2008820c57bc5344a4147e2686f690da42cfc8a912e3a432452b1 WHIRLPOOL 35408cabab100e688f8c6d0d598f79144b7c72fb31f41a720acb9a6381e7ca94d66e640fe1178b911cfb16dfde4c982362c4c78ea203aef3a3dbcba09dcdc023 |
31 |
-DIST mutt-1.6.0-gentoo-patches-r6.tar.xz 102716 SHA256 7130215f78f69389d9c2520db0ef568c23d9cf508cfec9c058c846b01c53cce6 SHA512 60d47196a3daee1b976bc8a48b0b2f5b73e08106765bfad9cc5a63f9078fea1f86c2ed20365da9f36392b87f1da32a16646c4a20e76ab621038d3b5af388ee5f WHIRLPOOL 445b9d2f33c3a5cbc53cacdf6417945fcd95b8b99e76b77593dd68895f592beed64c44142d7df5467b3f22984d473e150f96e02a7e2d0177621361067457947f |
32 |
-DIST mutt-1.6.0.tar.gz 3954591 SHA256 29afb6238ab7a540c0e3a78ce25c970f975ab6c0f0bc9f919993aab772136c19 SHA512 601d5f70c7cd30903799714cd85b80f9650a029e621d044075e123656411dde809d5cef24a40ba49860bc242cf4a0b914c703deb5a7125b3a24eeb93f4ae3c4c WHIRLPOOL 4d0271ab703ec7fdadc49861921bb4728ee2e88629c45f286647982efa2b1021f07b929a745622961d8cd007941975cee1c29718536fd753563eb74e7670beac |
33 |
DIST mutt-1.6.1-gentoo-patches-r5.tar.xz 173228 SHA256 cce80ae3b385ed43bedb3674859cb971644c71dde2ac4b00ce4fd94e52eda6a1 SHA512 c328fa30cf0e3ed14753d0c95daac62d295dfb5c4482323b7bfdc7af89e3d4563678101e74d39c8cdccd40f49e8fca5becd1a211c75e44f66e85190bc8b0ee64 WHIRLPOOL 9893878cc6c262b0564920b71d2e906c2f8b0c199e3f7e6883779be63b0af03fdc7a581bc8295c038fb2184d7114a8446356785eb0dfb2680e747e897f6983b4 |
34 |
-DIST mutt-1.6.1-neomutt-patches-3d90396616d009a7dcbfbb17d8a74b3eee70bd9a.zip 538034 SHA256 d76441eb51295afccc060bfee40ef03ab1b865de1187ea1f26349281d11784a6 SHA512 ca5334c9d0a295cba8749d1d7315d6d7a8ac93f48cfd9a1e112f9b5dd61f808966ec320464aab282cc626c08764294844368dca1520bc9dc6029c12004b7bb50 WHIRLPOOL b14ae9b58c6ba81956caefe049a0c6706436700e060402a9d869d9b98b61d74df5478dd07ee9cd520c4e6012a22b01d29857f74a8e3955680948e06f4e04cbec |
35 |
DIST mutt-1.6.1.tar.gz 3956840 SHA256 98b26cecc6b1713082fc880344fa345c20bd7ded6459abe18c84429c7cf8ed20 SHA512 a45c7bc681ea31a6ee37e95a11f3ec84f580478367250c80eaf5aceeba87e34411346a8b7e80a0f236c507cec1199ddc3ccf4596b81d7e31c235099dccdd4fd5 WHIRLPOOL 8cc8e699fbf1832eb411f4f3d59eac57450afade4ddfee3ecb89c0bbaaa92414779f8f2015ec05a9ed19deb88b40298b2f786afb91acbfc2a44a3f8f4876a712 |
36 |
DIST mutt-1.6.2-patches-neomutt-20160710.tar.gz 498925 SHA256 9bceb0cbc66ccbdebe9d6e043125a4589586bc8bfded61168f9ed0a9956f6d67 SHA512 1d9aa8f29cef200c84fbb0e33b1c6d5f9abffb1b038bacf1a1da3b35e9faa2dc6cc43656eaf5a8e3f6ee2af3f999ccee54ce0e842950ac7b7036e83fdbcb8d04 WHIRLPOOL fae79c8d419f8c3cc1e527c9b4f20c2b1257c3e86fac066f6fc9dafe8262417a181685f8d3f2cabfed34fcb1dd42077171a89ac1f04b0ca6d7f8ee74d3e16ed6 |
37 |
DIST mutt-1.6.2.tar.gz 3956745 SHA256 c5d02ef06486cdf04f9eeb9e9d7994890d8dfa7f47e7bfeb53a2a67da2ac1d8e SHA512 c4348ba55459a2f9d5bedda1ec63b7520c0bdcd285bf791972dbd11a947be47e7c88b02c7d244e65c7c0f1be252c43240b570457a5812bf8160611bba7b01916 WHIRLPOOL 4adf29c59dffa50f5e7c8500a81f89ddbda894ade20bc3110cbedefbcdd7db3c2e84aae78d0cb4bc74930a94256738a3b0b1880b840fd81ec433b23b609887de |
38 |
|
39 |
diff --git a/mail-client/mutt/mutt-1.5.23-r5.ebuild b/mail-client/mutt/mutt-1.5.23-r5.ebuild |
40 |
deleted file mode 100644 |
41 |
index 877cd5b..0000000 |
42 |
--- a/mail-client/mutt/mutt-1.5.23-r5.ebuild |
43 |
+++ /dev/null |
44 |
@@ -1,250 +0,0 @@ |
45 |
-# Copyright 1999-2015 Gentoo Foundation |
46 |
-# Distributed under the terms of the GNU General Public License v2 |
47 |
-# $Id$ |
48 |
- |
49 |
-EAPI="5" |
50 |
- |
51 |
-inherit eutils flag-o-matic autotools |
52 |
- |
53 |
-PATCHSET_REV="-r5" |
54 |
- |
55 |
-DESCRIPTION="A small but very powerful text-based mail client" |
56 |
-HOMEPAGE="http://www.mutt.org/" |
57 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
58 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
59 |
- ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz |
60 |
- mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
61 |
- https://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2" |
62 |
-IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet" |
63 |
-SLOT="0" |
64 |
-LICENSE="GPL-2" |
65 |
-KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
66 |
-CDEPEND=" |
67 |
- app-misc/mime-types |
68 |
- nls? ( virtual/libintl ) |
69 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
70 |
- !tokyocabinet? ( |
71 |
- qdbm? ( dev-db/qdbm ) |
72 |
- !qdbm? ( |
73 |
- gdbm? ( sys-libs/gdbm ) |
74 |
- !gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
75 |
- ) |
76 |
- ) |
77 |
- imap? ( |
78 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
79 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
80 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
81 |
- ) |
82 |
- kerberos? ( virtual/krb5 ) |
83 |
- pop? ( |
84 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
85 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
86 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
87 |
- ) |
88 |
- smtp? ( |
89 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
90 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
91 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
92 |
- ) |
93 |
- idn? ( net-dns/libidn ) |
94 |
- gpg? ( >=app-crypt/gpgme-0.9.0 ) |
95 |
- smime? ( >=dev-libs/openssl-0.9.6 ) |
96 |
- slang? ( sys-libs/slang ) |
97 |
- !slang? ( >=sys-libs/ncurses-5.2 ) |
98 |
-" |
99 |
-DEPEND="${CDEPEND} |
100 |
- net-mail/mailbase |
101 |
- doc? ( |
102 |
- dev-libs/libxml2 |
103 |
- dev-libs/libxslt |
104 |
- app-text/docbook-xsl-stylesheets |
105 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
106 |
- )" |
107 |
-RDEPEND="${CDEPEND} |
108 |
- selinux? ( sec-policy/selinux-mutt ) |
109 |
-" |
110 |
-PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
111 |
- |
112 |
-src_prepare() { |
113 |
- # Post-release hot-fixes grabbed from HG, this is what all following |
114 |
- # patches are based on in my Mercurial patchqueue (mq). |
115 |
- # If you ever take over or need to modify patches here, just check |
116 |
- # out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and |
117 |
- # the patchqueue as it'll save you a lot of work. |
118 |
- # http://hg.code.sf.net/p/gentoomutt/code/ |
119 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/ |
120 |
- for rev in $(eval echo {0..${PR#r}}) ; do |
121 |
- local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch |
122 |
- [[ -e ${revpatch} ]] && \ |
123 |
- epatch "${revpatch}" |
124 |
- done |
125 |
- # fix compilation with ncurses[tinfo], #459260 |
126 |
- epatch "${PATCHDIR}"/ncurses-tinfo.patch |
127 |
- |
128 |
- # this patch is non-generic and only works because we use a sysconfdir |
129 |
- # different from the one used by the mailbase ebuild |
130 |
- use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch |
131 |
- |
132 |
- # must have fixes to compile or behave correctly, upstream |
133 |
- # ignores, disagrees or simply doesn't respond/apply |
134 |
- epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection |
135 |
- # same category, but functional bits |
136 |
- epatch "${PATCHDIR}"/dont-reveal-bbc.patch |
137 |
- |
138 |
- # the big feature patches that upstream doesn't want to include, but |
139 |
- # nearly every distro has due to their usefulness |
140 |
- for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do |
141 |
- epatch "${p}" |
142 |
- done |
143 |
- |
144 |
- # we conditionalise this one, simply because it has considerable |
145 |
- # impact on the code |
146 |
- if use sidebar ; then |
147 |
- epatch "${PATCHDIR}"/sidebar-20140412.patch |
148 |
- epatch "${PATCHDIR}"/sidebar-dotpathsep.patch |
149 |
- epatch "${PATCHDIR}"/sidebar-counts.patch |
150 |
- fi |
151 |
- |
152 |
- local upatches= |
153 |
- # allow user patches |
154 |
- epatch_user && upatches=" with user patches" |
155 |
- |
156 |
- # patch version string for bug reports |
157 |
- sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}"')"/' \ |
158 |
- muttlib.c || die "failed patching in Gentoo version" |
159 |
- |
160 |
- # many patches touch the buildsystem, we always need this |
161 |
- AT_M4DIR="m4" eautoreconf |
162 |
- |
163 |
- # the configure script contains some "cleverness" whether or not to setgid |
164 |
- # the dotlock program, resulting in bugs like #278332 |
165 |
- sed -i -e 's/@DOTLOCK_GROUP@//' \ |
166 |
- Makefile.in || die "sed failed" |
167 |
- |
168 |
- # don't just build documentation (lengthy process, with big dependencies) |
169 |
- if use !doc ; then |
170 |
- sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
171 |
- fi |
172 |
-} |
173 |
- |
174 |
-src_configure() { |
175 |
- local myconf=" |
176 |
- $(use_enable crypt pgp) \ |
177 |
- $(use_enable debug) \ |
178 |
- $(use_enable gpg gpgme) \ |
179 |
- $(use_enable imap) \ |
180 |
- $(use_enable nls) \ |
181 |
- $(use_enable nntp) \ |
182 |
- $(use_enable pop) \ |
183 |
- $(use_enable smime) \ |
184 |
- $(use_enable smtp) \ |
185 |
- $(use_with idn) \ |
186 |
- $(use_with kerberos gss) \ |
187 |
- $(use slang && echo --with-slang) \ |
188 |
- --enable-compressed \ |
189 |
- --enable-external-dotlock \ |
190 |
- --enable-nfs-fix \ |
191 |
- --sysconfdir=${EPREFIX}/etc/${PN} \ |
192 |
- --with-curses \ |
193 |
- --with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \ |
194 |
- --with-regex \ |
195 |
- --with-exec-shell=${EPREFIX}/bin/sh" |
196 |
- |
197 |
- case $CHOST in |
198 |
- *-solaris*) |
199 |
- # Solaris has no flock in the standard headers |
200 |
- myconf="${myconf} --enable-fcntl --disable-flock" |
201 |
- ;; |
202 |
- *) |
203 |
- myconf="${myconf} --disable-fcntl --enable-flock" |
204 |
- ;; |
205 |
- esac |
206 |
- |
207 |
- # mutt prioritizes gdbm over bdb, so we will too. |
208 |
- # hcache feature requires at least one database is in USE. |
209 |
- if use tokyocabinet; then |
210 |
- myconf="${myconf} --enable-hcache \ |
211 |
- --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
212 |
- elif use qdbm; then |
213 |
- myconf="${myconf} --enable-hcache \ |
214 |
- --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
215 |
- elif use gdbm ; then |
216 |
- myconf="${myconf} --enable-hcache \ |
217 |
- --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
218 |
- elif use berkdb; then |
219 |
- myconf="${myconf} --enable-hcache \ |
220 |
- --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
221 |
- else |
222 |
- myconf="${myconf} --disable-hcache \ |
223 |
- --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
224 |
- fi |
225 |
- |
226 |
- # there's no need for gnutls, ssl or sasl without socket support |
227 |
- if use pop || use imap || use smtp ; then |
228 |
- if use gnutls; then |
229 |
- myconf="${myconf} --with-gnutls" |
230 |
- elif use ssl; then |
231 |
- myconf="${myconf} --with-ssl" |
232 |
- fi |
233 |
- # not sure if this should be mutually exclusive with the other two |
234 |
- myconf="${myconf} $(use_with sasl)" |
235 |
- else |
236 |
- myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
237 |
- fi |
238 |
- |
239 |
- if use mbox; then |
240 |
- myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
241 |
- else |
242 |
- myconf="${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 /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 |
271 |
- cp doc/muttbug.man flea.1 |
272 |
- cp doc/muttrc.man muttrc.5 |
273 |
- doman mutt.1 flea.1 muttrc.5 |
274 |
- else |
275 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
276 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
277 |
- || ewarn "failed to remove files, please file a bug" |
278 |
- fi |
279 |
- |
280 |
- if use !prefix ; then |
281 |
- fowners root:mail /usr/bin/mutt_dotlock |
282 |
- fperms g+s /usr/bin/mutt_dotlock |
283 |
- fi |
284 |
- |
285 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
286 |
-} |
287 |
- |
288 |
-pkg_postinst() { |
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 |
-} |
295 |
|
296 |
diff --git a/mail-client/mutt/mutt-1.5.23-r8.ebuild b/mail-client/mutt/mutt-1.5.23-r8.ebuild |
297 |
deleted file mode 100644 |
298 |
index 49771a2..0000000 |
299 |
--- a/mail-client/mutt/mutt-1.5.23-r8.ebuild |
300 |
+++ /dev/null |
301 |
@@ -1,252 +0,0 @@ |
302 |
-# Copyright 1999-2015 Gentoo Foundation |
303 |
-# Distributed under the terms of the GNU General Public License v2 |
304 |
-# $Id$ |
305 |
- |
306 |
-EAPI="5" |
307 |
- |
308 |
-inherit eutils flag-o-matic autotools |
309 |
- |
310 |
-PATCHSET_REV="-r8" |
311 |
- |
312 |
-DESCRIPTION="A small but very powerful text-based mail client" |
313 |
-HOMEPAGE="http://www.mutt.org/" |
314 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
315 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
316 |
- ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz |
317 |
- mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
318 |
- https://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2" |
319 |
-IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet" |
320 |
-SLOT="0" |
321 |
-LICENSE="GPL-2" |
322 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
323 |
-CDEPEND=" |
324 |
- app-misc/mime-types |
325 |
- nls? ( virtual/libintl ) |
326 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
327 |
- !tokyocabinet? ( |
328 |
- qdbm? ( dev-db/qdbm ) |
329 |
- !qdbm? ( |
330 |
- gdbm? ( sys-libs/gdbm ) |
331 |
- !gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
332 |
- ) |
333 |
- ) |
334 |
- imap? ( |
335 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
336 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
337 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
338 |
- ) |
339 |
- kerberos? ( virtual/krb5 ) |
340 |
- pop? ( |
341 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
342 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
343 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
344 |
- ) |
345 |
- smtp? ( |
346 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
347 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
348 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
349 |
- ) |
350 |
- idn? ( net-dns/libidn ) |
351 |
- gpg? ( >=app-crypt/gpgme-0.9.0 ) |
352 |
- smime? ( >=dev-libs/openssl-0.9.6 ) |
353 |
- slang? ( sys-libs/slang ) |
354 |
- !slang? ( >=sys-libs/ncurses-5.2 ) |
355 |
-" |
356 |
-DEPEND="${CDEPEND} |
357 |
- net-mail/mailbase |
358 |
- doc? ( |
359 |
- dev-libs/libxml2 |
360 |
- dev-libs/libxslt |
361 |
- app-text/docbook-xsl-stylesheets |
362 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
363 |
- )" |
364 |
-RDEPEND="${CDEPEND} |
365 |
- selinux? ( sec-policy/selinux-mutt ) |
366 |
-" |
367 |
-PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
368 |
- |
369 |
-src_prepare() { |
370 |
- # Post-release hot-fixes grabbed from HG, this is what all following |
371 |
- # patches are based on in my Mercurial patchqueue (mq). |
372 |
- # If you ever take over or need to modify patches here, just check |
373 |
- # out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and |
374 |
- # the patchqueue as it'll save you a lot of work. |
375 |
- # http://hg.code.sf.net/p/gentoomutt/code/ |
376 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/ |
377 |
- for rev in $(eval echo {0..${PR#r}}) ; do |
378 |
- local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch |
379 |
- [[ -e ${revpatch} ]] && \ |
380 |
- epatch "${revpatch}" |
381 |
- done |
382 |
- # fix compilation with ncurses[tinfo], #459260 |
383 |
- epatch "${PATCHDIR}"/ncurses-tinfo.patch |
384 |
- |
385 |
- # this patch is non-generic and only works because we use a sysconfdir |
386 |
- # different from the one used by the mailbase ebuild |
387 |
- use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch |
388 |
- |
389 |
- # must have fixes to compile or behave correctly, upstream |
390 |
- # ignores, disagrees or simply doesn't respond/apply |
391 |
- epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection |
392 |
- # same category, but functional bits |
393 |
- epatch "${PATCHDIR}"/dont-reveal-bbc.patch |
394 |
- |
395 |
- # the big feature patches that upstream doesn't want to include, but |
396 |
- # nearly every distro has due to their usefulness |
397 |
- for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do |
398 |
- epatch "${p}" |
399 |
- done |
400 |
- |
401 |
- # we conditionalise this one, simply because it has considerable |
402 |
- # impact on the code |
403 |
- if use sidebar ; then |
404 |
- epatch "${PATCHDIR}"/sidebar-20140412.patch |
405 |
- epatch "${PATCHDIR}"/sidebar-dotpathsep.patch |
406 |
- epatch "${PATCHDIR}"/sidebar-counts.patch |
407 |
- fi |
408 |
- |
409 |
- local upatches= |
410 |
- # allow user patches |
411 |
- epatch_user && upatches=" with user patches" |
412 |
- |
413 |
- # patch version string for bug reports |
414 |
- sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}"')"/' \ |
415 |
- muttlib.c || die "failed patching in Gentoo version" |
416 |
- |
417 |
- # many patches touch the buildsystem, we always need this |
418 |
- AT_M4DIR="m4" eautoreconf |
419 |
- |
420 |
- # the configure script contains some "cleverness" whether or not to setgid |
421 |
- # the dotlock program, resulting in bugs like #278332 |
422 |
- sed -i -e 's/@DOTLOCK_GROUP@//' \ |
423 |
- Makefile.in || die "sed failed" |
424 |
- |
425 |
- # don't just build documentation (lengthy process, with big dependencies) |
426 |
- if use !doc ; then |
427 |
- sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
428 |
- fi |
429 |
-} |
430 |
- |
431 |
-src_configure() { |
432 |
- local myconf=" |
433 |
- $(use_enable crypt pgp) \ |
434 |
- $(use_enable debug) \ |
435 |
- $(use_enable gpg gpgme) \ |
436 |
- $(use_enable imap) \ |
437 |
- $(use_enable nls) \ |
438 |
- $(use_enable nntp) \ |
439 |
- $(use_enable pop) \ |
440 |
- $(use_enable smime) \ |
441 |
- $(use_enable smtp) \ |
442 |
- $(use_with idn) \ |
443 |
- $(use_with kerberos gss) \ |
444 |
- $(use slang && echo --with-slang) \ |
445 |
- --enable-compressed \ |
446 |
- --enable-external-dotlock \ |
447 |
- --enable-nfs-fix \ |
448 |
- --sysconfdir=${EPREFIX}/etc/${PN} \ |
449 |
- --with-curses \ |
450 |
- --with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \ |
451 |
- --with-regex \ |
452 |
- --with-exec-shell=${EPREFIX}/bin/sh" |
453 |
- |
454 |
- case $CHOST in |
455 |
- *-solaris*) |
456 |
- # Solaris has no flock in the standard headers |
457 |
- myconf="${myconf} --enable-fcntl --disable-flock" |
458 |
- ;; |
459 |
- *) |
460 |
- myconf="${myconf} --disable-fcntl --enable-flock" |
461 |
- ;; |
462 |
- esac |
463 |
- |
464 |
- # mutt prioritizes gdbm over bdb, so we will too. |
465 |
- # hcache feature requires at least one database is in USE. |
466 |
- if use tokyocabinet; then |
467 |
- myconf="${myconf} --enable-hcache \ |
468 |
- --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
469 |
- elif use qdbm; then |
470 |
- myconf="${myconf} --enable-hcache \ |
471 |
- --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
472 |
- elif use gdbm ; then |
473 |
- myconf="${myconf} --enable-hcache \ |
474 |
- --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
475 |
- elif use berkdb; then |
476 |
- myconf="${myconf} --enable-hcache \ |
477 |
- --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
478 |
- else |
479 |
- myconf="${myconf} --disable-hcache \ |
480 |
- --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
481 |
- fi |
482 |
- |
483 |
- # there's no need for gnutls, ssl or sasl without socket support |
484 |
- if use pop || use imap || use smtp ; then |
485 |
- if use gnutls; then |
486 |
- myconf="${myconf} --with-gnutls" |
487 |
- elif use ssl; then |
488 |
- myconf="${myconf} --with-ssl" |
489 |
- fi |
490 |
- # not sure if this should be mutually exclusive with the other two |
491 |
- myconf="${myconf} $(use_with sasl)" |
492 |
- else |
493 |
- myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
494 |
- fi |
495 |
- |
496 |
- if use mbox; then |
497 |
- myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
498 |
- else |
499 |
- myconf="${myconf} --with-homespool=Maildir" |
500 |
- fi |
501 |
- |
502 |
- econf ${myconf} || die "configure failed" |
503 |
-} |
504 |
- |
505 |
-src_install() { |
506 |
- emake DESTDIR="${D}" install || die "install failed" |
507 |
- if use mbox; then |
508 |
- insinto /etc/mutt |
509 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
510 |
- else |
511 |
- insinto /etc/mutt |
512 |
- doins "${FILESDIR}"/Muttrc |
513 |
- fi |
514 |
- |
515 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
516 |
- rm "${ED}"/etc/${PN}/mime.types |
517 |
- dosym /etc/mime.types /etc/${PN}/mime.types |
518 |
- |
519 |
- # A man-page is always handy, so fake one |
520 |
- if use !doc; then |
521 |
- emake -C doc DESTDIR="${D}" muttrc.man || die |
522 |
- # make the fake slightly better, bug #413405 |
523 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
524 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
525 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
526 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
527 |
- doc/mutt.man > mutt.1 |
528 |
- cp doc/muttbug.man flea.1 |
529 |
- cp doc/muttrc.man muttrc.5 |
530 |
- doman mutt.1 flea.1 muttrc.5 |
531 |
- else |
532 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
533 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
534 |
- || ewarn "failed to remove files, please file a bug" |
535 |
- fi |
536 |
- |
537 |
- if use !prefix ; then |
538 |
- fowners root:mail /usr/bin/mutt_dotlock |
539 |
- fperms g+s /usr/bin/mutt_dotlock |
540 |
- fi |
541 |
- |
542 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
543 |
-} |
544 |
- |
545 |
-pkg_postinst() { |
546 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
547 |
- echo |
548 |
- elog "If you are new to mutt you may want to take a look at" |
549 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
550 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
551 |
- echo |
552 |
- fi |
553 |
-} |
554 |
|
555 |
diff --git a/mail-client/mutt/mutt-1.5.24-r1.ebuild b/mail-client/mutt/mutt-1.5.24-r1.ebuild |
556 |
deleted file mode 100644 |
557 |
index 3860e13..0000000 |
558 |
--- a/mail-client/mutt/mutt-1.5.24-r1.ebuild |
559 |
+++ /dev/null |
560 |
@@ -1,254 +0,0 @@ |
561 |
-# Copyright 1999-2015 Gentoo Foundation |
562 |
-# Distributed under the terms of the GNU General Public License v2 |
563 |
-# $Id$ |
564 |
- |
565 |
-EAPI="5" |
566 |
- |
567 |
-inherit eutils flag-o-matic autotools |
568 |
- |
569 |
-PATCHSET_REV="-r1" |
570 |
- |
571 |
-DESCRIPTION="A small but very powerful text-based mail client" |
572 |
-HOMEPAGE="http://www.mutt.org/" |
573 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
574 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
575 |
- ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
576 |
- mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
577 |
- https://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2" |
578 |
-IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos mbox nls nntp pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet" |
579 |
-SLOT="0" |
580 |
-LICENSE="GPL-2" |
581 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
582 |
-CDEPEND=" |
583 |
- app-misc/mime-types |
584 |
- nls? ( virtual/libintl ) |
585 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
586 |
- !tokyocabinet? ( |
587 |
- qdbm? ( dev-db/qdbm ) |
588 |
- !qdbm? ( |
589 |
- gdbm? ( sys-libs/gdbm ) |
590 |
- !gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
591 |
- ) |
592 |
- ) |
593 |
- imap? ( |
594 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
595 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
596 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
597 |
- ) |
598 |
- kerberos? ( virtual/krb5 ) |
599 |
- pop? ( |
600 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
601 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
602 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
603 |
- ) |
604 |
- smtp? ( |
605 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
606 |
- !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
607 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
608 |
- ) |
609 |
- idn? ( net-dns/libidn ) |
610 |
- gpg? ( >=app-crypt/gpgme-0.9.0 ) |
611 |
- smime? ( >=dev-libs/openssl-0.9.6 ) |
612 |
- slang? ( sys-libs/slang ) |
613 |
- !slang? ( >=sys-libs/ncurses-5.2 ) |
614 |
-" |
615 |
-DEPEND="${CDEPEND} |
616 |
- net-mail/mailbase |
617 |
- doc? ( |
618 |
- dev-libs/libxml2 |
619 |
- dev-libs/libxslt |
620 |
- app-text/docbook-xsl-stylesheets |
621 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
622 |
- )" |
623 |
-RDEPEND="${CDEPEND} |
624 |
- selinux? ( sec-policy/selinux-mutt ) |
625 |
-" |
626 |
-PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
627 |
- |
628 |
-src_prepare() { |
629 |
- # Post-release hot-fixes grabbed from HG, this is what all following |
630 |
- # patches are based on in my Mercurial patchqueue (mq). |
631 |
- # If you ever take over or need to modify patches here, just check |
632 |
- # out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and |
633 |
- # the patchqueue as it'll save you a lot of work. |
634 |
- # http://hg.code.sf.net/p/gentoomutt/code/ |
635 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/ |
636 |
- for rev in $(eval echo {0..${PR#r}}) ; do |
637 |
- local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch |
638 |
- [[ -e ${revpatch} ]] && \ |
639 |
- epatch "${revpatch}" |
640 |
- done |
641 |
- # fix compilation with ncurses[tinfo], #459260 |
642 |
- epatch "${PATCHDIR}"/ncurses-tinfo.patch |
643 |
- |
644 |
- # this patch is non-generic and only works because we use a sysconfdir |
645 |
- # different from the one used by the mailbase ebuild |
646 |
- use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch |
647 |
- |
648 |
- # must have fixes to compile or behave correctly, upstream |
649 |
- # ignores, disagrees or simply doesn't respond/apply |
650 |
- epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection |
651 |
- # same category, but functional bits |
652 |
- epatch "${PATCHDIR}"/dont-reveal-bbc.patch |
653 |
- |
654 |
- # the big feature patches that upstream doesn't want to include, but |
655 |
- # nearly every distro has due to their usefulness |
656 |
- for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do |
657 |
- epatch "${p}" |
658 |
- done |
659 |
- |
660 |
- # we conditionalise this one, simply because it has considerable |
661 |
- # impact on the code |
662 |
- if use sidebar ; then |
663 |
- epatch "${PATCHDIR}"/sidebar-20140412.patch |
664 |
- epatch "${PATCHDIR}"/sidebar-dotpathsep.patch |
665 |
- epatch "${PATCHDIR}"/sidebar-counts.patch |
666 |
- fi |
667 |
- |
668 |
- local upatches= |
669 |
- # allow user patches |
670 |
- epatch_user && upatches=" with user patches" |
671 |
- |
672 |
- # patch version string for bug reports |
673 |
- sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}"')"/' \ |
674 |
- muttlib.c || die "failed patching in Gentoo version" |
675 |
- |
676 |
- # many patches touch the buildsystem, we always need this |
677 |
- AT_M4DIR="m4" eautoreconf |
678 |
- |
679 |
- # the configure script contains some "cleverness" whether or not to setgid |
680 |
- # the dotlock program, resulting in bugs like #278332 |
681 |
- sed -i -e 's/@DOTLOCK_GROUP@//' \ |
682 |
- Makefile.in || die "sed failed" |
683 |
- |
684 |
- # don't just build documentation (lengthy process, with big dependencies) |
685 |
- if use !doc ; then |
686 |
- sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
687 |
- fi |
688 |
-} |
689 |
- |
690 |
-src_configure() { |
691 |
- local myconf=" |
692 |
- $(use_enable crypt pgp) \ |
693 |
- $(use_enable debug) \ |
694 |
- $(use_enable gpg gpgme) \ |
695 |
- $(use_enable imap) \ |
696 |
- $(use_enable nls) \ |
697 |
- $(use_enable nntp) \ |
698 |
- $(use_enable pop) \ |
699 |
- $(use_enable smime) \ |
700 |
- $(use_enable smtp) \ |
701 |
- $(use_with idn) \ |
702 |
- $(use_with kerberos gss) \ |
703 |
- $(use slang && echo --with-slang=${EPREFIX}/usr) \ |
704 |
- $(use !slang && echo --with-curses=${EPREFIX}/usr) \ |
705 |
- --enable-compressed \ |
706 |
- --enable-external-dotlock \ |
707 |
- --enable-nfs-fix \ |
708 |
- --sysconfdir=${EPREFIX}/etc/${PN} \ |
709 |
- --with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \ |
710 |
- --with-regex \ |
711 |
- --with-exec-shell=${EPREFIX}/bin/sh" |
712 |
- |
713 |
- case $CHOST in |
714 |
- *-solaris*) |
715 |
- # Solaris has no flock in the standard headers |
716 |
- myconf+=" --enable-fcntl --disable-flock" |
717 |
- # wchar_t depends on locale |
718 |
- myconf+=" --without-wc-funcs" |
719 |
- ;; |
720 |
- *) |
721 |
- myconf+=" --disable-fcntl --enable-flock" |
722 |
- ;; |
723 |
- esac |
724 |
- |
725 |
- # mutt prioritizes gdbm over bdb, so we will too. |
726 |
- # hcache feature requires at least one database is in USE. |
727 |
- if use tokyocabinet; then |
728 |
- myconf="${myconf} --enable-hcache \ |
729 |
- --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
730 |
- elif use qdbm; then |
731 |
- myconf="${myconf} --enable-hcache \ |
732 |
- --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
733 |
- elif use gdbm ; then |
734 |
- myconf="${myconf} --enable-hcache \ |
735 |
- --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
736 |
- elif use berkdb; then |
737 |
- myconf="${myconf} --enable-hcache \ |
738 |
- --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
739 |
- else |
740 |
- myconf="${myconf} --disable-hcache \ |
741 |
- --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
742 |
- fi |
743 |
- |
744 |
- # there's no need for gnutls, ssl or sasl without socket support |
745 |
- if use pop || use imap || use smtp ; then |
746 |
- if use gnutls; then |
747 |
- myconf="${myconf} --with-gnutls" |
748 |
- elif use ssl; then |
749 |
- myconf="${myconf} --with-ssl" |
750 |
- fi |
751 |
- # not sure if this should be mutually exclusive with the other two |
752 |
- myconf="${myconf} $(use_with sasl)" |
753 |
- else |
754 |
- myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
755 |
- fi |
756 |
- |
757 |
- if use mbox; then |
758 |
- myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
759 |
- else |
760 |
- myconf="${myconf} --with-homespool=Maildir" |
761 |
- fi |
762 |
- |
763 |
- econf ${myconf} || die "configure failed" |
764 |
-} |
765 |
- |
766 |
-src_install() { |
767 |
- emake DESTDIR="${D}" install || die "install failed" |
768 |
- if use mbox; then |
769 |
- insinto /etc/mutt |
770 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
771 |
- else |
772 |
- insinto /etc/mutt |
773 |
- doins "${FILESDIR}"/Muttrc |
774 |
- fi |
775 |
- |
776 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
777 |
- rm "${ED}"/etc/${PN}/mime.types |
778 |
- dosym /etc/mime.types /etc/${PN}/mime.types |
779 |
- |
780 |
- # A man-page is always handy, so fake one |
781 |
- if use !doc; then |
782 |
- emake -C doc DESTDIR="${D}" muttrc.man || die |
783 |
- # make the fake slightly better, bug #413405 |
784 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
785 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
786 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
787 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
788 |
- doc/mutt.man > mutt.1 |
789 |
- cp doc/muttbug.man flea.1 |
790 |
- cp doc/muttrc.man muttrc.5 |
791 |
- doman mutt.1 flea.1 muttrc.5 |
792 |
- else |
793 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
794 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
795 |
- || ewarn "failed to remove files, please file a bug" |
796 |
- fi |
797 |
- |
798 |
- if use !prefix ; then |
799 |
- fowners root:mail /usr/bin/mutt_dotlock |
800 |
- fperms g+s /usr/bin/mutt_dotlock |
801 |
- fi |
802 |
- |
803 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
804 |
-} |
805 |
- |
806 |
-pkg_postinst() { |
807 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
808 |
- echo |
809 |
- elog "If you are new to mutt you may want to take a look at" |
810 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
811 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
812 |
- echo |
813 |
- fi |
814 |
-} |
815 |
|
816 |
diff --git a/mail-client/mutt/mutt-1.6.0-r2.ebuild b/mail-client/mutt/mutt-1.6.0-r2.ebuild |
817 |
deleted file mode 100644 |
818 |
index 74da155..0000000 |
819 |
--- a/mail-client/mutt/mutt-1.6.0-r2.ebuild |
820 |
+++ /dev/null |
821 |
@@ -1,277 +0,0 @@ |
822 |
-# Copyright 1999-2016 Gentoo Foundation |
823 |
-# Distributed under the terms of the GNU General Public License v2 |
824 |
-# $Id$ |
825 |
- |
826 |
-EAPI="6" |
827 |
- |
828 |
-inherit eutils flag-o-matic autotools |
829 |
- |
830 |
-PATCHSET_REV="-r6" |
831 |
- |
832 |
-DESCRIPTION="A small but very powerful text-based mail client" |
833 |
-HOMEPAGE="http://www.mutt.org/" |
834 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
835 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
836 |
- ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
837 |
- mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.xz |
838 |
- https://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.xz" |
839 |
-IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos libressl mbox nls nntp pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet" |
840 |
-SLOT="0" |
841 |
-LICENSE="GPL-2" |
842 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
843 |
-CDEPEND=" |
844 |
- app-misc/mime-types |
845 |
- nls? ( virtual/libintl ) |
846 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
847 |
- !tokyocabinet? ( |
848 |
- qdbm? ( dev-db/qdbm ) |
849 |
- !qdbm? ( |
850 |
- gdbm? ( sys-libs/gdbm ) |
851 |
- !gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
852 |
- ) |
853 |
- ) |
854 |
- imap? ( |
855 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
856 |
- !gnutls? ( |
857 |
- ssl? ( |
858 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
859 |
- libressl? ( dev-libs/libressl ) |
860 |
- ) |
861 |
- ) |
862 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
863 |
- ) |
864 |
- kerberos? ( virtual/krb5 ) |
865 |
- pop? ( |
866 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
867 |
- !gnutls? ( |
868 |
- ssl? ( |
869 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
870 |
- libressl? ( dev-libs/libressl ) |
871 |
- ) |
872 |
- ) |
873 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
874 |
- ) |
875 |
- smtp? ( |
876 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
877 |
- !gnutls? ( |
878 |
- ssl? ( |
879 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
880 |
- libressl? ( dev-libs/libressl ) |
881 |
- ) |
882 |
- ) |
883 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
884 |
- ) |
885 |
- idn? ( net-dns/libidn ) |
886 |
- gpg? ( >=app-crypt/gpgme-0.9.0 ) |
887 |
- smime? ( |
888 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
889 |
- libressl? ( dev-libs/libressl ) |
890 |
- ) |
891 |
- slang? ( sys-libs/slang ) |
892 |
- !slang? ( >=sys-libs/ncurses-5.2:0 ) |
893 |
-" |
894 |
-DEPEND="${CDEPEND} |
895 |
- net-mail/mailbase |
896 |
- doc? ( |
897 |
- dev-libs/libxml2 |
898 |
- dev-libs/libxslt |
899 |
- app-text/docbook-xsl-stylesheets |
900 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
901 |
- )" |
902 |
-RDEPEND="${CDEPEND} |
903 |
- selinux? ( sec-policy/selinux-mutt ) |
904 |
-" |
905 |
-PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
906 |
- |
907 |
-src_prepare() { |
908 |
- # Post-release hot-fixes grabbed from HG, this is what all following |
909 |
- # patches are based on in my Mercurial patchqueue (mq). |
910 |
- # If you ever take over or need to modify patches here, just check |
911 |
- # out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and |
912 |
- # the patchqueue as it'll save you a lot of work. |
913 |
- # http://hg.code.sf.net/p/gentoomutt/code/ |
914 |
- # http://hg.code.sf.net/p/gentoomuttpatches/code/ |
915 |
- for rev in $(eval echo {0..${PR#r}}) ; do |
916 |
- local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch |
917 |
- [[ -e ${revpatch} ]] && \ |
918 |
- epatch "${revpatch}" |
919 |
- done |
920 |
- # fix compilation with ncurses[tinfo], #459260 |
921 |
- epatch "${PATCHDIR}"/ncurses-tinfo.patch |
922 |
- |
923 |
- # this patch is non-generic and only works because we use a sysconfdir |
924 |
- # different from the one used by the mailbase ebuild |
925 |
- use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch |
926 |
- |
927 |
- # must have fixes to compile or behave correctly, upstream |
928 |
- # ignores, disagrees or simply doesn't respond/apply |
929 |
- epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection |
930 |
- # same category, but functional bits |
931 |
- epatch "${PATCHDIR}"/dont-reveal-bbc.patch |
932 |
- |
933 |
- # the big feature patches that upstream doesn't want to include, but |
934 |
- # nearly every distro has due to their usefulness |
935 |
- for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do |
936 |
- epatch "${p}" |
937 |
- done |
938 |
- |
939 |
- # Avoid symbol conflicts on Solaris |
940 |
- sed -i \ |
941 |
- -e 's/\<M_CMD\>/MT_CMD/g' \ |
942 |
- -e 's/\<M_READ\>/MT_READ/g' \ |
943 |
- *.[ch] imap/*.[ch] || die |
944 |
- |
945 |
- local upatches= |
946 |
- # allow user patches |
947 |
- eapply_user && upatches=" with user patches" |
948 |
- |
949 |
- # patch version string for bug reports |
950 |
- sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}"')"/' \ |
951 |
- muttlib.c || die "failed patching in Gentoo version" |
952 |
- |
953 |
- # many patches touch the buildsystem, we always need this |
954 |
- AT_M4DIR="m4" eautoreconf |
955 |
- |
956 |
- # the configure script contains some "cleverness" whether or not to setgid |
957 |
- # the dotlock program, resulting in bugs like #278332 |
958 |
- sed -i -e 's/@DOTLOCK_GROUP@//' \ |
959 |
- Makefile.in || die "sed failed" |
960 |
- |
961 |
- # don't just build documentation (lengthy process, with big dependencies) |
962 |
- if use !doc ; then |
963 |
- sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
964 |
- fi |
965 |
-} |
966 |
- |
967 |
-src_configure() { |
968 |
- local myconf=" |
969 |
- $(use_enable crypt pgp) \ |
970 |
- $(use_enable debug) \ |
971 |
- $(use_enable gpg gpgme) \ |
972 |
- $(use_enable imap) \ |
973 |
- $(use_enable nls) \ |
974 |
- $(use_enable nntp) \ |
975 |
- $(use_enable pop) \ |
976 |
- $(use_enable sidebar) \ |
977 |
- $(use_enable smime) \ |
978 |
- $(use_enable smtp) \ |
979 |
- $(use_with idn) \ |
980 |
- $(use_with kerberos gss) \ |
981 |
- $(use slang && echo --with-slang=${EPREFIX}/usr) \ |
982 |
- $(use !slang && echo --with-curses=${EPREFIX}/usr) \ |
983 |
- --enable-compressed \ |
984 |
- --enable-external-dotlock \ |
985 |
- --enable-nfs-fix \ |
986 |
- --sysconfdir=${EPREFIX}/etc/${PN} \ |
987 |
- --with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \ |
988 |
- --with-regex \ |
989 |
- --with-exec-shell=${EPREFIX}/bin/sh" |
990 |
- |
991 |
- case $CHOST in |
992 |
- *-solaris*) |
993 |
- # Solaris has no flock in the standard headers |
994 |
- myconf+=" --enable-fcntl --disable-flock" |
995 |
- # wchar_t depends on locale |
996 |
- myconf+=" --without-wc-funcs" |
997 |
- ;; |
998 |
- *) |
999 |
- myconf+=" --disable-fcntl --enable-flock" |
1000 |
- ;; |
1001 |
- esac |
1002 |
- |
1003 |
- # mutt prioritizes gdbm over bdb, so we will too. |
1004 |
- # hcache feature requires at least one database is in USE. |
1005 |
- if use tokyocabinet; then |
1006 |
- myconf="${myconf} --enable-hcache \ |
1007 |
- --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
1008 |
- elif use qdbm; then |
1009 |
- myconf="${myconf} --enable-hcache \ |
1010 |
- --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
1011 |
- elif use gdbm ; then |
1012 |
- myconf="${myconf} --enable-hcache \ |
1013 |
- --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
1014 |
- elif use berkdb; then |
1015 |
- myconf="${myconf} --enable-hcache \ |
1016 |
- --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
1017 |
- else |
1018 |
- myconf="${myconf} --disable-hcache \ |
1019 |
- --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
1020 |
- fi |
1021 |
- |
1022 |
- # there's no need for gnutls, ssl or sasl without socket support |
1023 |
- if use pop || use imap || use smtp ; then |
1024 |
- if use gnutls; then |
1025 |
- myconf="${myconf} --with-gnutls" |
1026 |
- elif use ssl; then |
1027 |
- myconf="${myconf} --with-ssl" |
1028 |
- fi |
1029 |
- # not sure if this should be mutually exclusive with the other two |
1030 |
- myconf="${myconf} $(use_with sasl)" |
1031 |
- else |
1032 |
- myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
1033 |
- fi |
1034 |
- |
1035 |
- if use mbox; then |
1036 |
- myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
1037 |
- else |
1038 |
- myconf="${myconf} --with-homespool=Maildir" |
1039 |
- fi |
1040 |
- |
1041 |
- econf ${myconf} || die "configure failed" |
1042 |
-} |
1043 |
- |
1044 |
-src_install() { |
1045 |
- emake DESTDIR="${D}" install || die "install failed" |
1046 |
- if use mbox; then |
1047 |
- insinto /etc/mutt |
1048 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
1049 |
- else |
1050 |
- insinto /etc/mutt |
1051 |
- doins "${FILESDIR}"/Muttrc |
1052 |
- fi |
1053 |
- |
1054 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
1055 |
- rm "${ED}"/etc/${PN}/mime.types |
1056 |
- dosym /etc/mime.types /etc/${PN}/mime.types |
1057 |
- |
1058 |
- # A man-page is always handy, so fake one |
1059 |
- if use !doc; then |
1060 |
- emake -C doc DESTDIR="${D}" muttrc.man || die |
1061 |
- # make the fake slightly better, bug #413405 |
1062 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
1063 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
1064 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
1065 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
1066 |
- doc/mutt.man > mutt.1 |
1067 |
- cp doc/muttbug.man flea.1 |
1068 |
- cp doc/muttrc.man muttrc.5 |
1069 |
- doman mutt.1 flea.1 muttrc.5 |
1070 |
- else |
1071 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
1072 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
1073 |
- || ewarn "failed to remove files, please file a bug" |
1074 |
- fi |
1075 |
- |
1076 |
- if use !prefix ; then |
1077 |
- fowners root:mail /usr/bin/mutt_dotlock |
1078 |
- fperms g+s /usr/bin/mutt_dotlock |
1079 |
- fi |
1080 |
- |
1081 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
1082 |
-} |
1083 |
- |
1084 |
-pkg_postinst() { |
1085 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
1086 |
- echo |
1087 |
- elog "If you are new to mutt you may want to take a look at" |
1088 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
1089 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
1090 |
- echo |
1091 |
- elif use sidebar ; then |
1092 |
- echo |
1093 |
- elog "The sidebar patch has changed config names, please see" |
1094 |
- elog "the following page for a list of new names:" |
1095 |
- elog "http://www.neomutt.org/sidebar-intro.html#intro-sidebar-config-changes" |
1096 |
- echo |
1097 |
- fi |
1098 |
-} |
1099 |
|
1100 |
diff --git a/mail-client/mutt/mutt-1.6.1-r2.ebuild b/mail-client/mutt/mutt-1.6.1-r2.ebuild |
1101 |
deleted file mode 100644 |
1102 |
index d868ccc..0000000 |
1103 |
--- a/mail-client/mutt/mutt-1.6.1-r2.ebuild |
1104 |
+++ /dev/null |
1105 |
@@ -1,260 +0,0 @@ |
1106 |
-# Copyright 1999-2016 Gentoo Foundation |
1107 |
-# Distributed under the terms of the GNU General Public License v2 |
1108 |
-# $Id$ |
1109 |
- |
1110 |
-EAPI="6" |
1111 |
- |
1112 |
-inherit eutils flag-o-matic autotools |
1113 |
- |
1114 |
-NEOMUTT="3d90396616d009a7dcbfbb17d8a74b3eee70bd9a" # 20160611 |
1115 |
- |
1116 |
-DESCRIPTION="A small but very powerful text-based mail client" |
1117 |
-HOMEPAGE="http://www.mutt.org/" |
1118 |
-SRC_URI="ftp://ftp.mutt.org/pub/mutt/${P}.tar.gz |
1119 |
- https://bitbucket.org/${PN}/${PN}/downloads/${P}.tar.gz |
1120 |
- https://github.com/neomutt/integration/archive/${NEOMUTT}.zip -> ${P}-neomutt-patches-${NEOMUTT}.zip" |
1121 |
-IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap kerberos libressl mbox nls nntp notmuch pop qdbm sasl selinux sidebar slang smime smtp ssl tokyocabinet" |
1122 |
-SLOT="0" |
1123 |
-LICENSE="GPL-2" |
1124 |
-KEYWORDS="~alpha ~amd64 ~x86 ~x64-freebsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
1125 |
-CDEPEND=" |
1126 |
- app-misc/mime-types |
1127 |
- nls? ( virtual/libintl ) |
1128 |
- tokyocabinet? ( dev-db/tokyocabinet ) |
1129 |
- !tokyocabinet? ( |
1130 |
- qdbm? ( dev-db/qdbm ) |
1131 |
- !qdbm? ( |
1132 |
- gdbm? ( sys-libs/gdbm ) |
1133 |
- !gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
1134 |
- ) |
1135 |
- ) |
1136 |
- imap? ( |
1137 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
1138 |
- !gnutls? ( |
1139 |
- ssl? ( |
1140 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
1141 |
- libressl? ( dev-libs/libressl ) |
1142 |
- ) |
1143 |
- ) |
1144 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1145 |
- ) |
1146 |
- kerberos? ( virtual/krb5 ) |
1147 |
- pop? ( |
1148 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
1149 |
- !gnutls? ( |
1150 |
- ssl? ( |
1151 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
1152 |
- libressl? ( dev-libs/libressl ) |
1153 |
- ) |
1154 |
- ) |
1155 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1156 |
- ) |
1157 |
- smtp? ( |
1158 |
- gnutls? ( >=net-libs/gnutls-1.0.17 ) |
1159 |
- !gnutls? ( |
1160 |
- ssl? ( |
1161 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
1162 |
- libressl? ( dev-libs/libressl ) |
1163 |
- ) |
1164 |
- ) |
1165 |
- sasl? ( >=dev-libs/cyrus-sasl-2 ) |
1166 |
- ) |
1167 |
- idn? ( net-dns/libidn ) |
1168 |
- gpg? ( >=app-crypt/gpgme-0.9.0 ) |
1169 |
- smime? ( |
1170 |
- !libressl? ( >=dev-libs/openssl-0.9.6:0 ) |
1171 |
- libressl? ( dev-libs/libressl ) |
1172 |
- ) |
1173 |
- notmuch? ( net-mail/notmuch ) |
1174 |
- slang? ( sys-libs/slang ) |
1175 |
- !slang? ( >=sys-libs/ncurses-5.2:0 ) |
1176 |
-" |
1177 |
-DEPEND="${CDEPEND} |
1178 |
- net-mail/mailbase |
1179 |
- doc? ( |
1180 |
- dev-libs/libxml2 |
1181 |
- dev-libs/libxslt |
1182 |
- app-text/docbook-xsl-stylesheets |
1183 |
- || ( www-client/lynx www-client/w3m www-client/elinks ) |
1184 |
- )" |
1185 |
-RDEPEND="${CDEPEND} |
1186 |
- selinux? ( sec-policy/selinux-mutt ) |
1187 |
-" |
1188 |
- |
1189 |
-src_prepare() { |
1190 |
- local PATCHDIR="${WORKDIR}"/integration-${NEOMUTT} |
1191 |
- |
1192 |
- # apply NeoMutt patches |
1193 |
- export EPATCH_FORCE="yes" |
1194 |
- export EPATCH_SUFFIX="patch" |
1195 |
- # order of patches from README.md |
1196 |
- local patches=( |
1197 |
- features-common |
1198 |
- features-extra |
1199 |
- bugs-neomutt |
1200 |
- gentoo-pre |
1201 |
- gentoo |
1202 |
- ) |
1203 |
- local patchset |
1204 |
- for patchset in "${patches[@]}" ; do |
1205 |
- einfo "Applying NeoMutt ${NEOMUTT} patchset ${patchset}" |
1206 |
- EPATCH_SOURCE="${PATCHDIR}"/${patchset} epatch \ |
1207 |
- || die "NeoMutt patchset ${patchset} failed" |
1208 |
- done |
1209 |
- # add some explanation as to why not going to upstream |
1210 |
- sed -i \ |
1211 |
- -e '/ReachingUs = N_(/a\"This release of Mutt is heavily enriched by NeoMutt patches.\\nFor this reason, any bugs are better reported at https://bugs.gentoo.org/\\nor directly to the NeoMutt project.\\n\\n"' \ |
1212 |
- version.c || die "Failed to add bug instructions" |
1213 |
- |
1214 |
- epatch "${FILESDIR}"/mutt-1.6.1-neomutt-index_format_truncation_problem.patch |
1215 |
- local upatches= |
1216 |
- # allow user patches |
1217 |
- eapply_user && upatches=" with user patches" |
1218 |
- |
1219 |
- # patch version string for bug reports |
1220 |
- rm VERSION.neo || die # we already flag it appropriate |
1221 |
- sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}${upatches}, NeoMutt ${NEOMUTT})"'"/' \ |
1222 |
- muttlib.c || die "failed patching in Gentoo version" |
1223 |
- |
1224 |
- # many patches touch the buildsystem, we always need this |
1225 |
- AT_M4DIR="m4" eautoreconf |
1226 |
- |
1227 |
- # the configure script contains some "cleverness" whether or not to setgid |
1228 |
- # the dotlock program, resulting in bugs like #278332 |
1229 |
- sed -i -e 's/@DOTLOCK_GROUP@//' \ |
1230 |
- Makefile.in || die "sed failed" |
1231 |
- |
1232 |
- # don't just build documentation (lengthy process, with big dependencies) |
1233 |
- if use !doc ; then |
1234 |
- sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
1235 |
- fi |
1236 |
-} |
1237 |
- |
1238 |
-src_configure() { |
1239 |
- local myconf=" |
1240 |
- $(use_enable crypt pgp) \ |
1241 |
- $(use_enable debug) \ |
1242 |
- $(use_enable gpg gpgme) \ |
1243 |
- $(use_enable imap) \ |
1244 |
- $(use_enable nls) \ |
1245 |
- $(use_enable nntp) \ |
1246 |
- $(use_enable pop) \ |
1247 |
- $(use_enable sidebar) \ |
1248 |
- $(use_enable smime) \ |
1249 |
- $(use_enable smtp) \ |
1250 |
- $(use_enable notmuch) \ |
1251 |
- $(use_with idn) \ |
1252 |
- $(use_with kerberos gss) \ |
1253 |
- $(use slang && echo --with-slang=${EPREFIX}/usr) \ |
1254 |
- $(use !slang && echo --with-curses=${EPREFIX}/usr) \ |
1255 |
- --enable-compressed \ |
1256 |
- --enable-external-dotlock \ |
1257 |
- --enable-nfs-fix \ |
1258 |
- --sysconfdir=${EPREFIX}/etc/${PN} \ |
1259 |
- --with-docdir=${EPREFIX}/usr/share/doc/${PN}-${PVR} \ |
1260 |
- --with-regex \ |
1261 |
- --with-exec-shell=${EPREFIX}/bin/sh" |
1262 |
- |
1263 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
1264 |
- # arrows in index view do not show when using wchar_t |
1265 |
- myconf+=" --without-wc-funcs" |
1266 |
- fi |
1267 |
- |
1268 |
- # mutt prioritizes gdbm over bdb, so we will too. |
1269 |
- # hcache feature requires at least one database is in USE. |
1270 |
- if use tokyocabinet; then |
1271 |
- myconf="${myconf} --enable-hcache \ |
1272 |
- --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
1273 |
- elif use qdbm; then |
1274 |
- myconf="${myconf} --enable-hcache \ |
1275 |
- --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
1276 |
- elif use gdbm ; then |
1277 |
- myconf="${myconf} --enable-hcache \ |
1278 |
- --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
1279 |
- elif use berkdb; then |
1280 |
- myconf="${myconf} --enable-hcache \ |
1281 |
- --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
1282 |
- else |
1283 |
- myconf="${myconf} --disable-hcache \ |
1284 |
- --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
1285 |
- fi |
1286 |
- |
1287 |
- # there's no need for gnutls, ssl or sasl without socket support |
1288 |
- if use pop || use imap || use smtp ; then |
1289 |
- if use gnutls; then |
1290 |
- myconf="${myconf} --with-gnutls" |
1291 |
- elif use ssl; then |
1292 |
- myconf="${myconf} --with-ssl" |
1293 |
- fi |
1294 |
- # not sure if this should be mutually exclusive with the other two |
1295 |
- myconf="${myconf} $(use_with sasl)" |
1296 |
- else |
1297 |
- myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
1298 |
- fi |
1299 |
- |
1300 |
- if use mbox; then |
1301 |
- myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
1302 |
- else |
1303 |
- myconf="${myconf} --with-homespool=Maildir" |
1304 |
- fi |
1305 |
- |
1306 |
- econf ${myconf} || die "configure failed" |
1307 |
-} |
1308 |
- |
1309 |
-src_install() { |
1310 |
- emake DESTDIR="${D}" install || die "install failed" |
1311 |
- if use mbox; then |
1312 |
- insinto /etc/mutt |
1313 |
- newins "${FILESDIR}"/Muttrc.mbox Muttrc |
1314 |
- else |
1315 |
- insinto /etc/mutt |
1316 |
- doins "${FILESDIR}"/Muttrc |
1317 |
- fi |
1318 |
- |
1319 |
- # A newer file is provided by app-misc/mime-types. So we link it. |
1320 |
- rm "${ED}"/etc/${PN}/mime.types |
1321 |
- dosym /etc/mime.types /etc/${PN}/mime.types |
1322 |
- |
1323 |
- # A man-page is always handy, so fake one |
1324 |
- if use !doc; then |
1325 |
- emake -C doc DESTDIR="${D}" muttrc.man || die |
1326 |
- # make the fake slightly better, bug #413405 |
1327 |
- sed -e 's#@docdir@/manual.txt#http://www.mutt.org/doc/devel/manual.html#' \ |
1328 |
- -e 's#in @docdir@,#at http://www.mutt.org/,#' \ |
1329 |
- -e "s#@sysconfdir@#${EPREFIX}/etc/${PN}#" \ |
1330 |
- -e "s#@bindir@#${EPREFIX}/usr/bin#" \ |
1331 |
- doc/mutt.man > mutt.1 |
1332 |
- cp doc/muttbug.man flea.1 |
1333 |
- cp doc/muttrc.man muttrc.5 |
1334 |
- doman mutt.1 flea.1 muttrc.5 |
1335 |
- else |
1336 |
- # nuke manpages that should be provided by an MTA, bug #177605 |
1337 |
- rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
1338 |
- || ewarn "failed to remove files, please file a bug" |
1339 |
- fi |
1340 |
- |
1341 |
- if use !prefix ; then |
1342 |
- fowners root:mail /usr/bin/mutt_dotlock |
1343 |
- fperms g+s /usr/bin/mutt_dotlock |
1344 |
- fi |
1345 |
- |
1346 |
- dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
1347 |
-} |
1348 |
- |
1349 |
-pkg_postinst() { |
1350 |
- if [[ -z ${REPLACING_VERSIONS} ]] ; then |
1351 |
- echo |
1352 |
- elog "If you are new to mutt you may want to take a look at" |
1353 |
- elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
1354 |
- elog " https://wiki.gentoo.org/wiki/Mutt" |
1355 |
- echo |
1356 |
- else |
1357 |
- echo |
1358 |
- elog "This version of Mutt is entirely based on NeoMutt patches." |
1359 |
- elog "Please visit http://www.neomutt.org/ to learn more about this project." |
1360 |
- elog "As a result, SmartTime functionality has been replaced with" |
1361 |
- elog "CondDate feature. To mimic SmartTime, use this CondDate formatter:" |
1362 |
- elog "%<[12m?%<[7d?%<[12H?%[%H:%M ]&%[%a-%d]>&%[%d-%b]>&%[%b-%y]>" |
1363 |
- echo |
1364 |
- fi |
1365 |
-} |