From 03de2698f99abe2598cfdf600c64ead54907017d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 8 Mar 2005 23:56:21 +0000 Subject: make docs optional USE=doc by Diego Pettenò #83330 (Portage version: 2.0.51.19) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net-libs/libnet/libnet-1.1.2.1.ebuild | 27 +++++++++------------------ net-libs/libnet/metadata.xml | 2 +- 2 files changed, 10 insertions(+), 19 deletions(-) (limited to 'net-libs/libnet') diff --git a/net-libs/libnet/libnet-1.1.2.1.ebuild b/net-libs/libnet/libnet-1.1.2.1.ebuild index e53974548cb6..98256c9e6d34 100644 --- a/net-libs/libnet/libnet-1.1.2.1.ebuild +++ b/net-libs/libnet/libnet-1.1.2.1.ebuild @@ -1,8 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.1.2.1.ebuild,v 1.11 2005/01/11 14:10:22 dragonheart Exp $ - -inherit gnuconfig +# $Header: /var/cvsroot/gentoo-x86/net-libs/libnet/libnet-1.1.2.1.ebuild,v 1.12 2005/03/08 23:56:21 vapier Exp $ DESCRIPTION="library to provide an API for commonly used low-level network functions (mainly packet injection)" HOMEPAGE="http://www.packetfactory.net/libnet/" @@ -10,27 +8,20 @@ SRC_URI="http://www.packetfactory.net/libnet/dist/${P}.tar.gz" LICENSE="LGPL-2" SLOT="1.1" -KEYWORDS="alpha arm amd64 hppa ia64 mips ppc ppc-macos sparc x86" -IUSE="" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc-macos sparc x86" +IUSE="doc" S=${WORKDIR}/libnet -src_compile() { - cd ${S} - - # Detect mips systems properly - gnuconfig_update - - econf || die "Failed to run econf!" - emake || die "Failed to run emake!" -} - src_install(){ - make DESTDIR=${D} install || die "Failed to install" + make DESTDIR="${D}" install || die "Failed to install" dobin libnet-config || die doman doc/man/man3/*.3 dodoc VERSION README doc/* - dohtml -r doc/html/* - docinto sample ; dodoc sample/*.[ch] + if use doc ; then + dohtml -r doc/html/* + docinto sample + dodoc sample/*.[ch] + fi } diff --git a/net-libs/libnet/metadata.xml b/net-libs/libnet/metadata.xml index 1b4d4fba8d5e..152fa1e19d26 100644 --- a/net-libs/libnet/metadata.xml +++ b/net-libs/libnet/metadata.xml @@ -1,7 +1,7 @@ -no-herd +netmon vapier@gentoo.org -- cgit v1.2.3-65-gdbad