Skip to content

Commit

Permalink
dev-ruby/tins: fix gemspecs
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
graaff committed Apr 7, 2020
1 parent 320c84f commit 3377460
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-ruby/tins/tins-1.24.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3377460

Please sign in to comment.