/[gentoo-x86]/dev-ruby/rspec-rails/rspec-rails-2.99.0.ebuild
Gentoo

Contents of /dev-ruby/rspec-rails/rspec-rails-2.99.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 24 07:21:44 2014 UTC (3 years, 5 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Add ruby21.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-rails/rspec-rails-2.99.0.ebuild,v 1.1 2014/06/09 07:33:17 graaff Exp $
4
5 EAPI=5
6
7 USE_RUBY="ruby19 ruby20 ruby21"
8
9 RUBY_FAKEGEM_RECIPE_TEST="rspec"
10
11 RUBY_FAKEGEM_TASK_DOC=""
12 RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
13
14 inherit ruby-fakegem versionator
15
16 DESCRIPTION="RSpec's official Ruby on Rails plugin"
17 HOMEPAGE="http://rspec.info/"
18 SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
19
20 LICENSE="MIT"
21 SLOT="2"
22 KEYWORDS="~amd64"
23 IUSE=""
24
25 SUBVERSION="$(get_version_component_range 1-2)"
26
27 ruby_add_rdepend ">=dev-ruby/activesupport-3.0
28 >=dev-ruby/activemodel-3.0
29 >=dev-ruby/actionpack-3.0
30 >=dev-ruby/railties-3.0
31 =dev-ruby/rspec-${SUBVERSION}*"
32
33 # Depend on the package being already installed for tests, because
34 # requiring ammeter will load it, and we need a consistent set of rspec
35 # and rspec-rails for that to work.
36 ruby_add_bdepend "test? ( =dev-ruby/mocha-0.10* >=dev-ruby/capybara-2.0.0 >=dev-ruby/ammeter-0.2.5 ~dev-ruby/rspec-rails-${PV} )"
37
38 all_ruby_prepare() {
39 # Remove .rspec options to avoid dependency on newer rspec when
40 # bootstrapping.
41 rm .rspec || die
42
43 # Remove specs that no longer work with Rails 4.1 due to changed naming.
44 rm spec/generators/rspec/install/install_generator_spec.rb || die
45 }

  ViewVC Help
Powered by ViewVC 1.1.20