diff options
author | Sam James <sam@gentoo.org> | 2023-04-03 00:09:38 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-04-03 01:46:27 +0100 |
commit | ca906ed922ef32e0580b1ab1b1c6439e1abc0c64 (patch) | |
tree | 41318ef5c879eb9d0b1c0ce64ecec659805f3b40 /dev-ruby/async-rspec | |
parent | dev-ruby/async-io: enable ruby32 (diff) | |
download | gentoo-ca906ed922ef32e0580b1ab1b1c6439e1abc0c64.tar.gz gentoo-ca906ed922ef32e0580b1ab1b1c6439e1abc0c64.tar.bz2 gentoo-ca906ed922ef32e0580b1ab1b1c6439e1abc0c64.zip |
dev-ruby/async-rspec: enable ruby32
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-ruby/async-rspec')
-rw-r--r-- | dev-ruby/async-rspec/async-rspec-1.16.1-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/async-rspec/async-rspec-1.16.1-r1.ebuild b/dev-ruby/async-rspec/async-rspec-1.16.1-r1.ebuild new file mode 100644 index 000000000000..08d625635a1d --- /dev/null +++ b/dev-ruby/async-rspec/async-rspec-1.16.1-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Helpers for writing specs against the async gem" +HOMEPAGE="https://github.com/socketry/async-rspec" +SRC_URI="https://github.com/socketry/async-rspec/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend "dev-ruby/rspec:3 + dev-ruby/rspec-files:1 + dev-ruby/rspec-memory:1 +" + +ruby_add_bdepend "test? ( + dev-ruby/async + dev-ruby/async-io +)" + +all_ruby_prepare() { + sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die + + # Avoid dependency on unpackaged covered + sed -i -e '/covered/ s:^:#:' spec/spec_helper.rb || die +} |