summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-04-24 00:49:30 +0000
committerobache <obache@pkgsrc.org>2008-04-24 00:49:30 +0000
commit523e49d5a47c39811755f765a7c68391a1d7f5d9 (patch)
tree1e8cd022986846ed88abd2dda7ee4c9d84762284 /devel
parent623f927c73106a596f9c6cc31572df067688822a (diff)
downloadpkgsrc-523e49d5a47c39811755f765a7c68391a1d7f5d9.tar.gz
Fixes build problem with glib 2.16 reported in PR 38467.
Patch taken from upstream SVN repository Revision 2848.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-gnome2-glib/distinfo3
-rw-r--r--devel/ruby-gnome2-glib/patches/patch-ad35
2 files changed, 37 insertions, 1 deletions
diff --git a/devel/ruby-gnome2-glib/distinfo b/devel/ruby-gnome2-glib/distinfo
index be8f3aa0c00..6a772427e5a 100644
--- a/devel/ruby-gnome2-glib/distinfo
+++ b/devel/ruby-gnome2-glib/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2007/08/19 03:00:26 taca Exp $
+$NetBSD: distinfo,v 1.2 2008/04/24 00:49:30 obache Exp $
SHA1 (ruby-gnome2-all-0.16.0.tar.gz) = 488f6c1f139060e005f336c9c854c4dc5b3e6b7c
RMD160 (ruby-gnome2-all-0.16.0.tar.gz) = c83c7cdcf633ad5cc213180f641a6c8f18002a9c
@@ -6,3 +6,4 @@ Size (ruby-gnome2-all-0.16.0.tar.gz) = 1208856 bytes
SHA1 (patch-aa) = c2d366bd156936838ec0a8f74ab89474f3373931
SHA1 (patch-ab) = 513dea951b8596dafd4c0c4f58cb7614b6a68dc0
SHA1 (patch-ac) = 28e54cb6be9dbad161379989bc815a2bc84360bb
+SHA1 (patch-ad) = 19d23bf36d61f23e876af0554011cb289c37b68a
diff --git a/devel/ruby-gnome2-glib/patches/patch-ad b/devel/ruby-gnome2-glib/patches/patch-ad
new file mode 100644
index 00000000000..f90109c7432
--- /dev/null
+++ b/devel/ruby-gnome2-glib/patches/patch-ad
@@ -0,0 +1,35 @@
+$NetBSD: patch-ad,v 1.1 2008/04/24 00:49:30 obache Exp $
+
+Fixes build problem with glib 2.16
+Taken from upstream SVN repository rev 2848.
+
+--- glib/src/lib/glib-mkenums.rb.orig 2006-12-29 13:17:28.000000000 +0000
++++ glib/src/lib/glib-mkenums.rb
+@@ -3,7 +3,7 @@
+ #
+ # C language enum description generation library like as glib-mkenums tool.
+ #
+-# Copyright(C) 2006 Ruby-GNOME2 Project.
++# Copyright(C) 2006-2008 Ruby-GNOME2 Project.
+ #
+ # This program is licenced under the same license of Ruby-GNOME2.
+ #
+@@ -33,16 +33,14 @@ module GLib
+ if const_lines.include? "<<"
+ @type = "flags"
+ @Type = "Flags"
+- regexp = /^\s*([^\s]*)\s.*\n/
+ else
+ @type = "enum"
+ @Type = "Enum"
+- regexp = /^\s*([^\s,]*).*\n/
+ end
+ consts = []
+- const_lines.scan(regexp){|name|
++ const_lines.scan(/^\s*([^\s,]*).*\n/) do |name|
+ consts << name[0] unless name[0] =~ /(^[\/\*]|^$)/
+- }
++ end
+ @prefix = extract_prefix(consts)
+ consts.each do |name|
+ # consts = [name, nick]