blob: 32bbbebd544b4c30733933e9e062fefbbd9af6a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-mail/mairix/mairix-0.22.ebuild,v 1.1 2010/08/30 07:34:06 radhermit Exp $
EAPI=3
inherit toolchain-funcs eutils
DESCRIPTION="Indexes and searches Maildir/MH folders"
HOMEPAGE="http://www.rpcurnow.force9.co.uk/mairix/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
gnus? ( mirror://gentoo/${P}-gnus-marks-propagation.patch.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sh ~sparc ~x86 ~x86-macos"
IUSE="zlib bzip2 gnus"
RDEPEND="zlib? ( sys-libs/zlib )
bzip2? ( app-arch/bzip2 )"
DEPEND="${RDEPEND}
sys-devel/flex
sys-devel/bison"
src_prepare() {
# econf would fail with unknown options.
# Now it only prints "Unrecognized option".
sed -i -e "/^[[:space:]]*bad_options=yes/d" "${S}"/configure || die "sed failed"
# Fix parallel make
epatch "${FILESDIR}"/${P}-parallel-make.patch
# Add support for gnus marks propagation (bug #274578)
use gnus && epatch "${WORKDIR}"/${P}-gnus-marks-propagation.patch
}
src_configure() {
tc-export CC
econf \
$(use_enable zlib gzip-mbox) \
$(use_enable bzip2 bzip-mbox)
}
src_install() {
dobin mairix || die "dobin failed"
doman mairix.1 mairixrc.5 || die "doman failed"
dodoc NEWS README dotmairixrc.eg || die "dodoc failed"
}
|