From: Hans de Graaff Date: Tue, 7 Apr 2020 18:47:12 +0000 (+0200) Subject: dev-ruby/tins: fix gemspecs X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3377460ae43c3a966e46fd51540fa18da654306d;p=gentoo.git dev-ruby/tins: fix gemspecs Only include dev-ruby/sync on supported ruby versions. Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Hans de Graaff --- diff --git a/dev-ruby/tins/tins-1.24.1.ebuild b/dev-ruby/tins/tins-1.24.1.ebuild index 0ae7ba411b98..9f9ef0959bd2 100644 --- a/dev-ruby/tins/tins-1.24.1.ebuild +++ b/dev-ruby/tins/tins-1.24.1.ebuild @@ -25,6 +25,14 @@ USE_RUBY="ruby26 ruby27" ruby_add_rdepend "dev-ruby/sync" ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.5.1-r1 )" +each_ruby_prepare() { + case ${RUBY} in + *ruby24|*ruby25) + sed -i -e '/sync/d' ${RUBY_FAKEGEM_GEMSPEC} || die + ;; + esac +} + each_ruby_test() { ruby-ng_testrb-2 -Ilib tests/*_test.rb }