aruba-0.7.4.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. USE_RUBY="ruby20 ruby21 ruby22"
  5. RUBY_FAKEGEM_TASK_DOC=""
  6. RUBY_FAKEGEM_RECIPE_TEST="cucumber"
  7. RUBY_FAKEGEM_EXTRADOC="History.md README.md"
  8. RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
  9. inherit ruby-fakegem
  10. DESCRIPTION="Cucumber steps for driving out command line applications"
  11. HOMEPAGE="https://github.com/cucumber/aruba"
  12. LICENSE="MIT"
  13. KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
  14. SLOT="0"
  15. IUSE=""
  16. DEPEND="${DEPEND} test? ( sys-devel/bc )"
  17. RDEPEND="${RDEPEND}"
  18. ruby_add_rdepend "
  19. >=dev-ruby/childprocess-0.3.6
  20. >=dev-ruby/rspec-expectations-2.7:2
  21. >=dev-util/cucumber-1.1.1"
  22. ruby_add_bdepend "test? ( dev-ruby/rspec:3 >=dev-ruby/bcat-0.6.1 )"
  23. all_ruby_prepare() {
  24. # Remove bundler-related code.
  25. sed -i -e '/[Bb]undler/d' Rakefile spec/spec_helper.rb || die
  26. rm Gemfile || die
  27. sed -i -e '/simplecov/I s:^:#:' \
  28. -e '/Before/,/^end/ s:^:#:' \
  29. spec/spec_helper.rb features/support/env.rb || die
  30. rm -f features/support/simplecov_setup.rb || die
  31. sed -i -e '1i require "time"' spec/spec_helper.rb || die
  32. # Remove references to git ls-files.
  33. sed -i -e '/git ls-files/d' aruba.gemspec || die
  34. }
  35. each_ruby_test() {
  36. RSPEC_VERSION=3 ruby-ng_rspec
  37. ruby-ng_cucumber
  38. }