1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby23 ruby24 ruby25"
8 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
10 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
11 RUBY_FAKEGEM_EXTRADOC="README.md"
13 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
17 DESCRIPTION="Solution for controlling external programs running in the background"
18 HOMEPAGE="https://github.com/jarib/childprocess"
22 KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 s390 sparc x86"
25 ruby_add_rdepend ">=dev-ruby/ffi-1.0.11"
28 # Remove bundler support
30 sed -i -e "/[Bb]undler/d" Rakefile || die
31 sed -i -e "/[Cc]overalls/d" spec/spec_helper.rb || die
32 sed -i -e 's/git ls-files/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
36 sed -i -e "s:'ruby':'"${RUBY}"':" spec/childprocess_spec.rb || die
40 RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec