Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/mutt: ChangeLog mutt-1.5.20-r12.ebuild mutt-1.5.20-r11.ebuild
Date: Mon, 22 Feb 2010 08:07:44
Message-Id: E1NjTKP-0007mZ-3h@stork.gentoo.org
1 grobian 10/02/22 08:07:41
2
3 Modified: ChangeLog
4 Added: mutt-1.5.20-r12.ebuild
5 Removed: mutt-1.5.20-r11.ebuild
6 Log:
7 Revbump for upstream patch dealing with yes/no prompt
8 (Portage version: 2.2.00.15335-prefix/cvs/Darwin powerpc)
9
10 Revision Changes Path
11 1.180 mail-client/mutt/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.180&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.180&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?r1=1.179&r2=1.180
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v
20 retrieving revision 1.179
21 retrieving revision 1.180
22 diff -u -r1.179 -r1.180
23 --- ChangeLog 11 Feb 2010 19:44:48 -0000 1.179
24 +++ ChangeLog 22 Feb 2010 08:07:40 -0000 1.180
25 @@ -1,6 +1,13 @@
26 # ChangeLog for mail-client/mutt
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.179 2010/02/11 19:44:48 grobian Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.180 2010/02/22 08:07:40 grobian Exp $
30 +
31 +*mutt-1.5.20-r12 (22 Feb 2010)
32 +
33 + 22 Feb 2010; Fabian Groffen <grobian@g.o> -mutt-1.5.20-r11.ebuild,
34 + +mutt-1.5.20-r12.ebuild,
35 + +files/mutt-1.5.20-yes-no-non-ascii-a6fddecdc5f5.patch:
36 + Revbump for upstream patch dealing with yes/no prompt
37
38 *mutt-1.5.20-r11 (11 Feb 2010)
39
40
41
42
43 1.1 mail-client/mutt/mutt-1.5.20-r12.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20-r12.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20-r12.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mutt-1.5.20-r12.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.20-r12.ebuild,v 1.1 2010/02/22 08:07:40 grobian Exp $
53
54 inherit eutils flag-o-matic autotools
55
56 PATCHSET_REV="-r4"
57
58 # note: latest sidebar patches can be found here:
59 # http://www.lunar-linux.org/index.php?option=com_content&task=view&id=44
60 SIDEBAR_PATCH_N="patch-1.5.20.sidebar.20090619.txt"
61
62 DESCRIPTION="a small but very powerful text-based mail client"
63 HOMEPAGE="http://www.mutt.org"
64 SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz
65 !vanilla? (
66 !sidebar? (
67 mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
68 http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
69 )
70 )
71 sidebar? (
72 http://www.lunar-linux.org/~tchan/mutt/${SIDEBAR_PATCH_N}
73 )"
74 IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap mbox nls nntp pop qdbm sasl sidebar smime smtp ssl tokyocabinet vanilla"
75 SLOT="0"
76 LICENSE="GPL-2"
77 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~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"
78 RDEPEND=">=sys-libs/ncurses-5.2
79 tokyocabinet? ( dev-db/tokyocabinet )
80 !tokyocabinet? (
81 qdbm? ( dev-db/qdbm )
82 !qdbm? (
83 gdbm? ( sys-libs/gdbm )
84 !gdbm? ( berkdb? ( >=sys-libs/db-4 ) )
85 )
86 )
87 imap? (
88 gnutls? ( >=net-libs/gnutls-1.0.17 )
89 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
90 sasl? ( >=dev-libs/cyrus-sasl-2 )
91 )
92 pop? (
93 gnutls? ( >=net-libs/gnutls-1.0.17 )
94 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
95 sasl? ( >=dev-libs/cyrus-sasl-2 )
96 )
97 smtp? (
98 gnutls? ( >=net-libs/gnutls-1.0.17 )
99 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
100 sasl? ( >=dev-libs/cyrus-sasl-2 )
101 )
102 idn? ( net-dns/libidn )
103 gpg? ( >=app-crypt/gpgme-0.9.0 )
104 smime? ( >=dev-libs/openssl-0.9.6 )
105 app-misc/mime-types"
106 DEPEND="${RDEPEND}
107 net-mail/mailbase
108 doc? (
109 dev-libs/libxml2
110 dev-libs/libxslt
111 app-text/docbook-xsl-stylesheets
112 || ( www-client/lynx www-client/w3m www-client/elinks )
113 )"
114
115 PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV}
116
117 src_unpack() {
118 unpack ${A//${SIDEBAR_PATCH_N}}
119 cd "${S}"
120
121 # this patch is non-generic and only works because we use a sysconfdir
122 # different from the one used by the mailbase ebuild
123 use prefix && epatch "${FILESDIR}"/mutt-1.5.13-prefix-mailcap.patch
124
125 epatch "${FILESDIR}"/mutt-1.5.18-bdb-prefix.patch # fix bdb detection
126 epatch "${FILESDIR}"/mutt-1.5.18-interix.patch
127 built_with_use sys-libs/ncurses unicode && \
128 epatch "${FILESDIR}"/mutt-1.5.18-solaris-ncurses-chars.patch
129 epatch "${FILESDIR}"/mutt-1.5.20-gpgme-1.2.0.patch
130 epatch "${FILESDIR}"/mutt-1.5.20-dont-reveal-bbc.patch
131
132 # post-release hot-fixes
133 epatch "${FILESDIR}"/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch
134 epatch "${FILESDIR}"/mutt-1.5.20-header-weeding-f40de578e8ed.patch
135 epatch "${FILESDIR}"/mutt-1.5.20-display-unsigned-pgp-7f37d0a57d83.patch
136 epatch "${FILESDIR}"/mutt-1.5.20-unmailbox-segfault-25e46aad362b.patch
137 epatch "${FILESDIR}"/mutt-1.5.20-mbox-new-mail-bd59be56c6b0.patch
138 epatch "${FILESDIR}"/mutt-1.5.20-mbox-unchanged-new-mail-9ae13dedb5ed.patch
139 epatch "${FILESDIR}"/mutt-1.5.20-imap-start-fatal-fe30f394cbe6.patch
140 epatch "${FILESDIR}"/mutt-1.5.20-tab-subject-questionmark-298194c414f0-cff8e8ce4327.patch
141 epatch "${FILESDIR}"/mutt-1.5.20-smtp-batch-mode-0a3de4d9a009-f6c6066a5925.patch
142 epatch "${FILESDIR}"/mutt-1.5.20-leave-mailbox-no-new-mail-118b8fef8aae.patch
143 epatch "${FILESDIR}"/mutt-1.5.20-gpgme-keys-d41e043fa775.patch
144 epatch "${FILESDIR}"/mutt-1.5.20-mhs-flags-leak-9f3053f75f27.patch
145 epatch "${FILESDIR}"/mutt-1.5.20-hcache-restore-address-848f08512bf3.patch
146 epatch "${FILESDIR}"/mutt-1.5.20-ungroup-command-77ac8b5c2be6.patch
147 epatch "${FILESDIR}"/mutt-1.5.20-propagate-mh_read_sequences-2fc9348684fe.patch
148 epatch "${FILESDIR}"/mutt-1.5.20-hcache-uidvalidity-size-fix-a2a4286491b4.patch
149 epatch "${FILESDIR}"/mutt-1.5.20-fix-mh-parsing-14bb498c6a1c.patch
150 epatch "${FILESDIR}"/mutt-1.5.20-search-pattern-crash-053ef7bbaa72.patch
151 epatch "${FILESDIR}"/mutt-1.5.20-next-invalid-pattern-crash-6a08a5244d60.patch
152 epatch "${FILESDIR}"/mutt-1.5.20-ssl-CVE-2009-3765-dc09812e63a3.patch
153 epatch "${FILESDIR}"/mutt-1.5.20-ssl-stack-compile-fix-1cf34ea1f128.patch
154 epatch "${FILESDIR}"/mutt-1.5.20-no-hcolor-in-hcache-b7d2cb7c7ce1.patch
155 epatch "${FILESDIR}"/mutt-1.5.20-off-by-one-mailcap-736b6af3c5f1.patch
156 epatch "${FILESDIR}"/mutt-1.5.20-subject-mistruncation-31881f38ca1e.patch
157 epatch "${FILESDIR}"/mutt-1.5.20-copy-From-to-imap-b2b97c7a2ae6.patch
158 epatch "${FILESDIR}"/mutt-1.5.20-yes-no-non-ascii-a6fddecdc5f5.patch
159
160 # patch version string for bug reports
161 sed -i -e 's/"Mutt %s (%s)"/"Mutt %s (%s, Gentoo '"${PVR}"')"/' \
162 muttlib.c || die "failed patching in Gentoo version"
163
164 if use !vanilla && use !sidebar ; then
165 use nntp || rm "${PATCHDIR}"/06-nntp.patch
166 for p in "${PATCHDIR}"/*.patch ; do
167 epatch "${p}"
168 done
169 fi
170
171 if use sidebar ; then
172 use vanilla || \
173 ewarn "the sidebar patch is only applied to a vanilla mutt tree"
174 epatch "${DISTDIR}"/${SIDEBAR_PATCH_N}
175 fi
176
177 AT_M4DIR="m4" eautoreconf
178
179 # the configure script contains some "cleverness" whether or not to setgid
180 # the dotlock program, resulting in bugs like #278332
181 sed -i -e 's/@DOTLOCK_GROUP@//' \
182 Makefile.in || die "sed failed"
183
184 # don't just build documentation (lengthy process, with big dependencies)
185 if use !doc ; then
186 sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die
187 fi
188 }
189
190 src_compile() {
191 declare myconf="
192 $(use_enable nls) \
193 $(use_enable gpg gpgme) \
194 $(use_enable imap) \
195 $(use_enable pop) \
196 $(use_enable smtp) \
197 $(use_enable crypt pgp) \
198 $(use_enable smime) \
199 $(use_enable debug) \
200 $(use_with idn) \
201 --with-curses \
202 --sysconfdir="${EPREFIX}"/etc/${PN} \
203 --with-docdir="${EPREFIX}"/usr/share/doc/${PN}-${PVR} \
204 --with-regex \
205 --enable-nfs-fix --enable-external-dotlock \
206 $(use_with !nntp mixmaster) \
207 --with-exec-shell=${EPREFIX}/bin/sh"
208
209 case $CHOST in
210 *-darwin7)
211 # locales are broken on Panther
212 myconf="${myconf} --enable-locales-fix --without-wc-funcs"
213 myconf="${myconf} --disable-fcntl --enable-flock"
214 ;;
215 *-solaris*)
216 # Solaris has no flock in the standard headers
217 myconf="${myconf} --enable-fcntl --disable-flock"
218 ;;
219 *)
220 myconf="${myconf} --disable-fcntl --enable-flock"
221 ;;
222 esac
223
224 # See Bug #22787
225 unset WANT_AUTOCONF_2_5 WANT_AUTOCONF
226
227 # mutt prioritizes gdbm over bdb, so we will too.
228 # hcache feature requires at least one database is in USE.
229 if use tokyocabinet; then
230 myconf="${myconf} --enable-hcache \
231 --with-tokyocabinet --without-qdbm --without-gdbm --without-bdb"
232 elif use qdbm; then
233 myconf="${myconf} --enable-hcache \
234 --without-tokyocabinet --with-qdbm --without-gdbm --without-bdb"
235 elif use gdbm ; then
236 myconf="${myconf} --enable-hcache \
237 --without-tokyocabinet --without-qdbm --with-gdbm --without-bdb"
238 elif use berkdb; then
239 myconf="${myconf} --enable-hcache \
240 --without-tokyocabinet --without-qdbm --without-gdbm --with-bdb"
241 else
242 myconf="${myconf} --disable-hcache \
243 --without-tokyocabinet --without-qdbm --without-gdbm --without-bdb"
244 fi
245
246 # there's no need for gnutls, ssl or sasl without socket support
247 if use pop || use imap || use smtp ; then
248 if use gnutls; then
249 myconf="${myconf} --with-gnutls"
250 elif use ssl; then
251 myconf="${myconf} --with-ssl"
252 fi
253 # not sure if this should be mutually exclusive with the other two
254 myconf="${myconf} $(use_with sasl)"
255 else
256 myconf="${myconf} --without-gnutls --without-ssl --without-sasl"
257 fi
258
259 if use mbox; then
260 myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail"
261 else
262 myconf="${myconf} --with-homespool=Maildir"
263 fi
264
265 if use !vanilla && use !sidebar ; then
266 # rr.compressed patch
267 myconf="${myconf} --enable-compressed"
268
269 # nntp patch applied conditionally, so avoid QA warning when doing
270 # --disable-nntp while patch not being applied, bug #262069
271 use nntp && myconf="${myconf} --enable-nntp"
272 fi
273
274 econf ${myconf} || die "configure failed"
275 emake || die "make failed"
276 }
277
278 src_install() {
279 local ED=${ED-${D}}
280 make DESTDIR="${D}" install || die "install failed"
281 find "${ED}"/usr/share/doc -type f | grep -v "html\|manual" | xargs gzip
282 if use mbox; then
283 insinto /etc/mutt
284 newins "${FILESDIR}"/Muttrc.mbox Muttrc
285 else
286 insinto /etc/mutt
287 doins "${FILESDIR}"/Muttrc
288 fi
289
290 # A newer file is provided by app-misc/mime-types. So we link it.
291 rm "${ED}"/etc/${PN}/mime.types
292 dosym /etc/mime.types /etc/${PN}/mime.types
293
294 # A man-page is always handy
295 if use !doc; then
296 cp doc/mutt.man mutt.1
297 cp doc/muttbug.man flea.1
298 doman mutt.1 flea.1
299 else
300 # nuke manpages that should be provided by an MTA, bug #177605
301 rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \
302 || ewarn "failed to remove files, please file a bug"
303 fi
304
305 if use !prefix ; then
306 fowners root:mail /usr/bin/mutt_dotlock
307 fperms g+s /usr/bin/mutt_dotlock
308 fi
309
310 dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
311 }
312
313 pkg_setup() {
314 if ! use gpg &&
315 has_version "<${CATEGORY}/${PN}-1.5.20-r2" &&
316 built_with_use ${CATEGORY}/${PN} gpgme ;
317 then
318 ewarn 'The "gpgme" USE-flag has been changed into "gpg". You'
319 ewarn 'previously had "gpgme" set, and you most likely want to'
320 ewarn 'enable "gpg" instead, right now, to obtain equivalent behaviour.'
321 fi
322 }
323
324 pkg_postinst() {
325 echo
326 elog "If you are new to mutt you may want to take a look at"
327 elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
328 elog " http://www.gentoo.org/doc/en/guide-to-mutt.xml"
329 echo
330 }