ruby-gtk: added a patch to fix the build with glib 2.16.
This commit is contained in:
parent
8c995b8997
commit
7e4db7bba9
@ -1,2 +1,2 @@
|
||||
e3aaae7cf5d1589dcf94d7f2bd4334d3 ruby-gtk.diff
|
||||
1aac72ec246354641bfc6a19aaf2fb1f ruby-gtk.diff
|
||||
aedca2b3a7c6ae0f02cf5fd1e02f642c ruby-gtk2-0.16.0.tar.gz
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
name=ruby-gtk
|
||||
version=0.16.0
|
||||
release=2
|
||||
release=3
|
||||
source=(http://dl.sourceforge.net/ruby-gnome2/ruby-gtk2-$version.tar.gz \
|
||||
$name.diff)
|
||||
|
||||
|
@ -72,3 +72,25 @@ diff -aur ruby-gtk2-0.16.0.orig/gtk/src/rbgtk.h ruby-gtk2-0.16.0/gtk/src/rbgtk.h
|
||||
|
||||
/*
|
||||
* Gtk::SelectionData
|
||||
diff -aur ruby-gtk2-0.16.0.orig/glib/src/lib/glib-mkenums.rb ruby-gtk2-0.16.0/glib/src/lib/glib-mkenums.rb
|
||||
--- ruby-gtk2-0.16.0.orig/glib/src/lib/glib-mkenums.rb 2006-12-29 14:17:29.000000000 +0100
|
||||
+++ ruby-gtk2-0.16.0/glib/src/lib/glib-mkenums.rb 2008-03-15 17:25:05.034366090 +0100
|
||||
@@ -33,16 +33,14 @@
|
||||
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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user