| 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-expectations/rspec-expectations-2.11.3.ebuild,v 1.2 2012/10/28 17:20:42 armin76 Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
USE_RUBY="ruby18 ree18 ruby19 jruby" |
| 7 |
|
| 8 |
RUBY_FAKEGEM_RECIPE_TEST="rspec" |
| 9 |
|
| 10 |
RUBY_FAKEGEM_TASK_DOC="" |
| 11 |
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" |
| 12 |
|
| 13 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
| 14 |
|
| 15 |
RUBY_S="rspec-${PN}-*" |
| 16 |
|
| 17 |
inherit ruby-fakegem |
| 18 |
|
| 19 |
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" |
| 20 |
HOMEPAGE="http://rspec.rubyforge.org/" |
| 21 |
SRC_URI="https://github.com/rspec/${PN}/tarball/v${PV} -> ${P}-git.tgz" |
| 22 |
|
| 23 |
LICENSE="MIT" |
| 24 |
SLOT="2" |
| 25 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
| 26 |
IUSE="" |
| 27 |
|
| 28 |
ruby_add_rdepend ">=dev-ruby/diff-lcs-1.1.3" |
| 29 |
|
| 30 |
ruby_add_bdepend "test? ( |
| 31 |
>=dev-ruby/rspec-core-2.11.0:2 |
| 32 |
dev-ruby/rspec-mocks:2 |
| 33 |
)" |
| 34 |
|
| 35 |
all_ruby_prepare() { |
| 36 |
# Don't set up bundler: it doesn't understand our setup. |
| 37 |
sed -i -e '/[Bb]undler/d' Rakefile || die |
| 38 |
|
| 39 |
# Remove the Gemfile to avoid running through 'bundle exec' |
| 40 |
rm Gemfile || die |
| 41 |
|
| 42 |
# fix up the gemspecs |
| 43 |
sed -i \ |
| 44 |
-e '/git ls/d' \ |
| 45 |
-e '/add_development_dependency/d' \ |
| 46 |
"${RUBY_FAKEGEM_GEMSPEC}" || die |
| 47 |
} |