summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-01-03 16:46:46 +0000
committerHans de Graaff <graaff@gentoo.org>2010-01-03 16:46:46 +0000
commit870585a102513e9f9bd133d715f458a02944b503 (patch)
treecd548866a3d7c0035bd20859184f9bbdd5398378 /dev-ruby/rake
parentRemove vulnerable app-antivirus/bitdefender-console from deps wrt #253822. (diff)
downloadgentoo-2-870585a102513e9f9bd133d715f458a02944b503.tar.gz
gentoo-2-870585a102513e9f9bd133d715f458a02944b503.tar.bz2
gentoo-2-870585a102513e9f9bd133d715f458a02944b503.zip
Change bash-completion file to follow same pattern as other bash-completion files, should fix #298281.
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rake')
-rw-r--r--dev-ruby/rake/ChangeLog11
-rw-r--r--dev-ruby/rake/files/rake.bash-completion5
-rw-r--r--dev-ruby/rake/rake-0.8.7-r3.ebuild49
3 files changed, 61 insertions, 4 deletions
diff --git a/dev-ruby/rake/ChangeLog b/dev-ruby/rake/ChangeLog
index af1c16007d0a..a3daae714737 100644
--- a/dev-ruby/rake/ChangeLog
+++ b/dev-ruby/rake/ChangeLog
@@ -1,6 +1,13 @@
# 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.87 2009/12/17 14:15:23 flameeyes Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.88 2010/01/03 16:46:46 graaff Exp $
+
+*rake-0.8.7-r3 (03 Jan 2010)
+
+ 03 Jan 2010; Hans de Graaff <graaff@gentoo.org> +rake-0.8.7-r3.ebuild,
+ files/rake.bash-completion:
+ Change bash-completion file to follow same pattern as other
+ bash-completion files, should fix #298281.
17 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
rake-0.8.7-r2.ebuild:
diff --git a/dev-ruby/rake/files/rake.bash-completion b/dev-ruby/rake/files/rake.bash-completion
index 32c994069f9c..825f5d175422 100644
--- a/dev-ruby/rake/files/rake.bash-completion
+++ b/dev-ruby/rake/files/rake.bash-completion
@@ -1,3 +1,4 @@
+have rake &&
_rake()
{
local cur prev rakef i
@@ -50,5 +51,5 @@ _rake()
command grep "^$cur" ))
fi
-}
-[ -n "${have:-}" ] && complete -F _rake $filenames rake
+} &&
+complete -F _rake $filenames rake
diff --git a/dev-ruby/rake/rake-0.8.7-r3.ebuild b/dev-ruby/rake/rake-0.8.7-r3.ebuild
new file mode 100644
index 000000000000..768335795023
--- /dev/null
+++ b/dev-ruby/rake/rake-0.8.7-r3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 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-r3.ebuild,v 1.1 2010/01/03 16:46:45 graaff Exp $
+
+EAPI=2
+USE_RUBY="ruby18 ruby19 jruby"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST=""
+
+inherit bash-completion ruby-fakegem
+
+DESCRIPTION="Make-like scripting in Ruby"
+HOMEPAGE="http://rake.rubyforge.org/"
+SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="bash-completion doc"
+
+#ruby_add_bdepend test dev-ruby/flexmock
+
+RESTRICT="test"
+
+all_ruby_compile() {
+ if use doc; then
+ ruby -Ilib bin/rake rdoc || die "doc generation failed"
+ fi
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib bin/rake test || die "tests failed"
+}
+
+all_ruby_install() {
+ ruby_fakegem_binwrapper rake
+
+ if use doc; then
+ pushd html
+ dohtml -r *
+ popd
+ fi
+
+ dodoc CHANGES README TODO || die
+ doman doc/rake.1.gz || die
+
+ dobashcompletion "${FILESDIR}"/rake.bash-completion rake
+}