# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-mail/mairix/mairix-0.18.ebuild,v 1.2 2006/05/15 16:03:43 tove Exp $ inherit toolchain-funcs DESCRIPTION="Indexes and searches Maildir/MH folders" HOMEPAGE="http://www.rpcurnow.force9.co.uk/mairix/" SRC_URI="http://www.rpcurnow.force9.co.uk/mairix/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~s390 ~sh ~sparc ~x86" #IUSE="zlib bzip2" IUSE="" #RDEPEND="zlib? ( sys-libs/zlib ) # bzip2? ( app-arch/bzip2 )" RDEPEND="sys-libs/zlib app-arch/bzip2" DEPEND="${RDEPEND} sys-devel/flex sys-devel/bison" src_unpack() { unpack ${A} # 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" } src_compile() { export CC="$(tc-getCC)" econf --enable-gzip-mbox --enable-bzip-mbox|| die "configure failed." # $(use_enable zlib gzip-mbox) \ # $(use_enable bzip2 bzip-mbox) || die "configure failed." emake all || die "make failed." } src_install() { dobin mairix || die "dobin failed" doman mairix.1 mairixrc.5 || die "doman failed" dodoc NEWS README dotmairixrc.eg }