Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/ruby-glib2/files: ruby-glib2-0.16.0-glib-2.16.patch
Date: Fri, 28 Mar 2008 06:28:57
Message-Id: E1Jf859-0001vg-0O@stork.gentoo.org
1 graaff 08/03/28 06:28:55
2
3 Added: ruby-glib2-0.16.0-glib-2.16.patch
4 Log:
5 Add compatibility patch for glib 2.16, fixing #213393
6 (Portage version: 2.1.4.4)
7
8 Revision Changes Path
9 1.1 dev-ruby/ruby-glib2/files/ruby-glib2-0.16.0-glib-2.16.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-glib2/files/ruby-glib2-0.16.0-glib-2.16.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-glib2/files/ruby-glib2-0.16.0-glib-2.16.patch?rev=1.1&content-type=text/plain
13
14 Index: ruby-glib2-0.16.0-glib-2.16.patch
15 ===================================================================
16 Patch from upstream to allow compilation with glib 2.16:
17 http://ruby-gnome2.svn.sourceforge.net/viewvc/ruby-gnome2/ruby-gnome2/trunk/glib/src/lib/glib-mkenums.rb?r1=2345&r2=2848
18 --- glib/src/lib/glib-mkenums.rb.~1~ 2006-12-29 14:17:28.000000000 +0100
19 +++ glib/src/lib/glib-mkenums.rb 2008-03-28 07:18:21.475004713 +0100
20 @@ -33,14 +33,12 @@
21 if const_lines.include? "<<"
22 @type = "flags"
23 @Type = "Flags"
24 - regexp = /^\s*([^\s]*)\s.*\n/
25 - else
26 + else
27 @type = "enum"
28 @Type = "Enum"
29 - regexp = /^\s*([^\s,]*).*\n/
30 end
31 consts = []
32 - const_lines.scan(regexp){|name|
33 + const_lines.scan(/^\s*([^\s,]*).*\n/){|name|
34 consts << name[0] unless name[0] =~ /(^[\/\*]|^$)/
35 }
36 @prefix = extract_prefix(consts)
37
38
39
40 --
41 gentoo-commits@l.g.o mailing list