summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-04-07 20:47:12 +0200
committerHans de Graaff <graaff@gentoo.org>2020-04-07 20:53:36 +0200
commit3377460ae43c3a966e46fd51540fa18da654306d (patch)
tree8140c7ae4b6c2e80ac08b9af9ae8529c1021ff31 /dev-ruby/tins
parentdev-ruby/tins: add 1.24.1 (diff)
downloadgentoo-3377460ae43c3a966e46fd51540fa18da654306d.tar.gz
gentoo-3377460ae43c3a966e46fd51540fa18da654306d.tar.bz2
gentoo-3377460ae43c3a966e46fd51540fa18da654306d.zip
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 <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/tins')
-rw-r--r--dev-ruby/tins/tins-1.24.1.ebuild8
1 files changed, 8 insertions, 0 deletions
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
}