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