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