commit:     4662478559d66ea1da41fbe9ad333730a67da8bf
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 16 05:07:32 2017 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 05:07:32 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46624785

dev-ruby/rcairo: add 1.15.10

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 dev-ruby/rcairo/Manifest              |  1 +
 dev-ruby/rcairo/rcairo-1.15.10.ebuild | 81 +++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/dev-ruby/rcairo/Manifest b/dev-ruby/rcairo/Manifest
index e9c04c8f5f4..478b6e6fcfc 100644
--- a/dev-ruby/rcairo/Manifest
+++ b/dev-ruby/rcairo/Manifest
@@ -1,2 +1,3 @@
 DIST cairo-1.14.3.gem 97792 SHA256 
e3a31ef8097c0b16f2ad71561dca37b4564ae3003838a82805aadeceb69d03b6 SHA512 
aba56403ca813bdcc56c01fed76642e4115a683ed3e3d056675195d2d86fc7dfa44f0077ca47407eeea27789824171251222e6300f3f3c395bc186afb616c772
 WHIRLPOOL 
724d072ad881f54cdcdc631399f99e6bdc563bc78f70c611bdeb3ddc659de78e4ce75c1ec51ac6659542e9ab8ae9c138caa610f97e37a6a1d69440313b69e6a9
+DIST cairo-1.15.10.gem 102912 SHA256 
ec7076193db97bea42515aa737ea4574f2353375965f34dcf99219c94e0116b8 SHA512 
af3cec5bf03022a5049922aaa0366b7330ec0e2003734ee855d1d9632d2027be6e08efd8b67c02bf3d006d11d8a7e28ac3d23ce9591940dc92442c7552858907
 WHIRLPOOL 
84ff6c49552615ff34726911d3523370b46af4be1ae89853350a7feab7797f9e26f90cab616034102b32c000d1c058b3efce4ea05c5d1f77a83e72be54dd0600
 DIST cairo-1.15.9.gem 102400 SHA256 
579727200f724a4da0c259e59bb79289de35ede0668dbe4b08883cc8e3b35325 SHA512 
f934a0ad283145bb4710374ccb1b149c6f6bcdc69978cbcd45de8a9da319a4611249262b6ca4f8bd5ef3955739c54b24bb278e36c421cd0af91ed14a43eb7e98
 WHIRLPOOL 
619fb1d76958876d51e17db68c0931cdb7886b9afaa34589d605e3e598dd3e63c49f5df12b98aa348e4af52c11c7672ed5244db0a914b37391e94d1562c34d3b

diff --git a/dev-ruby/rcairo/rcairo-1.15.10.ebuild 
b/dev-ruby/rcairo/rcairo-1.15.10.ebuild
new file mode 100644
index 00000000000..cbd3a06cc2d
--- /dev/null
+++ b/dev-ruby/rcairo/rcairo-1.15.10.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_NAME="cairo"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_DOCDIR="doc"
+
+RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Ruby bindings for cairo"
+HOMEPAGE="https://cairographics.org/rcairo/";
+
+IUSE=""
+
+SLOT="0"
+LICENSE="|| ( Ruby GPL-2 )"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="${RDEPEND}
+       >=x11-libs/cairo-1.2.0[svg]"
+DEPEND="${DEPEND}
+       >=x11-libs/cairo-1.2.0[svg]"
+
+ruby_add_bdepend "
+       >=dev-ruby/pkg-config-1.1.5
+       dev-ruby/ruby-glib2
+       test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
+
+all_ruby_prepare() {
+       # Avoid development dependency.
+       sed -i -e '/notify/ s:^:#:' test/cairo-test-utils.rb || die
+
+       # Avoid unneeded dependency
+       sed -i -e '/native-package-installer/ s:^:#:' ext/cairo/extconf.rb || 
die
+       sed -i -e '/native-package-installer/,/Gem::Dependency/ d' ../metadata 
|| die
+
+       # Avoid test that requires unpackaged fixture
+       sed -i -e '/sub_test_case..FreeTypeFontFace/,/^  end/ s:^:#:' 
test/test_font_face.rb || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext/cairo extconf.rb || die "extconf failed"
+}
+
+each_ruby_compile() {
+       emake V=1 -Cext/cairo
+
+       # again, try to make it more standard, to install it more easily.
+       cp ext/cairo/cairo$(get_modname) lib/ || die
+}
+
+each_ruby_test() {
+       # don't rely on the Rakefile because it's a mess to load with
+       # their hierarchy, do it manually.
+       ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
+               -e 'gem "test-unit"; require "test/unit"; 
Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
+}
+
+each_ruby_install() {
+       each_fakegem_install
+
+       insinto $(ruby_get_hdrdir)
+       doins ext/cairo/rb_cairo.h
+}
+
+all_ruby_install() {
+       all_fakegem_install
+
+       insinto /usr/share/doc/${PF}/samples
+       doins -r samples/*
+}

Reply via email to