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