# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-libs/libwhisker/libwhisker-1.8.ebuild,v 1.3 2004/02/27 14:14:44 mcummings Exp $ DESCRIPTION="Perl module geared to HTTP testing." HOMEPAGE="http://www.wiretrip.net/rfp/" SRC_URI="http://www.wiretrip.net/libwhisker/${PN}-current.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc ~sparc" S="${WORKDIR}/${P}" DEPEND=">=perl-5.6.1 ssl? ( >=Net-SSLeay-1.19 )" RDEPEND=${DEPEND} IUSE="ssl" RESTRICT="fetch" pkg_nofetch() { einfo "Could not find the libwhisker tarball!" einfo "It could not be fetched normally because http://www.wiretrip.net " einfo "denies the wget User-Agent header." einfo "You can find this library in: " einfo ${SRC_URI} } src_compile() { cd ${S} perl Makefile.pl lib } src_install() { cd ${S} vendor_perl=`perl -e 'use Config; print $Config{installvendorlib}'` dodir ${vendor_perl} insinto ${vendor_perl} doins LW.pm dodoc docs/OPTIMIZE docs/evil.htm docs/whisker_hash.txt dodoc simple.pl api_demo.pl README perl scripts/func2html.pl LW.pm >> LW.html dohtml LW.html }