[cairo-commit] rcairo ChangeLog, 1.243, 1.244 README, 1.21, 1.22 Rakefile, 1.9, 1.10

Kouhei Sutou commit at pdx.freedesktop.org
Wed Apr 23 22:54:32 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo
In directory kemper:/tmp/cvs-serv4437

Modified Files:
	ChangeLog README Rakefile 
Log Message:
* Rakefile, src/lib/cairo.rb: support gem for mswin32.
* README (Windows): add.


Index: ChangeLog
===================================================================
RCS file: /cvs/cairo/rcairo/ChangeLog,v
retrieving revision 1.243
retrieving revision 1.244
diff -u -d -r1.243 -r1.244
--- ChangeLog	24 Apr 2008 05:18:47 -0000	1.243
+++ ChangeLog	24 Apr 2008 06:00:47 -0000	1.244
@@ -1,5 +1,9 @@
 2008-04-24  Kouhei Sutou  <kou at cozmixng.org>
 
+	* Rakefile, src/lib/cairo.rb: support gem for mswin32.
+
+	* README (Windows): add.
+
 	* Rakefile: don't require 'cairo' if needless.
 
 	* pkg-config.rb (PackageConfig#guess_default_path): ignore

Index: README
===================================================================
RCS file: /cvs/cairo/rcairo/README,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- README	16 Apr 2008 14:48:23 -0000	1.21
+++ README	24 Apr 2008 06:00:47 -0000	1.22
@@ -22,6 +22,20 @@
                      # the samples in the samples folder should be able
                      # to run before installation.
 
+Windows
+-------
+
+cairo-X.Y.Z-x86-mswin32.gem includes cairo related binaries.
+
+  * cairo related binaries:
+      http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
+
+      * cairo-X.Y.Z.zip
+      * cairo-dev-X.Y.Z.zip
+      * libpng-X.Y.Z.zip
+      * libpng-dev-X.Y.Z.zip
+      * zlib-X.Y.Z.zip
+
 Documents
 ---------
 

Index: Rakefile
===================================================================
RCS file: /cvs/cairo/rcairo/Rakefile,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Rakefile	24 Apr 2008 05:18:48 -0000	1.9
+++ Rakefile	24 Apr 2008 06:00:47 -0000	1.10
@@ -23,6 +23,9 @@
   Cairo.bindings_version
 end
 
+cairo_win32_dir = "cairo"
+FileUtils.rm_rf(cairo_win32_dir)
+
 manifest = File.join(base_dir, "Manifest.txt")
 manifest_contents = []
 base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL
@@ -84,6 +87,19 @@
 
 project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"}
 
+if project.spec.platform.os == "mswin32"
+  project.spec.extensions = []
+  project.spec.files += ["src/cairo.so"]
+
+  FileUtils.cp_r(File.expand_path("~/.wine/drive_c/cairo-dev"),
+                 cairo_win32_dir)
+  cairo_files = []
+  Find.find(cairo_win32_dir) do |f|
+    cairo_files << f
+  end
+  project.spec.files += cairo_files
+end
+
 # fix Hoe's incorrect guess.
 project.spec.executables.clear
 project.lib_files = project.spec.files.grep(%r|^src/lib/|)



More information about the cairo-commit mailing list