summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-16 17:51:49 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-16 17:51:49 +0000
commit53fa8e7452682583d0813548e3c1872a434bd073 (patch)
tree3bc73039a1a782280b035cbf8383c608b01b6543
parentMarked stable on AMD64 as it addresses bug #295051 (JACK plugin build failure... (diff)
downloadgentoo-2-53fa8e7452682583d0813548e3c1872a434bd073.tar.gz
gentoo-2-53fa8e7452682583d0813548e3c1872a434bd073.tar.bz2
gentoo-2-53fa8e7452682583d0813548e3c1872a434bd073.zip
Fix eclass to avoid looping dependencies: use the local rake for tests and documentation building rather than ruby-fakegem's boilerplate functions.
(Portage version: 2.2_rc59/cvs/Linux x86_64)
-rw-r--r--dev-ruby/rake/ChangeLog7
-rw-r--r--dev-ruby/rake/rake-0.8.7-r2.ebuild14
2 files changed, 17 insertions, 4 deletions
diff --git a/dev-ruby/rake/ChangeLog b/dev-ruby/rake/ChangeLog
index 493e9580ec52..6e34aeab5ec6 100644
--- a/dev-ruby/rake/ChangeLog
+++ b/dev-ruby/rake/ChangeLog
@@ -1,6 +1,11 @@
# 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.85 2009/12/15 06:54:12 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/ChangeLog,v 1.86 2009/12/16 17:51:49 flameeyes Exp $
+
+ 16 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ rake-0.8.7-r2.ebuild:
+ Fix eclass to avoid looping dependencies: use the local rake for tests and
+ documentation building rather than ruby-fakegem's boilerplate functions.
15 Dec 2009; Hans de Graaff <graaff@gentoo.org> rake-0.8.7-r2.ebuild:
Explicitly turn off the fakegem doc and test tasks since this will trigger
diff --git a/dev-ruby/rake/rake-0.8.7-r2.ebuild b/dev-ruby/rake/rake-0.8.7-r2.ebuild
index 3869bcec35f9..e1e259360778 100644
--- a/dev-ruby/rake/rake-0.8.7-r2.ebuild
+++ b/dev-ruby/rake/rake-0.8.7-r2.ebuild
@@ -1,15 +1,15 @@
# 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-r2.ebuild,v 1.2 2009/12/15 06:54:12 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rake/rake-0.8.7-r2.ebuild,v 1.3 2009/12/16 17:51:49 flameeyes Exp $
EAPI=2
USE_RUBY="ruby18 ruby19 jruby"
-inherit bash-completion ruby-fakegem
-
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"
@@ -23,6 +23,14 @@ IUSE="bash-completion"
RESTRICT="test"
+all_ruby_compile() {
+ bin/rake rdoc || die "doc generation failed"
+}
+
+each_ruby_test() {
+ ${RUBY} bin/rake test || die "tests failed"
+}
+
all_ruby_install() {
ruby_fakegem_binwrapper rake