View | Details | Raw Unified
Collapse All | Expand All

(-) surfraw/files/surfraw-2.1.5-gentoo_pkg_tools.patch (+19 lines)
Added Link Here 
  Needs a little more thought, or some method which would allow for an upstream
push without affecting the non-Gentoo users.
Index: surfraw-2.1.5/surfraw-bash-completion.IN
===================================================================
--- surfraw-2.1.5/surfraw-bash-completion.IN	{cset 8f95d483-869f-47ba-aba2-f0a12bb9dd07}
@@ -1,4 +1,20 @@
 # -*- sh -*- bash programmable completion for Surfraw, v2.2
 _surfraw() 
 {       COMPREPLY=()
 	local cur=${COMP_WORDS[COMP_CWORD]}
@@ -14,7 +30,7 @@ _surfraw() 
 	then    COMPREPLY=( $( compgen -W "$elvi" -- $cur ) )
 		# "sr go<tab>" for google
 	elif    [[ $prev == @(alioth|deb@(bugs|contents|packages|pts|sec)|freshmeat|fsfdir|sourceforge) ]]
-	then    COMPREPLY=( $(apt-cache --generate pkgnames $cur) )
 		# "sr debbugs 4<tab>" to check 44bsd-rdist bugs...
 	elif    [[ -x /usr/bin/look ]] # in bsdmainutils, "important"
 	then	COMPREPLY=( $(/usr/bin/look ${cur:-''}) )
(-) surfraw/surfraw-2.1.5.ebuild (-3 / +5 lines)
 Lines 4-10    Link Here 
inherit bash-completion eutils
inherit bash-completion eutils
S=${WORKDIR}/${PN}
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://alioth.debian.org/projects/surfraw/"
SRC_URI="mirror://debian/pool/main/s/surfraw/${PN}_${PV}.tar.gz"
SRC_URI="mirror://debian/pool/main/s/surfraw/${PN}_${PV}.tar.gz"
 Lines 17-24   IUSE="" Link Here 
src_unpack() {
src_unpack() {
	unpack ${A}; cd ${S}
	unpack ${A}; cd ${S}
	sed -i 's,/lib/,/share/,g' surfraw-bash-completion surfraw.1.in elvi.1sr.in
	epatch ${FILESDIR}/${PN}-2.1.5-gentoo_pkg_tools.patch
	epatch ${FILESDIR}/${PN}-gentoo_pkg_tools.patch
}
}
src_compile() {
src_compile() {
 Lines 59-62   pkg_postinst() { Link Here 
		ewarn "using the 'sr' wrapper script as described above.  If you wish to return to"
		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"
		ewarn "the old behaviour you can add /usr/share/surfraw to your \$PATH"
	fi
	fi
	# This file was always autogenerated, and is no longer needed.
	if [ -f ${ROOT}/etc/surfraw_elvi.list ]; then
		rm -f ${ROOT}/etc/surfraw_elvi.list
	fi
}
}