1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 USE_RUBY="ruby24 ruby25 ruby26"
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 eapply "${FILESDIR}/${P}-ruby26-reopen.patch"
30 # Remove bundler support
32 sed -i -e "/[Bb]undler/d" Rakefile || die
33 sed -i -e "/[Cc]overalls/d" spec/spec_helper.rb || die
34 sed -i -e 's/git ls-files/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
38 sed -i -e "s:'ruby':'"${RUBY}"':" spec/childprocess_spec.rb || die
42 RUBYLIB=lib RSPEC_VERSION=3 ruby-ng_rspec