--- /usr/portage/app-text/multitail/multitail-5.2.2.ebuild 2009-04-11 20:05:40.000000000 +0200 +++ multitail-5.2.2.ebuild 2009-07-02 20:31:29.630669009 +0200 @@ -2,32 +2,46 @@ # Distributed under the terms of the GNU General Public License v2 # $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 examples; then + docinto examples + dodoc colors-example.{pl,sh} convert-{geoip,simple}.pl || die + fi + + if use html; then + dohtml manual.html || die + fi }