1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 USE_RUBY="ruby24 ruby25 ruby26"
7 RUBY_FAKEGEM_NAME=rsvg2
11 RUBY_S=ruby-gnome2-all-${PV}/rsvg2
13 DESCRIPTION="Ruby bindings for librsvg"
14 KEYWORDS="~amd64 ~ppc ~x86"
16 RDEPEND+=" >=gnome-base/librsvg-2.16.1"
17 DEPEND+=" >=gnome-base/librsvg-2.16.1"
20 ~dev-ruby/ruby-cairo-gobject-${PV}
21 ~dev-ruby/ruby-gdkpixbuf2-${PV}
25 # Avoid unneeded dependency on test-unit-notify.
26 sed -i -e '/notify/ s:^:#:' test/rsvg2-test-utils.rb || die
28 # Avoid compilation of dependencies during test.
29 sed -i -e '/and have_make/,/^ end/ s:^:#:' test/run-test.rb || die
31 # Avoid test that fails and may be version-specific
32 sed -i -e '/test_unlimited/aomit "version specific?"' test/test-handle.rb || die
35 each_ruby_configure() {
48 ${RUBY} test/run-test.rb || die