# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-3.00.ebuild,v 1.8 2004/01/20 19:52:13 spock Exp $ IUSE="gtk gnome ipv6" S=${WORKDIR}/${P} DESCRIPTION="Portscanner" SRC_URI="http://www.insecure.org/nmap/dist/${P}.tgz" HOMEPAGE="http://www.insecure.org/nmap/" DEPEND="virtual/glibc gtk? ( =x11-libs/gtk+-1.2* )" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc sparc alpha" src_compile() { if [ `use ipv6` ]; then econf --enable-ipv6 || die else econf || die fi use gtk && ( \ make || die ) || ( make nmap || die ) } src_install() { local myinst # If gnome does not exist on the system, there is no need for the gnome # menu item. use gnome || myinst="${myinst} deskdir=${S}" make \ prefix=${D}/usr \ mandir=${D}/usr/share/man \ nmapdatadir=${D}/usr/share/nmap \ install || die dodoc CHANGELOG COPYING HACKING README* cd docs dodoc *.txt dohtml *.html }