# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools DESCRIPTION="A utility to merge apache logs in chronological order" SRC_URI="mirror://sourceforge/mergelog/${P}.tar.gz" HOMEPAGE="http://mergelog.sourceforge.net" IUSE="splitlog" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc amd64" DEPEND=" virtual/libc splitlog? ( sys-devel/autoconf ) " src_unpack() { unpack $A cd $S if use splitlog ; then epatch ${FILESDIR}/${PN}-split.patch eautoreconf fi } src_compile() { econf || die "configure failed" emake || die "make failed" } src_install() { einstall dobin src/mergelog src/zmergelog doman man/*.1 dodoc AUTHORS COPYING README }