--- multitail-5.2.2.ebuild.orig 2009-09-12 19:40:27.875525995 +0200 +++ multitail-5.2.2.ebuild 2009-09-12 19:35:44.669526468 +0200 @@ -1,33 +1,47 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/www/viewcvs.gentoo.org/raw_cvs/gentoo-x86/app-text/multitail/multitail-5.2.2.ebuild,v 1.5 2009/04/11 18:00:01 nixnut Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/multitail/multitail-5.2.2.ebuild,v 1.5 2009/04/11 18:00:01 nixnut Exp $ -inherit flag-o-matic toolchain-funcs +EAPI="2" -DESCRIPTION="Tail with multiple windows." +inherit flag-o-matic toolchain-funcs eutils + +DESCRIPTION="Tail with multiple windows" HOMEPAGE="http://www.vanheusden.com/multitail/index.html" SRC_URI="http://www.vanheusden.com/multitail/${P}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 hppa ia64 ppc sparc x86" -IUSE="debug" +IUSE="debug examples html" DEPEND="sys-libs/ncurses" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/Makefile.patch" +} -src_compile() { +src_configure() { tc-export CC - use debug && append-flags "-D_DEBUG" - emake all || die "make failed" + use debug && append-flags "-D_DEBUG -g" } src_install () { - dobin multitail + dobin multitail || die + insinto /etc - doins multitail.conf - insinto /etc/multitail/ - doins colors-example.pl colors-example.sh convert-geoip.pl convert-simple.pl - dodoc Changes readme.txt thanks.txt - dohtml manual.html manual-nl.html - doman multitail.1 + doins multitail.conf || die + + dodoc Changes readme.txt thanks.txt || die + doman multitail.1 || die + + if use html; then + dohtml manual.html || die + fi + + if use examples; then + docinto examples + dodoc colors-example.{pl,sh} convert-{geoip,simple}.pl || die + fi }