summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-21 14:13:21 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-12-21 14:13:21 +0000
commitca31277a01101738dadd988765203d8ce152bbc4 (patch)
tree520b01c908b1333d279a3aee682bc5314f72b528 /dev-ruby/deprecated
parentFix building with -Wl,--as-needed wrt #294358 by Kacper Kowalik. (diff)
downloadgentoo-2-ca31277a01101738dadd988765203d8ce152bbc4.tar.gz
gentoo-2-ca31277a01101738dadd988765203d8ce152bbc4.tar.bz2
gentoo-2-ca31277a01101738dadd988765203d8ce152bbc4.zip
Port to fakegem to fix the test-unit dependency. This time tests are actually executed.
(Portage version: 2.2_rc60/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/deprecated')
-rw-r--r--dev-ruby/deprecated/ChangeLog9
-rw-r--r--dev-ruby/deprecated/deprecated-2.0.1-r1.ebuild (renamed from dev-ruby/deprecated/deprecated-2.0.1.ebuild)28
2 files changed, 19 insertions, 18 deletions
diff --git a/dev-ruby/deprecated/ChangeLog b/dev-ruby/deprecated/ChangeLog
index cb4ce8716241..fa3f1fa3f84e 100644
--- a/dev-ruby/deprecated/ChangeLog
+++ b/dev-ruby/deprecated/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/deprecated
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/deprecated/ChangeLog,v 1.6 2009/10/31 21:44:11 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/deprecated/ChangeLog,v 1.7 2009/12/21 14:13:21 flameeyes Exp $
+
+*deprecated-2.0.1-r1 (21 Dec 2009)
+
+ 21 Dec 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ -deprecated-2.0.1.ebuild, +deprecated-2.0.1-r1.ebuild:
+ Port to fakegem to fix the test-unit dependency. This time tests are
+ actually executed.
31 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> deprecated-2.0.1.ebuild:
Keywording for ppc, bug 283229
diff --git a/dev-ruby/deprecated/deprecated-2.0.1.ebuild b/dev-ruby/deprecated/deprecated-2.0.1-r1.ebuild
index 2d05f396bd03..ad3186815182 100644
--- a/dev-ruby/deprecated/deprecated-2.0.1.ebuild
+++ b/dev-ruby/deprecated/deprecated-2.0.1-r1.ebuild
@@ -1,10 +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/deprecated/deprecated-2.0.1.ebuild,v 1.6 2009/10/31 21:44:11 volkmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/deprecated/deprecated-2.0.1-r1.ebuild,v 1.1 2009/12/21 14:13:21 flameeyes Exp $
EAPI="2"
-inherit ruby
-USE_RUBY="ruby18 ruby19"
+
+USE_RUBY="ruby18 ruby19 jruby"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST=""
+
+inherit ruby-fakegem
DESCRIPTION="A Ruby library for handling deprecated code"
HOMEPAGE="http://rubyforge.org/projects/deprecated"
@@ -15,19 +20,8 @@ SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="test"
-DEPEND="test? ( dev-ruby/test-unit )
- ${RDEPEND}"
-RDEPEND="dev-lang/ruby"
-
-src_test() {
- for rb in $USE_RUBY; do
- [ -n "$(type -p ${rb})" ] || continue
- ebegin "Testing for ${rb}"
- ${rb} setup.rb test || die "test failed"
- eend $?
- done
-}
+ruby_add_bdepend test virtual/ruby-test-unit
-src_install() {
- ruby setup.rb install --prefix="${D}" || die "setup.rb install failed"
+each_ruby_test() {
+ ${RUBY} -Ilib test/deprecated.rb || die "test failed"
}