summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-12-28 07:25:32 +0000
committerHans de Graaff <graaff@gentoo.org>2013-12-28 07:25:32 +0000
commitc25f21d6c2e95ec7eed014f7888b7761197b75f0 (patch)
tree54d8e10ce6e8b2aa3611d2a82d6ca55ab27b2570 /dev-ruby/climate_control/climate_control-0.0.3.ebuild
parentFix tests with newer minitest. Add ruby20. (diff)
downloadgentoo-2-c25f21d6c2e95ec7eed014f7888b7761197b75f0.tar.gz
gentoo-2-c25f21d6c2e95ec7eed014f7888b7761197b75f0.tar.bz2
gentoo-2-c25f21d6c2e95ec7eed014f7888b7761197b75f0.zip
Add ruby20. Fix dependency issues.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/climate_control/climate_control-0.0.3.ebuild')
-rw-r--r--dev-ruby/climate_control/climate_control-0.0.3.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/dev-ruby/climate_control/climate_control-0.0.3.ebuild b/dev-ruby/climate_control/climate_control-0.0.3.ebuild
index 5effddb19d9b..e4bdda941616 100644
--- a/dev-ruby/climate_control/climate_control-0.0.3.ebuild
+++ b/dev-ruby/climate_control/climate_control-0.0.3.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/climate_control/climate_control-0.0.3.ebuild,v 1.2 2013/03/03 20:14:58 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/climate_control/climate_control-0.0.3.ebuild,v 1.3 2013/12/28 07:25:32 graaff Exp $
EAPI=5
# uses 1.9 syntax
-USE_RUBY="ruby19"
+USE_RUBY="ruby19 ruby20"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="NEWS README.md"
@@ -24,3 +24,9 @@ KEYWORDS="~amd64"
IUSE=""
ruby_add_rdepend ">=dev-ruby/activesupport-3.0"
+
+all_ruby_prepare() {
+ # Avoid dependencies on simplecov and git.
+ sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die
+ sed -i -e 's/git ls-files/echo ""/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}