/[gentoo-x86]/dev-ruby/rspec-mocks/rspec-mocks-2.10.1.ebuild
Gentoo

Contents of /dev-ruby/rspec-mocks/rspec-mocks-2.10.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Feb 24 08:11:19 2013 UTC (2 months, 3 weeks ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Cleanup.

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rspec-mocks/rspec-mocks-2.10.1.ebuild,v 1.4 2013/01/15 05:43:28 zerochaos Exp $
4
5 EAPI=4
6 USE_RUBY="ruby18 ree18 ruby19 jruby"
7
8 RUBY_FAKEGEM_TASK_TEST="none"
9
10 RUBY_FAKEGEM_TASK_DOC=""
11 RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
12
13 inherit ruby-fakegem
14
15 DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
16 HOMEPAGE="http://rspec.rubyforge.org/"
17 SRC_URI="https://github.com/rspec/${PN}/tarball/v${PV} -> ${P}-git.tgz"
18 RUBY_S="rspec-${PN}-*"
19
20 LICENSE="MIT"
21 SLOT="2"
22 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
23 IUSE=""
24
25 ruby_add_bdepend "test? (
26 >=dev-ruby/rspec-core-2.10.0:2
27 dev-ruby/rspec-expectations:2
28 )"
29
30 # Not clear yet to what extend we need those (now)
31 # >=dev-ruby/cucumber-0.6.2
32 # >=dev-ruby/aruba-0.1.1"
33
34 all_ruby_prepare() {
35 # Don't set up bundler: it doesn't understand our setup.
36 sed -i -e '/[Bb]undler/d' Rakefile || die
37
38 # Remove the Gemfile to avoid running through 'bundle exec'
39 rm Gemfile || die
40 }
41
42 each_ruby_test() {
43 case ${RUBY} in
44 *jruby)
45 # This particular failure is reported to be fixed in jruby 1.6.
46 ewarn "Tests disabled because they crash jruby."
47 ;;
48 *)
49 PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -ryaml -S rspec spec || die
50 ;;
51 esac
52
53 # There are features but they require aruba which we don't have yet.
54 }

  ViewVC Help
Powered by ViewVC 1.1.13