You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-util/aruba/aruba-0.4.11.ebuild

47 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/aruba/aruba-0.4.11.ebuild,v 1.5 2012/07/11 16:29:10 nativemad Exp $
EAPI=4
USE_RUBY="ruby18 ruby19 ree18"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_TASK_TEST="cucumber"
RUBY_FAKEGEM_EXTRADOC="History.md README.md"
RUBY_FAKEGEM_GEMSPEC="aruba.gemspec"
inherit ruby-fakegem
DESCRIPTION="Cucumber steps for driving out command line applications."
HOMEPAGE="https://github.com/cucumber/aruba"
LICENSE="MIT"
KEYWORDS="~amd64 ~hppa ~x86"
SLOT="0"
IUSE=""
DEPEND="${DEPEND} test? ( sys-devel/bc )"
RDEPEND="${RDEPEND}"
ruby_add_rdepend "
>=dev-ruby/bcat-0.6.1
>=dev-ruby/childprocess-0.2.3
>=dev-ruby/rspec-2.6
>=dev-util/cucumber-1.1.1"
all_ruby_prepare() {
# Remove bundler-related code.
sed -i -e '/[Bb]undler/d' Rakefile || die
rm Gemfile || die
# fix dependency over rspec for bundler to pick this up properly;
# also remove references to git ls-files.
sed -i -e '/rspec/s:2\.7\.0:2.6.0:' \
-e '/git ls-files/d' \
aruba.gemspec || die
# see https://github.com/cucumber/aruba/issues/106
epatch "${FILESDIR}"/${P}+childprocess-0.2.4.patch
}