dev-ruby/tins: fix gemspecs
authorHans de Graaff <graaff@gentoo.org>
Tue, 7 Apr 2020 18:47:12 +0000 (20:47 +0200)
committerHans de Graaff <graaff@gentoo.org>
Tue, 7 Apr 2020 18:53:36 +0000 (20:53 +0200)
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 <graaff@gentoo.org>
dev-ruby/tins/tins-1.24.1.ebuild

index 0ae7ba411b980886d4956572f25f5e9ed7d325f2..9f9ef0959bd2bfcafd34f02a45b4fb86884c9717 100644 (file)
@@ -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
 }