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.ebuild
Date: Sun, 28 Jun 2009 10:44:24
Message-Id: E1MKrry-0006rS-Pr@stork.gentoo.org
1 grobian 09/06/28 10:44:22
2
3 Modified: ChangeLog
4 Added: mutt-1.5.20.ebuild
5 Log:
6 Version bump to 1.5.20, with a bunch of post release regression fixes from upstream. The pgp_timeout patch has been dropped for this release, since it no longer applies.
7 (Portage version: 2.2.00.13629-prefix/cvs/Darwin powerpc)
8
9 Revision Changes Path
10 1.135 mail-client/mutt/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.135&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?rev=1.135&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/ChangeLog?r1=1.134&r2=1.135
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v
19 retrieving revision 1.134
20 retrieving revision 1.135
21 diff -u -r1.134 -r1.135
22 --- ChangeLog 20 Jun 2009 10:34:58 -0000 1.134
23 +++ ChangeLog 28 Jun 2009 10:44:22 -0000 1.135
24 @@ -1,6 +1,22 @@
25 # ChangeLog for mail-client/mutt
26 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.134 2009/06/20 10:34:58 grobian Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/ChangeLog,v 1.135 2009/06/28 10:44:22 grobian Exp $
30 +
31 +*mutt-1.5.20 (28 Jun 2009)
32 +
33 + 28 Jun 2009; Fabian Groffen <grobian@g.o>
34 + +files/mutt-1.5.13-prefix-mailcap.patch,
35 + +files/mutt-1.5.18-bdb-prefix.patch, +files/mutt-1.5.18-interix.patch,
36 + +files/mutt-1.5.18-solaris-ncurses-chars.patch, +mutt-1.5.20.ebuild,
37 + +files/mutt-1.5.20-display-unsigned-pgp-7f37d0a57d83.patch,
38 + +files/mutt-1.5.20-header-weeding-f40de578e8ed.patch,
39 + +files/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch,
40 + +files/mutt-1.5.20-mbox-new-mail-bd59be56c6b0.patch,
41 + +files/mutt-1.5.20-mbox-unchanged-new-mail-9ae13dedb5ed.patch,
42 + +files/mutt-1.5.20-unmailbox-segfault-25e46aad362b.patch:
43 + Version bump to 1.5.20, with a bunch of post release regression fixes from
44 + upstream. The pgp_timeout patch has been dropped for this release, since
45 + it no longer applies.
46
47 20 Jun 2009; Fabian Groffen <grobian@g.o> -mutt-1.5.13-r2.ebuild,
48 -mutt-1.5.14.ebuild:
49
50
51
52 1.1 mail-client/mutt/mutt-1.5.20.ebuild
53
54 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20.ebuild?rev=1.1&view=markup
55 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mutt/mutt-1.5.20.ebuild?rev=1.1&content-type=text/plain
56
57 Index: mutt-1.5.20.ebuild
58 ===================================================================
59 # Copyright 1999-2009 Gentoo Foundation
60 # Distributed under the terms of the GNU General Public License v2
61 # $Header: /var/cvsroot/gentoo-x86/mail-client/mutt/mutt-1.5.20.ebuild,v 1.1 2009/06/28 10:44:22 grobian Exp $
62
63 inherit eutils flag-o-matic autotools
64
65 PATCHSET_REV="-r1"
66
67 # note: latest sidebar patches can be found here:
68 # http://www.lunar-linux.org/index.php?option=com_content&task=view&id=44
69 SIDEBAR_PATCH_N="patch-1.5.20.sidebar.20090619.txt"
70
71 DESCRIPTION="a small but very powerful text-based mail client"
72 HOMEPAGE="http://www.mutt.org"
73 SRC_URI="ftp://ftp.mutt.org/mutt/devel/${P}.tar.gz
74 !vanilla? (
75 !sidebar? (
76 mirror://gentoo/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
77 http://dev.gentoo.org/~grobian/distfiles/${P}-gentoo-patches${PATCHSET_REV}.tar.bz2
78 )
79 )
80 sidebar? (
81 http://www.lunar-linux.org/~tchan/mutt/${SIDEBAR_PATCH_N}
82 )"
83 IUSE="berkdb crypt debug gdbm gnutls gpgme idn imap mbox nls nntp pop qdbm sasl
84 sidebar smime smtp ssl vanilla"
85 SLOT="0"
86 LICENSE="GPL-2"
87 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"
88 RDEPEND=">=sys-libs/ncurses-5.2
89 qdbm? ( dev-db/qdbm )
90 !qdbm? (
91 gdbm? ( sys-libs/gdbm )
92 !gdbm? ( berkdb? ( >=sys-libs/db-4 ) )
93 )
94 imap? (
95 gnutls? ( >=net-libs/gnutls-1.0.17 )
96 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
97 sasl? ( >=dev-libs/cyrus-sasl-2 )
98 )
99 pop? (
100 gnutls? ( >=net-libs/gnutls-1.0.17 )
101 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
102 sasl? ( >=dev-libs/cyrus-sasl-2 )
103 )
104 smtp? (
105 gnutls? ( >=net-libs/gnutls-1.0.17 )
106 !gnutls? ( ssl? ( >=dev-libs/openssl-0.9.6 ) )
107 sasl? ( >=dev-libs/cyrus-sasl-2 )
108 )
109 idn? ( net-dns/libidn )
110 gpgme? ( >=app-crypt/gpgme-0.9.0 )
111 smime? ( >=dev-libs/openssl-0.9.6 )
112 app-misc/mime-types"
113 DEPEND="${RDEPEND}
114 net-mail/mailbase
115 !vanilla? (
116 dev-libs/libxml2
117 dev-libs/libxslt
118 app-text/docbook-xsl-stylesheets
119 || ( www-client/lynx www-client/w3m www-client/elinks )
120 )"
121
122 PATCHDIR="${WORKDIR}"/${P}-gentoo-patches${PATCHSET_REV}
123
124 src_unpack() {
125 unpack ${A//${SIDEBAR_PATCH_N}}
126 cd "${S}"
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 "${FILESDIR}"/mutt-1.5.13-prefix-mailcap.patch
131
132 epatch "${FILESDIR}"/mutt-1.5.18-bdb-prefix.patch # fix bdb detection
133 epatch "${FILESDIR}"/mutt-1.5.18-interix.patch
134 epatch "${FILESDIR}"/mutt-1.5.18-solaris-ncurses-chars.patch
135 # post-release hot-fixes
136 epatch "${FILESDIR}"/mutt-1.5.20-imap-port-invalid-d6f88fbf8387.patch
137 epatch "${FILESDIR}"/mutt-1.5.20-header-weeding-f40de578e8ed.patch
138 epatch "${FILESDIR}"/mutt-1.5.20-display-unsigned-pgp-7f37d0a57d83.patch
139 epatch "${FILESDIR}"/mutt-1.5.20-unmailbox-segfault-25e46aad362b.patch
140 epatch "${FILESDIR}"/mutt-1.5.20-mbox-new-mail-bd59be56c6b0.patch
141 epatch "${FILESDIR}"/mutt-1.5.20-mbox-unchanged-new-mail-9ae13dedb5ed.patch
142
143 if use !vanilla && use !sidebar ; then
144 use nntp || rm "${PATCHDIR}"/06-nntp.patch
145 for p in "${PATCHDIR}"/*.patch ; do
146 epatch "${p}"
147 done
148 fi
149
150 if use sidebar ; then
151 use vanilla || \
152 ewarn "The sidebar patch is only applied to a vanilla mutt tree."
153 epatch "${DISTDIR}"/${SIDEBAR_PATCH_N}
154 fi
155
156 AT_M4DIR="m4" eautoreconf
157
158 # this should be done only when we're not root
159 if [[ ${UID} != 0 ]] ; then
160 sed -i \
161 -e 's/@DOTLOCK_GROUP@/'"`id -gn`"'/g' \
162 Makefile.in \
163 || die "sed failed"
164 fi
165 }
166
167 src_compile() {
168 declare myconf="
169 $(use_enable nls) \
170 $(use_enable gpgme) \
171 $(use_enable imap) \
172 $(use_enable pop) \
173 $(use_enable smtp) \
174 $(use_enable crypt pgp) \
175 $(use_enable smime) \
176 $(use_enable debug) \
177 $(use_with idn) \
178 --with-curses \
179 --sysconfdir="${EPREFIX}"/etc/${PN} \
180 --with-docdir="${EPREFIX}"/usr/share/doc/${PN}-${PVR} \
181 --with-regex \
182 --enable-nfs-fix --enable-external-dotlock \
183 $(use_with !nntp mixmaster) \
184 --with-exec-shell=${EPREFIX}/bin/sh"
185
186 case $CHOST in
187 *-darwin7)
188 # locales are broken on Panther
189 myconf="${myconf} --enable-locales-fix --without-wc-funcs"
190 myconf="${myconf} --disable-fcntl --enable-flock"
191 ;;
192 *-solaris*)
193 # Solaris has no flock in the standard headers
194 myconf="${myconf} --enable-fcntl --disable-flock"
195 ;;
196 *)
197 myconf="${myconf} --disable-fcntl --enable-flock"
198 ;;
199 esac
200
201 # See Bug #22787
202 unset WANT_AUTOCONF_2_5 WANT_AUTOCONF
203
204 # mutt prioritizes gdbm over bdb, so we will too.
205 # hcache feature requires at least one database is in USE.
206 if use qdbm; then
207 myconf="${myconf} --enable-hcache \
208 --with-qdbm --without-gdbm --without-bdb"
209 elif use gdbm ; then
210 myconf="${myconf} --enable-hcache \
211 --without-qdbm --with-gdbm --without-bdb"
212 elif use berkdb; then
213 myconf="${myconf} --enable-hcache \
214 --without-gdbm --without-qdbm --with-bdb"
215 else
216 myconf="${myconf} --disable-hcache \
217 --without-qdbm --without-gdbm --without-bdb"
218 fi
219
220 # there's no need for gnutls, ssl or sasl without socket support
221 if use pop || use imap || use smtp ; then
222 if use gnutls; then
223 myconf="${myconf} --with-gnutls"
224 elif use ssl; then
225 myconf="${myconf} --with-ssl"
226 fi
227 # not sure if this should be mutually exclusive with the other two
228 myconf="${myconf} $(use_with sasl)"
229 else
230 myconf="${myconf} --without-gnutls --without-ssl --without-sasl"
231 fi
232
233 if use mbox; then
234 myconf="${myconf} --with-mailpath=${EPREFIX}/var/spool/mail"
235 else
236 myconf="${myconf} --with-homespool=Maildir"
237 fi
238
239 if use !vanilla && use !sidebar ; then
240 # rr.compressed patch
241 myconf="${myconf} --enable-compressed"
242
243 # nntp patch applied conditionally, so avoid QA warning when doing
244 # --disable-nntp while patch not being applied, bug #262069
245 use nntp && myconf="${myconf} --enable-nntp"
246 fi
247
248 econf ${myconf} || die "configure failed"
249 emake || die "make failed"
250 }
251
252 src_install() {
253 local ED=${ED-${D}}
254 make DESTDIR="${D}" install || die "install failed"
255 find "${ED}"/usr/share/doc -type f | grep -v "html\|manual" | xargs gzip
256 if use mbox; then
257 insinto /etc/mutt
258 newins "${FILESDIR}"/Muttrc.mbox Muttrc
259 else
260 insinto /etc/mutt
261 doins "${FILESDIR}"/Muttrc
262 fi
263
264 # A newer file is provided by app-misc/mime-types. So we link it.
265 rm "${ED}"/etc/${PN}/mime.types
266 dosym /etc/mime.types /etc/${PN}/mime.types
267
268 # charset.alias is installed by libiconv
269 rm -f "${ED}"/usr/lib/charset.alias
270 rm -f "${ED}"/usr/share/locale/locale.alias
271
272 dodoc BEWARE COPYRIGHT ChangeLog NEWS OPS* PATCHES README* TODO VERSION
273 }
274
275 pkg_postinst() {
276 echo
277 elog "If you are new to mutt you may want to take a look at"
278 elog "the Gentoo QuickStart Guide to Mutt E-Mail:"
279 elog " http://www.gentoo.org/doc/en/guide-to-mutt.xml"
280 echo
281 }