summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-12-18 08:04:05 +0100
committerHans de Graaff <graaff@gentoo.org>2023-12-18 08:04:20 +0100
commitf37c3c3497d1694bbd7a15085ef673770ebb13fe (patch)
tree037013f156955aae73eb5cb12c025b97b6e64e3b /dev-ruby/rcairo
parentdev-ruby/tty-screen: add 0.8.2 (diff)
downloadgentoo-f37c3c3497d1694bbd7a15085ef673770ebb13fe.tar.gz
gentoo-f37c3c3497d1694bbd7a15085ef673770ebb13fe.tar.bz2
gentoo-f37c3c3497d1694bbd7a15085ef673770ebb13fe.zip
dev-ruby/rcairo: add 1.17.13
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rcairo')
-rw-r--r--dev-ruby/rcairo/Manifest1
-rw-r--r--dev-ruby/rcairo/rcairo-1.17.13.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/dev-ruby/rcairo/Manifest b/dev-ruby/rcairo/Manifest
index 0a811b87fda9..b60a56ba94ba 100644
--- a/dev-ruby/rcairo/Manifest
+++ b/dev-ruby/rcairo/Manifest
@@ -1,2 +1,3 @@
DIST cairo-1.17.12.gem 199168 BLAKE2B 3183fc448cf15d0437f1b846670dc7494479bf81ba84a2ae475bb5a0683f1012d0e44c95b3311cea5d0ec9cdd75faa7159d7d0649dbe0813166a8d6a16ddda74 SHA512 6bad8c0f15e8617266a85f0ba0bf41db1b508bdb174aa8dbfad8a560a1510cec852502cf39e93b0317c046035bfd97552b92167debb7de4d887c319648b10b56
+DIST cairo-1.17.13.gem 199168 BLAKE2B 07472d8c3cb71ee6351b0d3fc3a8b22eef586f44677d38dcd2fa848afecca20a1d8c66397eac70ced9c24ccee60a83721fc7cc3a6cf7c1c1beae69935fde5a9b SHA512 82fb621f97b6eb292565fd0f90f5e686c2cd4cd8aa61fa0ab6e25aac665aa9f7e780481a6571fd443be8c53070f29a2dfea5a54949350fe783b12aeb6aba3769
DIST cairo-1.17.8.gem 198656 BLAKE2B c999f862753d17c186f766f82ede6c7fb3c773018c314825762b68025bf806e6a466b8895ddfa3046f7ac3f3af501d6feaebcb8241779de9c3a0d153589d0993 SHA512 a2b756dc1cf1abb98e4b60b9b56f5f610058bd840b67c991d6bfb3da2523b0f77a5854147f9d14ca461d573e51fbe3ba35c83659af5c031086710970fac6665a
diff --git a/dev-ruby/rcairo/rcairo-1.17.13.ebuild b/dev-ruby/rcairo/rcairo-1.17.13.ebuild
new file mode 100644
index 000000000000..ff39b20efaa2
--- /dev/null
+++ b/dev-ruby/rcairo/rcairo-1.17.13.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_NAME="cairo"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_DOCDIR="doc"
+
+RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
+
+RUBY_FAKEGEM_EXTENSIONS=(ext/cairo/extconf.rb)
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby bindings for cairo"
+HOMEPAGE="https://cairographics.org/rcairo/"
+
+IUSE=""
+
+SLOT="0"
+LICENSE="|| ( Ruby-BSD GPL-2 )"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+
+RDEPEND="${RDEPEND}
+ >=x11-libs/cairo-1.2.0[svg(+)]"
+DEPEND="${DEPEND}
+ >=x11-libs/cairo-1.2.0[svg(+)]"
+
+ruby_add_rdepend "dev-ruby/red-colors"
+
+ruby_add_bdepend "
+ >=dev-ruby/pkg-config-1.2.2
+ dev-ruby/ruby-glib2
+ test? ( >=dev-ruby/test-unit-2.1.0-r1:2 dev-ruby/ruby-poppler )"
+
+all_ruby_prepare() {
+ # Avoid unneeded dependency
+ sed -e '/native-package-installer/ s:^:#:' \
+ -e '/def required_pkg_config_package/areturn true' \
+ -e '/checking_for/,/^end/ s:^:#:' \
+ -i 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
+
+ # Bug 790131
+ sed -i -e '/^install-headers:/s!$! $(TIMESTAMP_DIR)/.sitearchdir.time!' \
+ ext/cairo/depend || 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/helper \
+ -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
+
+ dodoc -r samples
+}