diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-17 07:43:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-17 07:43:56 +0100 |
commit | b978efa000250668b2befa4e2cc96e0afa137611 (patch) | |
tree | 0c561efed9b15c17a9d3ef926443f35c58dfb48c /dev-ruby/rcairo | |
parent | fa5e8e92d94ea9de5d49a1f5ad19abf7272503d0 (diff) |
gentoo auto-resync : 17:06:2023 - 07:43:56
Diffstat (limited to 'dev-ruby/rcairo')
-rw-r--r-- | dev-ruby/rcairo/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rcairo/rcairo-1.17.12.ebuild | 75 |
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-ruby/rcairo/Manifest b/dev-ruby/rcairo/Manifest index 85e907bcb355..b1bcb2432a0d 100644 --- a/dev-ruby/rcairo/Manifest +++ b/dev-ruby/rcairo/Manifest @@ -1,3 +1,5 @@ +DIST cairo-1.17.12.gem 199168 BLAKE2B 3183fc448cf15d0437f1b846670dc7494479bf81ba84a2ae475bb5a0683f1012d0e44c95b3311cea5d0ec9cdd75faa7159d7d0649dbe0813166a8d6a16ddda74 SHA512 6bad8c0f15e8617266a85f0ba0bf41db1b508bdb174aa8dbfad8a560a1510cec852502cf39e93b0317c046035bfd97552b92167debb7de4d887c319648b10b56 DIST cairo-1.17.8.gem 198656 BLAKE2B c999f862753d17c186f766f82ede6c7fb3c773018c314825762b68025bf806e6a466b8895ddfa3046f7ac3f3af501d6feaebcb8241779de9c3a0d153589d0993 SHA512 a2b756dc1cf1abb98e4b60b9b56f5f610058bd840b67c991d6bfb3da2523b0f77a5854147f9d14ca461d573e51fbe3ba35c83659af5c031086710970fac6665a +EBUILD rcairo-1.17.12.ebuild 1779 BLAKE2B 14dd4d085e2a40e04003f1912566c39d23d111746ad09d61fab2972bfbc78939b6dc993be127efc1f5f4b81b83c11d4d0a4b497c34c2e5aaf8b15551c932a418 SHA512 f8b47cf32199bc4e44a816a5b4edce9c9ff2bd0fa3c329acc557082c5ca9a3805a1ea03625d57600902a257a318914907d7fa6c028c297d95f6d8a777bb1db0b EBUILD rcairo-1.17.8.ebuild 1785 BLAKE2B 77683c1d98d8d0985dffa5fdb5430687ff8b5bd721e57b106c2761723ac95841e404b6718aab33f0c18754ff062e6df3d80410c3224715c64ad91e730caf82e9 SHA512 acccc64d18defd7ae6978e11738c59548f36aad1ee3ce4f71713bf72eb05e1e23b88c8bc02a14fd8fae4210ebf32da704f8975200d4a97f986621dcde258b286 MISC metadata.xml 323 BLAKE2B d1322d7bd494ec82a2849f35ec35cb30cd7cf145bbf2ea5a3042ca2da80ea45d4a3eb7870dc19e2d6ccbbe47ebd8c373b4b4237fb21a66114c6d6bba7c20ae8a SHA512 20682bc8ee4d20c7ff908efb1816c9e1dc08b31469121beda675dd6098f5082ad5f338f54ac01f1cce3875b979e0348cd99617c7fa237f0ffbeaecb8d5642856 diff --git a/dev-ruby/rcairo/rcairo-1.17.12.ebuild b/dev-ruby/rcairo/rcairo-1.17.12.ebuild new file mode 100644 index 000000000000..1ce5a045a312 --- /dev/null +++ b/dev-ruby/rcairo/rcairo-1.17.12.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="ruby30 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 +} |