# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/iptraf-ng/iptraf-ng-1.0.1.ebuild,v 1.1 2010/03/10 18:59:11 jer Exp $ EAPI=2 inherit flag-o-matic DESCRIPTION="console-based network monitoring utility, fork off iptraf 3.0.0" HOMEPAGE="https://fedorahosted.org/iptraf-ng/" SRC_URI="https://fedorahosted.org/releases/i/p/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="unicode" DEPEND=" !net-analyzer/iptraf sys-libs/ncurses unicode? ( sys-libs/ncurses[unicode] ) " RDEPEND="${DEPEND}" src_prepare() { if use unicode; then export ncurses_CFLAGS=$( ncursesw5-config --cflags ) export ncurses_LIBS=$( ncursesw5-config --libs ) else export ncurses_CFLAGS=$( ncurses5-config --cflags ) export ncurses_LIBS=$( ncurses5-config --libs ) fi export libpanel_CFLAGS="-I/usr/include" export libpanel_LIBS="-lpanel" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" keepdir /var/{lib,run,log}/iptraf }