head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.18 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.16 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.14 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.12 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.10 pkgsrc-2009Q4-base:1.2 pkgsrc-2008Q4:1.2.0.8 pkgsrc-2008Q4-base:1.2 pkgsrc-2008Q3:1.2.0.6 pkgsrc-2008Q3-base:1.2 cube-native-xorg:1.2.0.4 cube-native-xorg-base:1.2 pkgsrc-2008Q2:1.2.0.2 pkgsrc-2008Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2008.06.19.15.11.24; author taca; state dead; branches; next 1.1; 1.1 date 2008.04.24.00.49.30; author obache; state Exp; branches; next ; desc @@ 1.2 log @Update to ruby-gnome2-glib to 0.17.0rc1 to build with newer gnome packages. @ text @$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] @ 1.1 log @Fixes build problem with glib 2.16 reported in PR 38467. Patch taken from upstream SVN repository Revision 2848. @ text @d1 1 a1 1 $NetBSD$ @