[cairo-commit] rcairo/packages/cairo/lib cairo.rb,1.24,1.25

Kouhei Sutou commit at pdx.freedesktop.org
Sun Feb 25 05:44:52 PST 2007


Committed by: kou

Update of /cvs/cairo/rcairo/packages/cairo/lib
In directory kemper:/tmp/cvs-serv8474/packages/cairo/lib

Modified Files:
	cairo.rb 
Log Message:
* packages/cairo/lib/cairo.rb: supported Ruby-GNOME2 GUI Installer for Win32.
  Thanks to Masao Mutoh!


Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/packages/cairo/lib/cairo.rb,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- cairo.rb	9 Nov 2006 02:08:13 -0000	1.24
+++ cairo.rb	25 Feb 2007 13:44:45 -0000	1.25
@@ -1,5 +1,12 @@
 # vim: filetype=ruby:expandtab:shiftwidth=2:tabstop=8:softtabstop=2 :
 
+if /mingw|mswin|mswin32/ =~ RUBY_PLATFORM
+  require 'rbconfig'
+  ENV['PATH'] = %w(bin lib).collect do |dir|
+    "#{Config::CONFIG["prefix"]}\\lib\\GTK\\#{dir};"
+  end.join('') + ENV['PATH']
+end
+
 module Cairo
   def self.__add_one_arg_setter(klass)
     names = klass.instance_methods(false)



More information about the cairo-commit mailing list