|
|
# Copyright 1999-2006 Gentoo Foundation |
# Copyright 1999-2007 Gentoo Foundation |
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.1.5.ebuild,v 1.5 2006/12/22 16:18:48 dertobi123 Exp $ | # $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.1.5.ebuild,v 1.5 2006/12/22 16:18:48 dertobi123 Exp $ |
| |
inherit bash-completion eutils | inherit bash-completion eutils |
| |
DESCRIPTION="A fast unix command line interface to WWW" | DESCRIPTION="A fast unix command line interface to WWW" |
HOMEPAGE="http://alioth.debian.org/projects/surfraw/" |
HOMEPAGE="http://surfraw.alioth.debian.org" |
SRC_URI="mirror://debian/pool/main/s/surfraw/${PN}_${PV}.tar.gz" |
SRC_URI="${HOMEPAGE}/dist/${P}.tar.gz" |
| |
SLOT="0" | SLOT="0" |
LICENSE="public-domain" | LICENSE="public-domain" |
KEYWORDS="amd64 ppc sparc x86" |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
IUSE="" | IUSE="" |
| |
|
RDEPEND="" |
|
DEPEND="" |
|
|
src_unpack() { | src_unpack() { |
unpack ${A}; cd ${S} | unpack ${A}; cd ${S} |
| |
epatch ${FILESDIR}/${PN}-2.1.5-gentoo_pkg_tools.patch | epatch ${FILESDIR}/${PN}-2.1.5-gentoo_pkg_tools.patch |
|
# Man page symlinks shouldn't link to compressed files |
|
sed -i 's,\.gz,,g' links.IN |
} | } |
| |
src_compile() { | src_compile() { |
econf \ | econf \ |
--with-elvidir='$(datadir)'/surfraw || die "./configure failed" |
--with-elvidir='$(datadir)'/surfraw \ |
|
--disable-opensearch \ |
|
|| die "./configure failed" |
emake || die "make failed" | emake || die "make failed" |
} | } |
| |
|
src_test() { |
|
ewarn "Testsuite is not being run!" |
|
einfo "The testsuite for surfraw requires a working network connection" |
|
einfo "and relies on the output generated by services beyond our control," |
|
einfo "and as such its success is likely quite ephemeral. If you" |
|
einfo "experience problems you should first run the testsuite locally" |
|
einfo "before reporting bugs to help in tracking down the source of the" |
|
einfo "bug." |
|
} |
|
|
src_install() { | src_install() { |
make DESTDIR=${D} install || die "make install failed" | make DESTDIR=${D} install || die "make install failed" |
dodoc debian/changelog AUTHORS HACKING NEWS README TODO |
dodoc debian/changelog AUTHORS ChangeLog HACKING NEWS README TODO |
| |
dobashcompletion surfraw-bash-completion | dobashcompletion surfraw-bash-completion |
} | } |