# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/etherape/etherape-0.9.4.ebuild,v 1.7 2006/09/04 16:41:30 pva Exp $ inherit eutils DESCRIPTION="A graphical network monitor for Unix modeled after etherman" SRC_URI="mirror://sourceforge/etherape/${P}.tar.gz" HOMEPAGE="http://etherape.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86" IUSE="" DEPEND=">=gnome-base/libglade-2.0 >=gnome-base/libgnomeui-2.0 net-libs/libpcap sys-devel/gettext" src_unpack() { unpack ${A}; cd "${S}" epatch "${FILESDIR}"/${PN}-0.9.3-res_mkquery.patch aclocal -I m4 || die "aclocal failed" autoconf || die "autoconf failed" libtoolize --copy --force } src_install() { make DESTDIR="${D}" install || die "make install failed" # move shortcut to gnome2 compliant location dodir /usr/share/applications mv "${D}"/usr/share/gnome/apps/Applications/etherape.desktop \ "${D}"/usr/share/applications echo "Categories=GNOME;Application;Network;" >> "${D}"/usr/share/applications/etherape.desktop rm -rf "${D}"/usr/share/gnome dodoc ABOUT-NLS AUTHORS ChangeLog FAQ NEWS OVERVIEW dodoc README* TODO }