[packages/ruby-rcairo] Up to 1.18.4

arekm arekm at pld-linux.org
Mon Mar 16 20:21:02 CET 2026


commit 1b1b231998ac0971d684b198fa7b11fc03dafa40
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 16 20:20:17 2026 +0100

    Up to 1.18.4

 no-native-packages.patch | 52 +++++++++++++++++++++++++++++++++++++++++++-----
 ruby-rcairo-hdr.patch    |  9 +++++----
 ruby-rcairo.spec         |  5 ++---
 3 files changed, 54 insertions(+), 12 deletions(-)
---
diff --git a/ruby-rcairo.spec b/ruby-rcairo.spec
index 509cd58..f7670c7 100644
--- a/ruby-rcairo.spec
+++ b/ruby-rcairo.spec
@@ -2,12 +2,12 @@
 Summary:	Cairo module for Ruby
 Summary(pl.UTF-8):	Moduł Cairo dla języka Ruby
 Name:		ruby-%{pkgname}
-Version:	1.16.6
+Version:	1.18.4
 Release:	1
 License:	GPL v2+ or custom (see COPYING)
 Group:		Development/Languages
 Source0:	https://www.cairographics.org/releases/rcairo-%{version}.tar.gz
-# Source0-md5:	b3890cc249d5b4cdee100fdb438faf53
+# Source0-md5:	5f13366474e7e0dc6b219da1556d8230
 Patch0:		%{name}-hdr.patch
 Patch1:		no-native-packages.patch
 URL:		https://www.cairographics.org/rcairo/
@@ -15,7 +15,6 @@ BuildRequires:	cairo-devel >= 1.14.0
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.410
 BuildRequires:	ruby-devel >= 1:1.8
-BuildRequires:	ruby-native-package-installer >= 1.0.3
 BuildRequires:	ruby-pkg-config >= 1.2.2
 BuildRequires:	sed >= 4.0
 Requires:	cairo >= 1.14.0
diff --git a/no-native-packages.patch b/no-native-packages.patch
index d6f8fbe..bb04e2e 100644
--- a/no-native-packages.patch
+++ b/no-native-packages.patch
@@ -1,9 +1,28 @@
---- .rcairo-1.16.5/ext/cairo/extconf.rb.orig	2020-02-05 17:45:41.611038949 +0100
-+++ .rcairo-1.16.5/ext/cairo/extconf.rb	2020-02-05 17:47:02.103936215 +0100
-@@ -33,30 +33,7 @@
-   end
- end
+--- rcairo-1.18.4.orig/ext/cairo/extconf.rb	2025-03-12 03:51:04.000000000 +0100
++++ rcairo-1.18.4/ext/cairo/extconf.rb	2026-03-16 17:42:23.342657852 +0100
+@@ -7,7 +7,6 @@
+ require 'fileutils'
  
+ require "pkg-config"
+-require "native-package-installer"
+ 
+ checking_for(checking_message("GCC")) do
+   if macro_defined?("__GNUC__", "")
+@@ -22,64 +21,7 @@
+ module_name = "cairo"
+ major, minor, micro = 1, 2, 0
+ 
+-checking_for(checking_message("Homebrew")) do
+-  platform = NativePackageInstaller::Platform.detect
+-  if platform.is_a?(NativePackageInstaller::Platform::Homebrew)
+-    libffi_prefix = `brew --prefix libffi`.chomp
+-    PKGConfig.add_path("#{libffi_prefix}/lib/pkgconfig")
+-    true
+-  else
+-    false
+-  end
+-end
+-
 -def required_pkg_config_package(package_info, native_package_info=nil)
 -  if package_info.is_a?(Array)
 -    required_package_info = package_info
@@ -19,8 +38,31 @@
 -end
 -
 -unless required_pkg_config_package([package, major, minor, micro],
+-                                   :alpine_linux => "cairo-dev",
+-                                   :alt_linux => [
+-                                     "bzlib-devel",
+-                                     "libXdmcp-devel",
+-                                     "libbrotli-devel",
+-                                     "libcairo-devel",
+-                                     "libexpat-devel",
+-                                     "libffi-devel",
+-                                     "libpixman-devel",
+-                                   ],
 -                                   :arch_linux => "cairo",
+-                                   :conda => [
+-                                     "cairo",
+-                                     "expat",
+-                                     "xorg-kbproto",
+-                                     "xorg-libxau",
+-                                     "xorg-libxext",
+-                                     "xorg-libxrender",
+-                                     "xorg-renderproto",
+-                                     "xorg-xextproto",
+-                                     "xorg-xproto",
+-                                     "zlib",
+-                                   ],
 -                                   :debian => "libcairo2-dev",
+-                                   :gentoo_linux => "x11-libs/cairo",
 -                                   :homebrew => "cairo",
 -                                   :macports => "cairo",
 -                                   :msys2 => "cairo",
diff --git a/ruby-rcairo-hdr.patch b/ruby-rcairo-hdr.patch
index 5b774d8..4eccbae 100644
--- a/ruby-rcairo-hdr.patch
+++ b/ruby-rcairo-hdr.patch
@@ -1,6 +1,7 @@
---- rcairo-1.10.0/ext/cairo/depend~	2008-06-20 13:56:19.000000000 +0200
-+++ rcairo-1.10.0/ext/cairo/depend	2010-07-31 23:16:15.049916358 +0200
-@@ -1,2 +1,2 @@
- install-so:
+--- rcairo-1.18.4.orig/ext/cairo/depend	2026-03-16 17:42:39.613779251 +0100
++++ rcairo-1.18.4/ext/cairo/depend	2026-03-16 17:42:39.646675935 +0100
+@@ -1,3 +1,3 @@
+ install-so: install-headers
+ install-headers:
 -	$(INSTALL_DATA) $(srcdir)/rb_cairo.h $(RUBYARCHDIR)
 +	$(INSTALL_DATA) $(srcdir)/rb_cairo.h $(RUBYHDRDIR)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-rcairo.git/commitdiff/1b1b231998ac0971d684b198fa7b11fc03dafa40



More information about the pld-cvs-commit mailing list