1 |
grobian 11/07/29 17:40:45 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mutt-1.5.21-r6.ebuild |
5 |
Removed: mutt-1.5.21-r5.ebuild |
6 |
Log: |
7 |
Revbump for fix from upstream for spam rule changes and stale header caches, fix sidebar path splitting, bug #373197, comment #11 |
8 |
|
9 |
(Portage version: 2.2.01.19011-prefix/cvs/Darwin powerpc) |
10 |
|
11 |
Revision Changes Path |
12 |
1.218 mail-client/mutt/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.218&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.218&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/mutt/ChangeLog?r1=1.217&r2=1.218 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v |
21 |
retrieving revision 1.217 |
22 |
retrieving revision 1.218 |
23 |
diff -u -r1.217 -r1.218 |
24 |
--- ChangeLog 10 Jul 2011 17:51:40 -0000 1.217 |
25 |
+++ ChangeLog 29 Jul 2011 17:40:45 -0000 1.218 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for mail-client/mutt |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.217 2011/07/10 17:51:40 grobian Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.218 2011/07/29 17:40:45 grobian Exp $ |
31 |
+ |
32 |
+*mutt-1.5.21-r6 (29 Jul 2011) |
33 |
+ |
34 |
+ 29 Jul 2011; Fabian Groffen <grobian@g.o> -mutt-1.5.21-r5.ebuild, |
35 |
+ +mutt-1.5.21-r6.ebuild: |
36 |
+ Revbump for fix from upstream for spam rule changes and stale header caches, |
37 |
+ fix sidebar path splitting, bug #373197, comment #11 |
38 |
|
39 |
*mutt-1.5.21-r5 (10 Jul 2011) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 mail-client/mutt/mutt-1.5.21-r6.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/mutt/mutt-1.5.21-r6.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/mutt/mutt-1.5.21-r6.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: mutt-1.5.21-r6.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2011 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.21-r6.ebuild,v 1.1 2011/07/29 17:40:45 grobian Exp $ |
54 |
|
55 |
EAPI="3" |
56 |
|
57 |
inherit eutils flag-o-matic autotools |
58 |
|
59 |
PATCHSET_REV="-r6" |
60 |
|
61 |
DESCRIPTION="A small but very powerful text-based mail client" |
62 |
HOMEPAGE="http://www.mutt.org/" |
63 |
SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz |
64 |
mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2 |
65 |
http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2" |
66 |
IUSE="berkdb crypt debug doc gdbm gnutls gpg idn imap mbox nls nntp pop qdbm sasl sidebar smime smtp ssl tokyocabinet" |
67 |
SLOT="0" |
68 |
LICENSE="GPL-2" |
69 |
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" |
70 |
RDEPEND=">=sys-libs/ncurses-5.2 |
71 |
tokyocabinet? ( dev-db/tokyocabinet ) |
72 |
!tokyocabinet? ( |
73 |
qdbm? ( dev-db/qdbm ) |
74 |
!qdbm? ( |
75 |
gdbm? ( sys-libs/gdbm ) |
76 |
!gdbm? ( berkdb? ( >=sys-libs/db-4 ) ) |
77 |
) |
78 |
) |
79 |
imap? ( |
80 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
81 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
82 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
83 |
) |
84 |
pop? ( |
85 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
86 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
87 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
88 |
) |
89 |
smtp? ( |
90 |
gnutls? ( >=net-libs/gnutls-1.0.17 ) |
91 |
!gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) ) |
92 |
sasl? ( >=dev-libs/cyrus-sasl-2 ) |
93 |
) |
94 |
idn? ( net-dns/libidn ) |
95 |
gpg? ( >=app-crypt/gpgme-0.9.0 ) |
96 |
smime? ( >=dev-libs/openssl-0.9.6 ) |
97 |
app-misc/mime-types" |
98 |
DEPEND="${RDEPEND} |
99 |
net-mail/mailbase |
100 |
doc? ( |
101 |
dev-libs/libxml2 |
102 |
dev-libs/libxslt |
103 |
app-text/docbook-xsl-stylesheets |
104 |
|| ( www-client/lynx www-client/w3m www-client/elinks ) |
105 |
)" |
106 |
|
107 |
PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV} |
108 |
|
109 |
src_prepare() { |
110 |
# Post-release hot-fixes grabbed from HG, this is what all following |
111 |
# patches are based on in my Mercurial patchqueue (mq). |
112 |
# If you ever take over or need to modify patches here, just check |
113 |
# out the gentoo branch(es) of Gentoo's Mutt Mercurial clone, and |
114 |
# the patchqueue as it'll save you a lot of work. |
115 |
# http://prefix.gentooexperimental.org:8000/mutt/ |
116 |
# http://prefix.gentooexperimental.org:8000/mutt-patches/ |
117 |
for rev in $(eval echo {0..${PR#r}}) ; do |
118 |
local revpatch="${PATCHDIR}"/mutt-gentoo-${PV}-r${rev}.patch |
119 |
[[ -e ${revpatch} ]] && \ |
120 |
epatch "${revpatch}" |
121 |
done |
122 |
|
123 |
# this patch is non-generic and only works because we use a sysconfdir |
124 |
# different from the one used by the mailbase ebuild |
125 |
use prefix && epatch "${PATCHDIR}"/prefix-mailcap.patch |
126 |
|
127 |
# must have fixes to compile or behave correctly, upstream |
128 |
# ignores, disagrees or simply doesn't respond/apply |
129 |
epatch "${PATCHDIR}"/bdb-prefix.patch # fix bdb detection |
130 |
epatch "${PATCHDIR}"/interix-btowc.patch |
131 |
epatch "${PATCHDIR}"/solaris-ncurses-chars.patch |
132 |
epatch "${PATCHDIR}"/gpgme-1.2.0.patch |
133 |
# same category, but functional bits |
134 |
epatch "${PATCHDIR}"/dont-reveal-bbc.patch |
135 |
|
136 |
# the big feature patches that upstream doesn't want to include, but |
137 |
# nearly every distro has due to their usefulness |
138 |
for p in "${PATCHDIR}"/[0-9][0-9]-*.patch ; do |
139 |
epatch "${p}" |
140 |
done |
141 |
|
142 |
# we conditionalise this one, simply because it has considerable |
143 |
# impact on the code |
144 |
if use sidebar ; then |
145 |
epatch "${PATCHDIR}"/sidebar.patch |
146 |
epatch "${PATCHDIR}"/sidebar-utf8.patch |
147 |
epatch "${PATCHDIR}"/sidebar-dotpathsep.patch |
148 |
fi |
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 |
# many patches touch the buildsystem, we always need this |
155 |
AT_M4DIR="m4" eautoreconf |
156 |
|
157 |
# the configure script contains some "cleverness" whether or not to setgid |
158 |
# the dotlock program, resulting in bugs like #278332 |
159 |
sed -i -e 's/@DOTLOCK_GROUP@//' \ |
160 |
Makefile.in || die "sed failed" |
161 |
|
162 |
# don't just build documentation (lengthy process, with big dependencies) |
163 |
if use !doc ; then |
164 |
sed -i -e '/SUBDIRS =/s/doc//' Makefile.in || die |
165 |
fi |
166 |
} |
167 |
|
168 |
src_configure() { |
169 |
local myconf=" |
170 |
$(use_enable crypt pgp) \ |
171 |
$(use_enable debug) \ |
172 |
$(use_enable gpg gpgme) \ |
173 |
$(use_enable imap) \ |
174 |
$(use_enable nls) \ |
175 |
$(use_enable nntp) \ |
176 |
$(use_enable pop) \ |
177 |
$(use_enable smime) \ |
178 |
$(use_enable smtp) \ |
179 |
$(use_with idn) \ |
180 |
$(use_with !nntp mixmaster) \ |
181 |
--enable-compressed \ |
182 |
--enable-external-dotlock \ |
183 |
--enable-nfs-fix \ |
184 |
--sysconfdir="${EPREFIX}"/etc/${PN} \ |
185 |
--with-curses \ |
186 |
--with-docdir="${EPREFIX}"/usr/share/doc/${PN}-${PVR} \ |
187 |
--with-regex \ |
188 |
--with-exec-shell=${EPREFIX}/bin/sh" |
189 |
|
190 |
case $CHOST in |
191 |
*-solaris*) |
192 |
# Solaris has no flock in the standard headers |
193 |
myconf="${myconf} --enable-fcntl --disable-flock" |
194 |
;; |
195 |
*) |
196 |
myconf="${myconf} --disable-fcntl --enable-flock" |
197 |
;; |
198 |
esac |
199 |
|
200 |
# mutt prioritizes gdbm over bdb, so we will too. |
201 |
# hcache feature requires at least one database is in USE. |
202 |
if use tokyocabinet; then |
203 |
myconf="${myconf} --enable-hcache \ |
204 |
--with-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
205 |
elif use qdbm; then |
206 |
myconf="${myconf} --enable-hcache \ |
207 |
--without-tokyocabinet --with-qdbm --without-gdbm --without-bdb" |
208 |
elif use gdbm ; then |
209 |
myconf="${myconf} --enable-hcache \ |
210 |
--without-tokyocabinet --without-qdbm --with-gdbm --without-bdb" |
211 |
elif use berkdb; then |
212 |
myconf="${myconf} --enable-hcache \ |
213 |
--without-tokyocabinet --without-qdbm --without-gdbm --with-bdb" |
214 |
else |
215 |
myconf="${myconf} --disable-hcache \ |
216 |
--without-tokyocabinet --without-qdbm --without-gdbm --without-bdb" |
217 |
fi |
218 |
|
219 |
# there's no need for gnutls, ssl or sasl without socket support |
220 |
if use pop || use imap || use smtp ; then |
221 |
if use gnutls; then |
222 |
myconf="${myconf} --with-gnutls" |
223 |
elif use ssl; then |
224 |
myconf="${myconf} --with-ssl" |
225 |
fi |
226 |
# not sure if this should be mutually exclusive with the other two |
227 |
myconf="${myconf} $(use_with sasl)" |
228 |
else |
229 |
myconf="${myconf} --without-gnutls --without-ssl --without-sasl" |
230 |
fi |
231 |
|
232 |
if use mbox; then |
233 |
myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail" |
234 |
else |
235 |
myconf="${myconf} --with-homespool=Maildir" |
236 |
fi |
237 |
|
238 |
econf ${myconf} || die "configure failed" |
239 |
} |
240 |
|
241 |
src_install() { |
242 |
make DESTDIR="${D}" install || die "install failed" |
243 |
if use mbox; then |
244 |
insinto /etc/mutt |
245 |
newins "${FILESDIR}"/Muttrc.mbox Muttrc |
246 |
else |
247 |
insinto /etc/mutt |
248 |
doins "${FILESDIR}"/Muttrc |
249 |
fi |
250 |
|
251 |
# A newer file is provided by app-misc/mime-types. So we link it. |
252 |
rm "${ED}"/etc/${PN}/mime.types |
253 |
dosym /etc/mime.types /etc/${PN}/mime.types |
254 |
|
255 |
# A man-page is always handy |
256 |
if use !doc; then |
257 |
make -C doc DESTDIR="${D}" muttrc.man || die |
258 |
cp doc/mutt.man mutt.1 |
259 |
cp doc/muttbug.man flea.1 |
260 |
cp doc/muttrc.man muttrc.5 |
261 |
doman mutt.1 flea.1 muttrc.5 |
262 |
else |
263 |
# nuke manpages that should be provided by an MTA, bug #177605 |
264 |
rm "${ED}"/usr/share/man/man5/{mbox,mmdf}.5 \ |
265 |
|| ewarn "failed to remove files, please file a bug" |
266 |
fi |
267 |
|
268 |
if use !prefix ; then |
269 |
fowners root:mail /usr/bin/mutt_dotlock |
270 |
fperms g+s /usr/bin/mutt_dotlock |
271 |
fi |
272 |
|
273 |
dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION |
274 |
} |
275 |
|
276 |
pkg_postinst() { |
277 |
echo |
278 |
elog "If you are new to mutt you may want to take a look at" |
279 |
elog "the Gentoo QuickStart Guide to Mutt E-Mail:" |
280 |
elog " http://dev.gentoo.org/~grobian/guide-to-mutt.xml" |
281 |
echo |
282 |
} |