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