pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils/ruby-libnotify Make this package build on Rub...
details: https://anonhg.NetBSD.org/pkgsrc/rev/bd3da50f4c7a
branches: trunk
changeset: 652941:bd3da50f4c7a
user: taca <taca%pkgsrc.org@localhost>
date: Wed Jun 10 14:47:59 2015 +0000
description:
Make this package build on Ruby 2.2.
diffstat:
sysutils/ruby-libnotify/Makefile | 4 +--
sysutils/ruby-libnotify/distinfo | 5 ++-
sysutils/ruby-libnotify/patches/patch-ext_extconf.rb | 11 ++++++++-
sysutils/ruby-libnotify/patches/patch-setup.rb | 24 ++++++++++++++++++++
4 files changed, 38 insertions(+), 6 deletions(-)
diffs (82 lines):
diff -r c4c87824fc1a -r bd3da50f4c7a sysutils/ruby-libnotify/Makefile
--- a/sysutils/ruby-libnotify/Makefile Wed Jun 10 14:45:38 2015 +0000
+++ b/sysutils/ruby-libnotify/Makefile Wed Jun 10 14:47:59 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2015/04/25 14:24:54 tnn Exp $
+# $NetBSD: Makefile,v 1.10 2015/06/10 14:47:59 taca Exp $
DISTNAME= ruby-libnotify-0.5.1
PKGNAME= ${DISTNAME:S/ruby/${RUBY_PKGPREFIX}/}
@@ -13,8 +13,6 @@
USE_RUBY_SETUP= yes
-RUBY_VERSION_SUPPORTED= 193 200 21
-
.include "../../x11/ruby-gnome2-gtk/buildlink3.mk"
.include "../../sysutils/libnotify/buildlink3.mk"
.include "../../devel/ruby-pkg-config/tool.mk"
diff -r c4c87824fc1a -r bd3da50f4c7a sysutils/ruby-libnotify/distinfo
--- a/sysutils/ruby-libnotify/distinfo Wed Jun 10 14:45:38 2015 +0000
+++ b/sysutils/ruby-libnotify/distinfo Wed Jun 10 14:47:59 2015 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2013/09/18 08:33:32 obache Exp $
+$NetBSD: distinfo,v 1.4 2015/06/10 14:47:59 taca Exp $
SHA1 (ruby-libnotify-0.5.1.tar.gz) = 49c03da48c80ce962d164338e030114bd99300ef
RMD160 (ruby-libnotify-0.5.1.tar.gz) = 97285d65f55938b9902841e76e8da69108313a06
Size (ruby-libnotify-0.5.1.tar.gz) = 25822 bytes
-SHA1 (patch-ext_extconf.rb) = 62094980312bac7ac3f9c8bff423056aefaea3ec
+SHA1 (patch-ext_extconf.rb) = 0f88e4c467f70d7e70c787b3f9bffdcc7f573a0b
SHA1 (patch-ext_rnotify.c) = f737a74df9eb3556cff6e4f64cbf25413073e30f
+SHA1 (patch-setup.rb) = 1d00946ff78c337e7f8bfb7a4825773f6014f1ac
diff -r c4c87824fc1a -r bd3da50f4c7a sysutils/ruby-libnotify/patches/patch-ext_extconf.rb
--- a/sysutils/ruby-libnotify/patches/patch-ext_extconf.rb Wed Jun 10 14:45:38 2015 +0000
+++ b/sysutils/ruby-libnotify/patches/patch-ext_extconf.rb Wed Jun 10 14:47:59 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ext_extconf.rb,v 1.1 2013/09/18 08:33:32 obache Exp $
+$NetBSD: patch-ext_extconf.rb,v 1.2 2015/06/10 14:47:59 taca Exp $
* not using gems in pkgsrc.
@@ -13,3 +13,12 @@
begin
require 'mkmf-gnome2'
require 'gtk2'
+@@ -43,7 +41,7 @@ end
+ if check_required_version("libnotify", 0, 7, 0) == true
+ if have_library("notify", "notify_init") == true
+ $CFLAGS << ' -DDEBUG' if type == 0
+- $CFLAGS << ' -Wall' << " -I#{Config::CONFIG["sitearchdir"]} " << PKGConfig.cflags("libnotify")
++ $CFLAGS << ' -Wall' << " -I#{RbConfig::CONFIG["sitearchdir"]} " << PKGConfig.cflags("libnotify")
+ $LIBS << ' ' << PKGConfig.libs("libnotify")
+ check_set_app_name_libnotify
+ check_set_notification_name_libnotify
diff -r c4c87824fc1a -r bd3da50f4c7a sysutils/ruby-libnotify/patches/patch-setup.rb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/ruby-libnotify/patches/patch-setup.rb Wed Jun 10 14:47:59 2015 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-setup.rb,v 1.1 2015/06/10 14:47:59 taca Exp $
+
+Do not use obsolete Config.
+
+--- setup.rb.orig 2012-11-24 17:54:50.000000000 +0000
++++ setup.rb
+@@ -102,7 +102,7 @@ end
+
+ class ConfigTable
+
+- c = ::Config::CONFIG
++ c = ::RbConfig::CONFIG
+
+ rubypath = c['bindir'] + '/' + c['ruby_install_name']
+
+@@ -1219,7 +1219,7 @@ class Installer
+ raise InstallError, "no ruby extention exists: 'ruby #{$0} setup' first"
+ end
+
+- DLEXT = /\.#{ ::Config::CONFIG['DLEXT'] }\z/
++ DLEXT = /\.#{ ::RbConfig::CONFIG['DLEXT'] }\z/
+
+ def _ruby_extentions(dir)
+ Dir.open(dir) {|d|
Home |
Main Index |
Thread Index |
Old Index