summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2009-11-20 14:36:45 +0000
committerJeroen Roovers <jer@gentoo.org>2009-11-20 14:36:45 +0000
commite4df380408ba2d7c3f925eff71e8377c653278cf (patch)
treef40d1786cb0ef0aaa8546c3e8d0580b7f4b26c68 /www-client/surfraw/files
parentx86 stable, bug #286423 (diff)
downloadgentoo-2-e4df380408ba2d7c3f925eff71e8377c653278cf.tar.gz
gentoo-2-e4df380408ba2d7c3f925eff71e8377c653278cf.tar.bz2
gentoo-2-e4df380408ba2d7c3f925eff71e8377c653278cf.zip
Version bump thanks to James Rowe (bug #293836).
(Portage version: 2.2_rc50/cvs/Linux i686)
Diffstat (limited to 'www-client/surfraw/files')
-rw-r--r--www-client/surfraw/files/surfraw-2.2.6-gentoo_pkg_tools.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/www-client/surfraw/files/surfraw-2.2.6-gentoo_pkg_tools.patch b/www-client/surfraw/files/surfraw-2.2.6-gentoo_pkg_tools.patch
new file mode 100644
index 000000000000..fbd959af5422
--- /dev/null
+++ b/www-client/surfraw/files/surfraw-2.2.6-gentoo_pkg_tools.patch
@@ -0,0 +1,39 @@
+ Needs a little more thought, or some method which would allow for an upstream
+push without affecting the non-Gentoo users.
+
+diff --git i/surfraw-bash-completion.IN w/surfraw-bash-completion.IN
+index d5d1374..41a232e 100644
+--- i/surfraw-bash-completion.IN
++++ w/surfraw-bash-completion.IN
+@@ -4,6 +4,22 @@
+ # installing the bash-completion package which sets this explicitly.
+ shopt -s extglob
+
++_srpkgname()
++{
++ local pd
++ local dir=$(sed -n -e '/^PORTDIR=/ { s/^[^=]\+="\?\([^"]\+\|\S\+\).*/\1/p ; q }' \
++ /etc/make.{conf,globals})/*
++ local cur="$1"
++
++ COMPREPLY=($(compgen -W "$(
++ for pd in $dir
++ do
++ [ ! -d ${pd} ] && continue
++ builtin cd ${pd}
++ echo *
++ done)" -- ${cur})
++ )
++}
+ _surfraw()
+ { COMPREPLY=()
+ local cur=${COMP_WORDS[COMP_CWORD]}
+@@ -20,7 +36,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) )
++ then _srpkgname ${cur}
+ # "sr debbugs 4<tab>" to check 44bsd-rdist bugs...
+ elif [[ -x /usr/bin/look ]] # in bsdmainutils, "important"
+ then COMPREPLY=( $(/usr/bin/look ${cur:-''}) )