summaryrefslogtreecommitdiff
path: root/dev-ruby/rcairo
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/rcairo')
-rw-r--r--dev-ruby/rcairo/Manifest7
-rw-r--r--dev-ruby/rcairo/metadata.xml8
-rw-r--r--dev-ruby/rcairo/rcairo-1.14.3.ebuild75
-rw-r--r--dev-ruby/rcairo/rcairo-1.15.9-r1.ebuild81
4 files changed, 171 insertions, 0 deletions
diff --git a/dev-ruby/rcairo/Manifest b/dev-ruby/rcairo/Manifest
new file mode 100644
index 000000000000..247ee71503ee
--- /dev/null
+++ b/dev-ruby/rcairo/Manifest
@@ -0,0 +1,7 @@
+DIST cairo-1.14.3.gem 97792 SHA256 e3a31ef8097c0b16f2ad71561dca37b4564ae3003838a82805aadeceb69d03b6 SHA512 aba56403ca813bdcc56c01fed76642e4115a683ed3e3d056675195d2d86fc7dfa44f0077ca47407eeea27789824171251222e6300f3f3c395bc186afb616c772 WHIRLPOOL 724d072ad881f54cdcdc631399f99e6bdc563bc78f70c611bdeb3ddc659de78e4ce75c1ec51ac6659542e9ab8ae9c138caa610f97e37a6a1d69440313b69e6a9
+DIST cairo-1.15.9.gem 102400 SHA256 579727200f724a4da0c259e59bb79289de35ede0668dbe4b08883cc8e3b35325 SHA512 f934a0ad283145bb4710374ccb1b149c6f6bcdc69978cbcd45de8a9da319a4611249262b6ca4f8bd5ef3955739c54b24bb278e36c421cd0af91ed14a43eb7e98 WHIRLPOOL 619fb1d76958876d51e17db68c0931cdb7886b9afaa34589d605e3e598dd3e63c49f5df12b98aa348e4af52c11c7672ed5244db0a914b37391e94d1562c34d3b
+EBUILD rcairo-1.14.3.ebuild 1587 SHA256 84803409737895d642b598b11f671c5f865842278b4fc024ad44c0e5260f274f SHA512 2ca8fcf937bff16ef641d7f7f84452c63612d3a66b6352ba06beff3d3b32b3708a55c96b10764ac6382ffb2c5fb4a9cfd0be9f0c188f943db70d5968ea516535 WHIRLPOOL ed6f54e58e4d57751fcd0a979131eaebde19b2c83e4fa0781326d6a9a4b4a7fe862415e325d25397e6d6ae68538d0b56d18d168a5a9d0a50a84dda4d1f1f26e4
+EBUILD rcairo-1.15.9-r1.ebuild 1882 SHA256 cd619b0f14687da106b051cc739e7cb6b7f44bb18cf5d6a07d8b2dd0444bfeb1 SHA512 2aaaa43aa0c2fd3021434cfebddb2c6af209433c798fa5c011081195fe7ab545a2ee6e919500ac55eb604442545d3111a57e7cf37fa73bf88e293b2b398b3097 WHIRLPOOL b281f7f3f541575f1b2f309636301b523f821b0f7360f41f2f90e5ab080efc22e41b6deaa8a8439d196c3be5ce57c1eb3e80ab717c75864155a24cf49c366480
+MISC ChangeLog 3432 SHA256 9615f713be20e79889d51abd44b3ea629a58aebc2ff8944d8e51037223d2f5a0 SHA512 0fb863029093adf6e1c42dd6f0a181a7d3a8cccf7a1ac0d16938825f17547176e09c98ccf865361a39d42899600622d20fa14ccbffc4c56cf3c81f06b4cc78f2 WHIRLPOOL 390d72dcbd9f3e3e0f23c49f9d213446b38446d00c10e26f8899f99cd31dc481f5195ba595dae350b73ba9922db939fab9823e0cc5074a6f011f56ce0c33c20e
+MISC ChangeLog-2015 13356 SHA256 47dc515898ad4d2507c3cf9085e01f74039fad7a04eea717383d668ce4cd424a SHA512 303c5686f1a72a2a132ba13ac652252a6757eed33e6a7c2a99ec18d383d6a07abaa47eae9236ead67dcbd4ada5344e3ad9faedff23d4a709c5f69c1da55a43b0 WHIRLPOOL a8eaf18dfb87bc0b0e28094ae007f5ed8945d73dfa759f6d1009fef92e5510e62c710ede255799ac6356f638376026842b1a5baf289f5003c00851529598aaad
+MISC metadata.xml 247 SHA256 1236c1552dc683658bd5bc3c5f880b71d9dfa13025edab4a0f8973f9eaa6bcf5 SHA512 ea4c044637b751a2c28c6ac226121e74ef18196af4b594e60413fec907bbab29c6b0c7735c3f503485df16dcfb36ddb86038394d92e2cd18c8f04626628e9f09 WHIRLPOOL c1aa829db3553d79fe71a8bf79fd6ea24e9fff4e591a4ade3c05e2a97b0df352170fbce76450c0402ec6d8998951c2f3eb3e198ac4638c0e0882208b9f4d8fc8
diff --git a/dev-ruby/rcairo/metadata.xml b/dev-ruby/rcairo/metadata.xml
new file mode 100644
index 000000000000..28ab0c15f206
--- /dev/null
+++ b/dev-ruby/rcairo/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>ruby@gentoo.org</email>
+ <name>Gentoo Ruby Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-ruby/rcairo/rcairo-1.14.3.ebuild b/dev-ruby/rcairo/rcairo-1.14.3.ebuild
new file mode 100644
index 000000000000..e4e06b35ef22
--- /dev/null
+++ b/dev-ruby/rcairo/rcairo-1.14.3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+USE_RUBY="ruby21 ruby22"
+
+RUBY_FAKEGEM_NAME="cairo"
+
+# Documentation depends on files that are not distributed.
+RUBY_FAKEGEM_TASK_DOC=""
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+RUBY_FAKEGEM_DOCDIR="doc"
+
+RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Ruby bindings for cairo"
+HOMEPAGE="http://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
+ 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
+}
+
+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/*
+}
diff --git a/dev-ruby/rcairo/rcairo-1.15.9-r1.ebuild b/dev-ruby/rcairo/rcairo-1.15.9-r1.ebuild
new file mode 100644
index 000000000000..a2ad6e573009
--- /dev/null
+++ b/dev-ruby/rcairo/rcairo-1.15.9-r1.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="ruby21 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/*
+}