diff options
author | Seemant Kulleen <seemant@gentoo.org> | 2005-05-10 12:17:31 +0000 |
---|---|---|
committer | Seemant Kulleen <seemant@gentoo.org> | 2005-05-10 12:17:31 +0000 |
commit | d4f41f0d1734ab46de341b3b08dd3a5280dfd55f (patch) | |
tree | 80f5a5405a225e6ae6a6b2823907a8a6a4ff2a20 /www-client/surfraw/surfraw-2.1.0.1.ebuild | |
parent | Added to ~ppc (diff) | |
download | gentoo-2-d4f41f0d1734ab46de341b3b08dd3a5280dfd55f.tar.gz gentoo-2-d4f41f0d1734ab46de341b3b08dd3a5280dfd55f.tar.bz2 gentoo-2-d4f41f0d1734ab46de341b3b08dd3a5280dfd55f.zip |
Version bump thanks to: James Rowe <jnrowe@ukfsn.org> in bug #90968
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'www-client/surfraw/surfraw-2.1.0.1.ebuild')
-rw-r--r-- | www-client/surfraw/surfraw-2.1.0.1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/www-client/surfraw/surfraw-2.1.0.1.ebuild b/www-client/surfraw/surfraw-2.1.0.1.ebuild new file mode 100644 index 000000000000..e8c23266d37b --- /dev/null +++ b/www-client/surfraw/surfraw-2.1.0.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/surfraw/surfraw-2.1.0.1.ebuild,v 1.1 2005/05/10 12:17:31 seemant Exp $ + +inherit versionator bash-completion eutils + +MY_PF=${PN}_$(replace_version_separator 3 '-') +S=${WORKDIR}/${PN} +DESCRIPTION="A fast unix command line interface to WWW" +HOMEPAGE="http://alioth.debian.org/projects/surfraw/" +SRC_URI="mirror://debian/pool/main/s/surfraw/${MY_PF}.tar.gz + mirror://gentoo/${P}-gentoo-patches.tar.bz2" + +SLOT="0" +LICENSE="public-domain" +KEYWORDS="~x86 ~sparc ~ppc" +IUSE="" + +src_unpack() { + unpack ${A}; cd ${S} + + sed -i 's,/lib/,/share/,g' surfraw-bash-completion surfraw.1.in elvi.1sr.in + EPATCH_SUFFIX="patch" epatch ${WORKDIR}/gentoo-patches +} + +src_compile() { + econf \ + --with-elvidir='$(datadir)'/surfraw || die "./configure failed" + emake || die "make failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + dodoc debian/changelog AUTHORS HACKING NEWS README TODO + + dobashcompletion surfraw-bash-completion +} + +pkg_postinst() { + bash-completion_pkg_postinst + einfo + einfo "You can get a list of installed elvi by just typing 'surfraw' or" + einfo "the abbreviated 'sr'." + einfo + einfo "You can try some searches, for example:" + einfo "$ sr ask why is jeeves gay? " + einfo "$ sr google -results=100 RMS, GNU, which is sinner, which is sin?" + einfo "$ sr rhyme -method=perfect Julian" + einfo + einfo "The system configuration file is /etc/surfraw.conf" + einfo + einfo "Users can specify preferences in '~/.surfraw.conf' e.g." + einfo "SURFRAW_graphical_browser=mozilla" + einfo "SURFRAW_text_browser=w3m" + einfo "SURFRAW_graphical=no" + einfo + einfo "surfraw works with any graphical and/or text WWW browser" + einfo + if has_version '=www-client/surfraw-1.0.7'; then + ewarn "surfraw usage has changed slightly since version 1.0.7, elvi are now called" + ewarn "using the 'sr' wrapper script as described above. If you wish to return to" + ewarn "the old behaviour you can add /usr/share/surfraw to your \$PATH" + fi +} |