# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 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="" SLOT="0" KEYWORDS="~x86" IUSE="unicode" DEPEND="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" }