summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-12-26 00:20:23 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-12-26 00:20:23 +0100
commit979b9ad931bd30e3e2baac08572a192090258f56 (patch)
tree06ab1a17c1070eda76b38e279177f805cda72f53
parentsys-devel/gcc: version bump to 6.3 (diff)
downloadgentoo-979b9ad931bd30e3e2baac08572a192090258f56.tar.gz
gentoo-979b9ad931bd30e3e2baac08572a192090258f56.tar.bz2
gentoo-979b9ad931bd30e3e2baac08572a192090258f56.zip
dev-ruby/rspec-rails: Add ruby23
Package-Manager: portage-2.3.3
-rw-r--r--dev-ruby/rspec-rails/rspec-rails-3.5.2-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/rspec-rails/rspec-rails-3.5.2-r1.ebuild b/dev-ruby/rspec-rails/rspec-rails-3.5.2-r1.ebuild
new file mode 100644
index 000000000000..37b2c1f33a7f
--- /dev/null
+++ b/dev-ruby/rspec-rails/rspec-rails-3.5.2-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
+
+inherit ruby-fakegem versionator
+
+DESCRIPTION="RSpec's official Ruby on Rails plugin"
+HOMEPAGE="http://rspec.info/"
+SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="3"
+KEYWORDS="~amd64"
+IUSE=""
+
+SUBVERSION="$(get_version_component_range 1-2)"
+
+ruby_add_rdepend ">=dev-ruby/activesupport-3.0:*
+ >=dev-ruby/actionpack-3.0:*
+ >=dev-ruby/railties-3.0:*
+ =dev-ruby/rspec-${SUBVERSION}*"
+
+# Depend on the package being already installed for tests, because
+# requiring ammeter will load it, and we need a consistent set of rspec
+# and rspec-rails for that to work.
+ruby_add_bdepend "test? (
+ >=dev-ruby/capybara-2.2.0
+ >=dev-ruby/ammeter-1.1.2
+ ~dev-ruby/rspec-rails-${PV}
+)"
+
+all_ruby_prepare() {
+ # Remove .rspec options to avoid dependency on newer rspec when
+ # bootstrapping.
+ rm -f .rspec || die
+
+ # Avoid bundler-specific specs.
+ rm -f spec/sanity_check_spec.rb || die
+
+ # Avoid broken controller generator specs for now.
+ rm -fr spec/generators/rspec || die
+
+ # Avoid loading rspec/rails explicitly since ammeter/init will also
+ # do this and loading it twice causes an error
+ sed -i -e '/rspec\/rails/ s:^:#:' spec/spec_helper.rb || die
+}