summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2009-08-22 20:24:08 +0000
committerHans de Graaff <graaff@gentoo.org>2009-08-22 20:24:08 +0000
commit72b020f91fa29cdc0240a353b4ec738d1fa43814 (patch)
tree661fd382695911ba2eb1338e983cf32dddca3104 /dev-ruby/rake
parentfixed rdepends for 231870. (diff)
downloadgentoo-2-72b020f91fa29cdc0240a353b4ec738d1fa43814.tar.gz
gentoo-2-72b020f91fa29cdc0240a353b4ec738d1fa43814.tar.bz2
gentoo-2-72b020f91fa29cdc0240a353b4ec738d1fa43814.zip
Add Debian's bash-completion module.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rake')
-rw-r--r--dev-ruby/rake/ChangeLog8
-rw-r--r--dev-ruby/rake/files/rake.bash-completion54
-rw-r--r--dev-ruby/rake/rake-0.8.7-r1.ebuild20
3 files changed, 81 insertions, 1 deletions
diff --git a/dev-ruby/rake/ChangeLog b/dev-ruby/rake/ChangeLog
index e702e3da1585..3baa281ab274 100644
--- a/dev-ruby/rake/ChangeLog
+++ b/dev-ruby/rake/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/rake
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.79 2009/08/14 20:59:58 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.80 2009/08/22 20:24:08 graaff Exp $
+
+*rake-0.8.7-r1 (22 Aug 2009)
+
+ 22 Aug 2009; Hans de Graaff <graaff@gentoo.org> +rake-0.8.7-r1.ebuild,
+ +files/rake.bash-completion:
+ Add Debian's bash-completion as reported by Gian in #270044.
14 Aug 2009; Markus Meier <maekke@gentoo.org> rake-0.8.7.ebuild:
amd64/x86 stable, bug #280851
diff --git a/dev-ruby/rake/files/rake.bash-completion b/dev-ruby/rake/files/rake.bash-completion
new file mode 100644
index 000000000000..32c994069f9c
--- /dev/null
+++ b/dev-ruby/rake/files/rake.bash-completion
@@ -0,0 +1,54 @@
+_rake()
+{
+ local cur prev rakef i
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+ rakef="Rakefile"
+
+ if [[ "$prev" == "-f" ]]; then
+ _filedir
+ return 0
+ fi
+
+ if [[ "$cur" == *=* ]]; then
+ prev=${cur/=*/}
+ cur=${cur/*=/}
+ if [[ "$prev" == "--rakefile=" ]]; then
+ _filedir -o nospace
+ return 0
+ fi
+ fi
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-n -H -I -N -P -q -f\
+ -r -s -T -t -h -v -V\
+ --dry-run --help '--libdir=' --nosearch --prereqs --quiet\
+ '--rakefile=' '--require=' --silent --tasks --trace --usage\
+ --verbose --version'\
+ -- $cur ))
+ else
+
+ for (( i=0; i < ${#COMP_WORDS[@]}; i++)); do
+ case "${COMP_WORDS[i]}" in
+ -f)
+ eval rakef=${COMP_WORDS[i+1]}
+ break
+ ;;
+ --rakefile=*|--rakefile\=*)
+ eval rakef=${COMP_WORDS[i]/*=/}
+ break
+ ;;
+ esac
+ done
+
+ [ ! -f $rakef ] && return 0
+
+ COMPREPLY=( $( rake -s -f "$rakef" -T | \
+ awk -F ' ' '/^rake / { print $2 }' | \
+ command grep "^$cur" ))
+
+ fi
+}
+[ -n "${have:-}" ] && complete -F _rake $filenames rake
diff --git a/dev-ruby/rake/rake-0.8.7-r1.ebuild b/dev-ruby/rake/rake-0.8.7-r1.ebuild
new file mode 100644
index 000000000000..19358d1ae361
--- /dev/null
+++ b/dev-ruby/rake/rake-0.8.7-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/rake-0.8.7-r1.ebuild,v 1.1 2009/08/22 20:24:08 graaff Exp $
+
+inherit bash-completion gems
+
+USE_RUBY="ruby18 ruby19"
+
+DESCRIPTION="Make-like scripting in Ruby"
+HOMEPAGE="http://rake.rubyforge.org/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="bash-completion"
+
+src_install() {
+ gems_src_install
+ dobashcompletion "${FILESDIR}"/rake.bash-completion rake
+}