pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/ruby-imlib2 graphics/ruby-imlib2: Fix for gra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9fc094a3d1a
branches:  trunk
changeset: 382460:d9fc094a3d1a
user:      rin <rin%pkgsrc.org@localhost>
date:      Fri Jul 29 06:00:31 2022 +0000

description:
graphics/ruby-imlib2: Fix for graphics/imlib2 update

Switch to `pkg-config imlib2`.

Bump revision.

diffstat:

 graphics/ruby-imlib2/Makefile                 |   8 +++++---
 graphics/ruby-imlib2/distinfo                 |   3 ++-
 graphics/ruby-imlib2/patches/patch-extconf.rb |  24 ++++++++++++++++++++++++
 3 files changed, 31 insertions(+), 4 deletions(-)

diffs (67 lines):

diff -r 0077f4fa766f -r d9fc094a3d1a graphics/ruby-imlib2/Makefile
--- a/graphics/ruby-imlib2/Makefile     Fri Jul 29 05:59:41 2022 +0000
+++ b/graphics/ruby-imlib2/Makefile     Fri Jul 29 06:00:31 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.37 2019/11/02 22:38:04 rillig Exp $
+# $NetBSD: Makefile,v 1.38 2022/07/29 06:00:31 rin Exp $
 
 DISTNAME=      imlib2-ruby-0.5.2
 PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
-PKGREVISION=   20
+PKGREVISION=   21
 CATEGORIES=    graphics
 MASTER_SITES=  http://pablotron.org/files/gems/
 
@@ -11,9 +11,11 @@
 COMMENT=       Imlib2 bindings for Ruby
 LICENSE=       mit
 
+USE_TOOLS+=    pkg-config
+
 GEM_CLEANBUILD=                        Makefile *.o imlib2.${RUBY_DLEXT} mkmf.log .*.time
 OVERRIDE_GEMSPEC=              :name=imlib2-ruby
-BUILDLINK_API_DEPENDS.imlib2+= imlib2>=1.2.0nb2
+BUILDLINK_API_DEPENDS.imlib2+= imlib2>=1.9.1
 
 pre-configure:
        ${CHMOD} -R g-w ${WRKSRC}
diff -r 0077f4fa766f -r d9fc094a3d1a graphics/ruby-imlib2/distinfo
--- a/graphics/ruby-imlib2/distinfo     Fri Jul 29 05:59:41 2022 +0000
+++ b/graphics/ruby-imlib2/distinfo     Fri Jul 29 06:00:31 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.10 2021/10/26 10:46:52 nia Exp $
+$NetBSD: distinfo,v 1.11 2022/07/29 06:00:31 rin Exp $
 
 BLAKE2s (imlib2-ruby-0.5.2.gem) = 173168f4189924d746b9098e1cb22af363a1f5763083148e94b9051337c1b82f
 SHA512 (imlib2-ruby-0.5.2.gem) = 9524760581bfd2d97c66a2578ca0972f41955a20040394389d2ebd2172bcc9dd3f834d397195ae8a6f8d57664c501fbf105cee594b4dad22e90359cf9ec20031
 Size (imlib2-ruby-0.5.2.gem) = 119296 bytes
 SHA1 (patch-ab) = 04f72f6b839756c00b65feddc8bbec6ac6703642
+SHA1 (patch-extconf.rb) = 5d07f03669acb9bda546d8a53907fb20a8da08b7
diff -r 0077f4fa766f -r d9fc094a3d1a graphics/ruby-imlib2/patches/patch-extconf.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/ruby-imlib2/patches/patch-extconf.rb     Fri Jul 29 06:00:31 2022 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-extconf.rb,v 1.1 2022/07/29 06:00:31 rin Exp $
+
+Switch to `pkg-config imlib2`.
+
+--- extconf.rb.orig    2022-07-29 03:18:47.822900074 +0900
++++ extconf.rb 2022-07-29 03:20:08.407656008 +0900
+@@ -1,13 +1,13 @@
+ require 'mkmf'
+ 
+-imlib2_config = with_config("imlib2-config", "imlib2-config")
++pkg_config = with_config("pkg-config", "pkg-config")
+ 
+-$CFLAGS << ' -DX_DISPLAY_MISSING ' << `#{imlib2_config} --cflags`.chomp
+-$LDFLAGS << ' ' << `#{imlib2_config} --libs`.chomp
++$CFLAGS << ' -DX_DISPLAY_MISSING ' << `#{pkg_config} imlib2 --cflags`.chomp
++$LDFLAGS << ' ' << `#{pkg_config} imlib2 --libs`.chomp
+ 
+ if have_library("Imlib2", "imlib_create_image")
+   # test for faulty versions of imlib2
+-  ver = `imlib2-config --version`.chomp.split(/\./)
++  ver = `pkg-config imlib2 --modversion`.chomp.split(/\./)
+   major, minor, revision = ver[0].to_i, ver[1].to_i, ver[2].to_i
+   if ((major > 1)               ||
+       (major == 1 && minor > 0) ||



Home | Main Index | Thread Index | Old Index