From null+rcairo at clear-code.com Sat Aug 21 01:23:30 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 21 Aug 2010 05:23:30 -0000 Subject: [cairo-commit:00001] rcairo/rcairo [master] * pkg-config.rb: fix pkg-config detection on Ruby 1.9. Reported by Tasuku SUENAGA. Thanks!!! Message-ID: <20100821051710.8C445170E35@taiyaki.ru> Kouhei Sutou 2010-02-09 06:01:28 +0000 (Tue, 09 Feb 2010) New Revision: 99bf97b95638ccd6a56df9b1727e8342d0c632b4 Log: * pkg-config.rb: fix pkg-config detection on Ruby 1.9. Reported by Tasuku SUENAGA. Thanks!!! Modified files: ChangeLog pkg-config.rb Modified: ChangeLog (+5 -0) =================================================================== --- ChangeLog 2010-01-11 02:08:02 +0000 (6b4c87a) +++ ChangeLog 2010-02-09 06:01:28 +0000 (e4d8ae5) @@ -1,3 +1,8 @@ +2010-02-09 Kouhei Sutou + + * pkg-config.rb: fix pkg-config detection on Ruby 1.9. + Reported by Tasuku SUENAGA. Thanks!!! + 2010-01-11 Kouhei Sutou * src/lib/cairo/color.rb(Color::RGB#to_hsv): fix RGB -> HSV Modified: pkg-config.rb (+6 -1) =================================================================== --- pkg-config.rb 2010-01-11 02:08:02 +0000 (05c2be5) +++ pkg-config.rb 2010-02-09 06:01:28 +0000 (587245c) @@ -199,7 +199,12 @@ class PackageConfig end extern "const char *dln_find_exe(const char *, const char *)" end - dln.dln_find_exe(pkg_config.to_s, ".") + path = dln.dln_find_exe(pkg_config.to_s, nil) + if path.size.zero? + nil + else + Pathname(path.to_s) + end end def guess_default_path From null+rcairo at clear-code.com Fri Aug 20 23:06:15 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 21 Aug 2010 03:06:15 +0000 Subject: [cairo-commit:00002] rcairo/rcairo [master] add .gitignore. Message-ID: <20100821051710.A5BC3170EC4@taiyaki.ru> Kouhei Sutou 2010-08-21 03:06:15 +0000 (Sat, 21 Aug 2010) New Revision: c437d8ca534db5c3caeab64eb54ed21afecd78c7 Log: add .gitignore. Added files: .gitignore Removed files: .cvsignore Deleted: .cvsignore (+0 -2) 100644 =================================================================== --- .cvsignore 2010-08-21 03:05:38 +0000 (fc802ff) +++ /dev/null @@ -1,2 +0,0 @@ -Makefile -mkmf.log Added: .gitignore (+4 -0) 100644 =================================================================== --- /dev/null +++ .gitignore 2010-08-21 03:06:15 +0000 (9c3e0c4) @@ -0,0 +1,4 @@ +/Makefile +/mkmf.log +*.so +*.o From null+rcairo at clear-code.com Fri Aug 20 23:05:38 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 21 Aug 2010 03:05:38 +0000 Subject: [cairo-commit:00003] rcairo/rcairo [master] work 'make install' with Ruby 1.9. Message-ID: <20100821051710.9C177170E37@taiyaki.ru> Kouhei Sutou 2010-08-21 03:05:38 +0000 (Sat, 21 Aug 2010) New Revision: e29792bbccff2475d867198270bbc21226cf220f Log: work 'make install' with Ruby 1.9. Reported by kimura wataru. Thanks!!! Modified files: README extconf.rb Modified: README (+1 -0) =================================================================== --- README 2010-02-09 06:01:28 +0000 (bdfcf45) +++ README 2010-08-21 03:05:38 +0000 (89ebca6) @@ -81,3 +81,4 @@ Thanks * Davide Rambaldi: A suggestion. * Yusuke ENDOH: reports a bug. * Yuta Taniguchi: a bug fix patch. + * kimura wataru: reports a bug. Modified: extconf.rb (+4 -1) =================================================================== --- extconf.rb 2010-02-09 06:01:28 +0000 (e7428c0) +++ extconf.rb 2010-08-21 03:05:38 +0000 (f178191) @@ -97,6 +97,7 @@ makefile = File.read("Makefile") File.open("Makefile", "w") do |f| objs = [] co = nil + dllib = nil makefile.each_line do |line| if wine line.gsub!(/\s+gcc\b/, " i586-mingw32msvc-gcc") @@ -106,9 +107,11 @@ File.open("Makefile", "w") do |f| case line when /^DLLIB\s*=\s*/ - dllib = $POSTMATCH + dllib = $POSTMATCH.chomp f.puts("DLLIB = #{ext_dir_name}/#{dllib}") f.puts("IMPLIB = #{ext_dir_name}/libruby-#{dllib.gsub(/\..+?$/, '.lib')}") + when /(\$\(RUBYARCHDIR\)\/)\$\(DLLIB\)/ + f.puts("#{$PREMATCH}#{$1}#{dllib}#{$POSTMATCH}") when /^(SRCS)\s*=\s*/ name = $1 vars = $POSTMATCH.split.collect {|var| "$(srcdir)/#{var}"}.join(" ") From null+rcairo at clear-code.com Thu Aug 26 04:01:28 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 08:01:28 +0000 Subject: [cairo-commit:00004] rcairo/rcairo [master] 1.8.1 -> 1.8.2. Message-ID: <20100826080749.06E0717051A@taiyaki.ru> Kouhei Sutou 2010-08-26 08:01:28 +0000 (Thu, 26 Aug 2010) New Revision: 6b62b8c8773b86cc2fc14dafca3aa89901690127 Log: 1.8.1 -> 1.8.2. Modified files: src/rb_cairo.c Modified: src/rb_cairo.c (+1 -1) =================================================================== --- src/rb_cairo.c 2010-08-21 03:06:15 +0000 (7bb012f) +++ src/rb_cairo.c 2010-08-26 08:01:28 +0000 (8417162) @@ -76,7 +76,7 @@ Init_cairo () rb_define_const (rb_mCairo, "BINDINGS_VERSION", rb_ary_new3 (4, - INT2FIX (1), INT2FIX (8), INT2FIX (1), Qnil)); + INT2FIX (1), INT2FIX (8), INT2FIX (2), Qnil)); rb_define_module_function (rb_mCairo, "satisfied_version?", rb_cairo_satisfied_version, -1); From null+rcairo at clear-code.com Thu Aug 26 04:02:13 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 08:02:13 +0000 Subject: [cairo-commit:00005] rcairo/rcairo [master] remove ChangeLog. Message-ID: <20100826080749.12A5A170ED1@taiyaki.ru> Kouhei Sutou 2010-08-26 08:02:13 +0000 (Thu, 26 Aug 2010) New Revision: b4eebc22c86984788d244e37f5b214c2779d6471 Log: remove ChangeLog. Removed files: ChangeLog Deleted: ChangeLog (+0 -1679) 100644 =================================================================== --- ChangeLog 2010-08-26 08:01:28 +0000 (e4d8ae5) +++ /dev/null @@ -1,1679 +0,0 @@ -2010-02-09 Kouhei Sutou - - * pkg-config.rb: fix pkg-config detection on Ruby 1.9. - Reported by Tasuku SUENAGA. Thanks!!! - -2010-01-11 Kouhei Sutou - - * src/lib/cairo/color.rb(Color::RGB#to_hsv): fix RGB -> HSV - conversion. - Patch by Yuta Taniguchi. Thanks!!! - * README: add Yuta Taniguchi to thanks list. Thanks!!! - - * test/test_color.rb: add. - - * src/lib/cairo/color.rb: add Color::RGB#==, Color::RGB#hash, - Color::RGB#eql?. - -2009-12-13 Kouhei Sutou - - * src/rb_cairo.c: 1.8.0 -> 1.8.1. - - * NEWS: add 1.8.1 entry. - - * Rakefile: remove install/uninstall tasks. - - * Rakefile: use hoe 2.3.2. - - * Rakefile: resupport FORCE_PLATFORM. - -2009-03-27 Kouhei Sutou - - * pkg-config.rb: add license term. - -2009-03-02 Kouhei Sutou - - * pkg-config.rb (PackageConfig#guess_default_path): add - /usr/X11/lib/pkgconfig/. - -2008-11-01 Kouhei Sutou - - * extconf.rb, src/rb_cairo_surface.c: check ruby/io.h availability. - -2008-09-26 Kouhei Sutou - - * src/rb_cairo.c: 1.7.1 -> 1.8.0. - - * NEWS: add 1.8.0 entry. - - * test/test_context.rb (ContextTest#test_font_face): remove - needless test. - - * src/rb_cairo_font_face.c: don't define #set_cluster_flags. - - * src/rb_cairo_context.c: support cairo 1.8.0. - -2008-09-19 Kouhei Sutou - - * src/, test/: support cairo 1.7.6. - -2008-09-06 Kouhei Sutou - - * README: add Yusue ENDOH to Thanks list. - - * src/rb_cairo_context.c: re-support cairo 1.2.x. - Reported by Yusuke ENDOH. Thanks!!! - -2008-08-17 Kouhei Sutou - - * NEWS: fix a typo. - - * test/.cvsignore: add. - - * src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.7.0 -> 1.7.1. - - * Rakefile: exclude .test-result. - - * NEWS: add 1.7.0 entry. (cairo 1.7.4 is supported) - - * src/, test/: add missing version checks. - - * src/rb_cairo_font_face.c - (cr_user_font_face_text_to_glyphs_func): set num_glyphs to -1 if - callback isn't found. - - * src/rb_cairo_private.c (rb_cairo__glyphs_from_ruby_object) - (rb_cairo__text_clusters_from_ruby_object): set -1 to *num_XXX - instead of 0. - - * src/rb_cairo_text_extents.c: add Cairo::TextExtents#initialize - and setters. - - * test/test_text_extents.rb: add. - - * src/rb_cairo_font_extents.c: add Cairo::FontExtents#initialize - and setters. - - * test/test_font_extents.rb: add. - - * src/rb_cairo_font_face.c: add - Cairo::UserFontFace::TextToGlyphsData#need_backward?. - - * test/test_text_to_glyphs_data.rb: add tests for - Cairo::UserFontFace::TextToGlyphsData. - - * test/test_font_face.rb - (FontFaceTest#test_toy_font_face_new_with_invalid_family_name): - add a test for creating Cairo::ToyFontFace with invalid family - name. - (FontFaceTest#test_toy_font_face_new): add a test for creating - Cairo::ToyFontFace with nil family name. - - * src/rb_cairo_font_face.c (cr_toy_font_face_initialize): accept nil. - - * src/rb_cairo_context.c (cr_select_font_face): make family optional. - - * test/test_context.rb - (ContextTest#test_select_font_face), - (ContextTest#test_select_font_face_with_invalid_family_name): add - a test for Cairo::Context#select_font_face. - -2008-08-16 Kouhei Sutou - - * test/test_pkg_config.rb (PkgConfigTest#test_requires_private): - work on my environment. - - * src/lib/cairo.rb (Cairo.exit_application): add. - - * src/rb_cairo_surface.c: use rb_cairo__invoke_callback(). - - * src/rb_cairo_private.c, src/rb_cairo_private.h - (rb_cairo__invoke_callback): use rb_protect() and exit if an - exception is raised in callback. - - * src/rb_cairo_font_face.c: support Cairo::UserFontFace. - - * src/rb_cairo_exception.c, src/rb_cairo_private.h - (rb_cairo__exception_to_status): add. - - * src/rb_cairo_context.c (cr_show_text_glyphs): initialize variables. - - * src/cairo.def, src/rb_cairo.h: add - rb_cCairo_UserFontFace_TextToGlyphsData. - - * test/test_font_face.rb: add tests for user font. - - * src/rb_cairo_private.[ch] (rb_cairo__text_clusters_from_ruby_object) - (rb_cairo__glyphs_from_ruby_object): add. - - * test/test_context.rb (ContextTest#test_text_to_glyphs): add a - test for Cairo::Context#show_text_glyphs. - - * src/rb_cairo_context.c: support Cairo::Context#show_text_glyphs. - - * test/test_text_cluster.rb: add tests for Cairo::TextCluster. - - * test/test_scaled_font.rb (ScaledFontTest#test_text_to_glyphs): - add a test for Cairo::ScaledFont#text_to_glyphs. - - * src/rb_cairo.h, src/rb_cairo.c, src/cairo.def, - src/rb_cairo_text_cluster.c: add Cairo::TextCluster. - - * src/rb_cairo_scaled_font.c: support - Cairo::ScaledFont#text_to_glyphs. - - * src/rb_cairo_private.[ch] (rb_cairo__glyphs_to_ruby_object), - (rb_cairo__text_clusters_to_ruby_object): add. - - * src/rb_cairo_context.c: support - Cairo::Context#have_show_text_glyphs?. - - * test/test_context.rb (ContextTest#test_have_show_text_glyphs): - add a test for Cairo::Context#have_show_text_glyphs?. - -2008-08-14 Kouhei Sutou - - * src/rb_cairo_scaled_font.c: support Cairo::ScaledFont#scale_matrix. - - * test/test_scaled_font.rb: add. - - * src/rb_cairo_matrix.c (cr_matrix_equal): add Cairo::Matrix#==. - - * src/rb_cairo_surface.c: support Cairo::Surface#fallback_resolution. - - * test/test_surface.rb (SurfaceTest#test_fallback_resolution): add - a test for Cairo::Surface#fallback_resolution. - - * test/test_context.rb (ContextTest#test_font_face): add a test - for Cairo::Context#font_face{,=}. - - * src/rb_cairo_private.[ch] (rb_cairo__inspect): add. - - * test/test_font_face.rb: add. - - * src/rb_cairo_font_face.c: support Cairo::ToyFontFace. - - * src/cairo.def, src/rb_cairo.h: add rb_cCairo_ToyFontFace and - rb_cCairo_UserFontFace. - -2008-08-13 Kouhei Sutou - - * src/lib/cairo/constants.rb (Cairo::LCD_FILTER_*): define. - - * src/rb_cairo.h (RVAL2CRLCDFILTER, - rb_cairo_lcd_filter_from_ruby_object): add. - - * src/cairo.def (rb_cairo_lcd_filter_from_ruby_object): add. - - * src/rb_cairo_font_options.c (Cairo::FontOptions#lcd_filter, - Cairo::FontOptions#lcd_filter=): add. - - * test/test_font_options.rb: add. - - * src/rb_cairo.h, src/cairo.def, src/rb_cairo_constants.c - (Cairo::LCDFilter): add. - - * test/test_constants.rb: add. - - * src/rb_cairo_exception.c: support new statuses appeared since - cairo 1.7.2. - - * src/rb_cairo.c (Cairo.satisfied_version?): add. - - * test/test_exception.rb: add. - - * test/cairo-test-utils.rb: add. - - * test/run-test.rb: use Test::Unit 2.x. - - * test-unit: imported Test::Unit 2.x. - -2008-08-11 Kouhei Sutou - - * test/test_context.rb: add. - - * test/run-test.rb: don't use at_exit test runner because rcairo - uses at_exit based GC guard mechanism. - - * src/rb_cairo_context.c: free all alive Cairo::Context before - stop GC like Cairo::Surface. - - * src/rb_cairo_private.[ch]: abstract explicit free before stop GC - used by Cairo::Surface. - - * src/rb_cairo_surface.c: use abstracted explicit free before stop - GC. - -2008-08-06 Kouhei Sutou - - * README: update sample scripts dependency description. - Suggested by Davide Rambaldi. - - * README: add a Davide Rambaldi's entry. - -2008-08-02 Kouhei Sutou - - * src/rb_cairo_surface.c: handle unknown surface type as - Cairo::Surface. - - * src/rb_cairo_surface.c: add Cairo::Surface#destroy. - - * README: update Paul van Tilburg's entry. - - * extconf.rb: check ruby/st.h availability. - Suggested by Paul van Tilburg. - - * src/rb_cairo_surface.c: use HAVE_RUBY_ST_H. - -2008-07-29 Kouhei Sutou - - * src/rb_cairo_context.c: export Cairo::Context#destroy. - -2008-07-21 Kouhei Sutou - - * src/rb_cairo_context.c (cr_set_source_generic): accept surface - without width and height. - -2008-07-19 Kouhei Sutou - - * src/rb_cairo.c: 1.6.3 -> 1.7.0. - - * NEWS: add a new entry for 1.6.3. - - * src/rb_cairo.c: 1.7.0 -> 1.6.3. - -2008-06-20 Kouhei Sutou - - * README: update OBATA Akio's entry. - - * src/depend (install-so): use INSTALL_DATA and RUBYARCHDIR. - Suggested by OBATA Akio. Thanks!!! - - * pkg-config.rb: add libdata. - - * pkg-config.rb: - - add /opt/local/lib/pkgconfig as default path. - - improve default path guess. - Suggested by Carsten Bormann. Thanks!!! - - * README: add Carsten Bormann to thanks list. Thanks!!! - - * test/test_surface.rb: add. - - * src/rb_cairo_surface.c (yield_and_finish): don't finish if it - isn't needed. - - * src/rb_cairo_surface.c: finish all guarded surfaces at end. - -2008-06-19 Kouhei Sutou - - * src/: use #ifdef for CAIRO_HAS_*. - - * src/rb_cairo_surface.c: guard custom write surfaces from GC to - avoid writing in GC. - Reported by James Healy. Thanks!!! - - * README: add James Healy to Thanks list. - - * pkg-config.rb (PackageConfig#guess_default_path): add - /usr/share/pkgconfig to default path. - Suggested by James Healy. Thanks!!! - -2008-06-14 Kouhei Sutou - - * src/rb_cairo.c: 1.6.2 -> 1.7.0. - - * Rakefile: don't clean on release target to keep generated document. - - * src/rb_cairo_surface.c: rename OpenFile before include rubyio.h. - - * NEWS: add an entry for 1.6.2. - - * pkg-config.rb: work with ruby 1.9. - - * src/rb_cairo.c: 1.7.0 -> 1.6.2. - -2008-06-13 Kouhei Sutou - - * pkg-config.rb: add PREFIX/lib64/pkgconfig to default path list. - -2008-06-12 Kouhei Sutou - - * extconf.rb: include . - - * src/rb_cairo_private.h: add fallback RARRAY_PTR and RARRAY_LEN. - - * src/rb_cairo_context.c, src/rb_cairo_pattern.c: use RARRAY_PTR - and RARRAY_LEN. - -2008-04-30 Kouhei Sutou - - * src/rb_cairo.h: move environment dependent headers to ... - * src/rb_cairo_surface.c: ... here. - guard T_DATA macro for old Mac OS X environment. - - * extconf.rb: check enum ruby_value_type availability that is - defined in Ruby 1.9 with RUBY_T_DATA. - - * pkg-config.rb (PackageConfig#guess_default_path): handle DL exception. - -2008-04-26 Kouhei Sutou - - * Rakefile: fix document dependency. - -2008-04-24 Kouhei Sutou - - * extconf.rb: don't substitute prefixed gcc. - - * Rakefile: include libruby-cairo.a into gem for mswin32. - - * index.html: update information for Windows users. - - * src/rb_cairo.c: 1.6.1 -> 1.7.0. - - * test/test_pkg_config.rb: update expected result. - - * NEWS: update. - - * Rakefile: fix platform detection. - - * src/rb_cairo.c: 1.7.0 -> 1.6.1. - - * 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 - require 'dl/import' error. - - * pkg-config.rb (PackageConfig#guess_default_path): support - PKG_CONFIG_LIBDIR. - Suggested by OBATA Akio. Thanks!!! - -2008-04-16 Kouhei Sutou - - * src/rb_cairo_surface.c: fix unbelievable typos. - Reported by kimura wataru. Thanks!!! - - * README: update an entry for kimura wataru. - -2008-04-11 Kouhei Sutou - - * src/rb_cairo.c: 1.6.0 -> 1.7.0. - - * dist.sh: include documents. - - * Rakefile: - - follow the recent Hoe's changes. - - fix dependencies. - - * src/rb_cairo_surface.c: implemented Cairo::PSSurface#eps?. - - * samples/png.rb: use convenience notation. - - * samples/pac.rb, samples/pac2.rb: use Cairo::Paper. - - * src/rb_cairo_surface.c: don't change paper's unit. - - * src/lib/cairo/papers.rb: add landscape papers. - - * test/test_paper.rb, src/lib/cairo/paper.rb: support name parsing. - - * src/lib/cairo/paper.rb: improve unit handling. - - * src/rb_cairo.c: - - BINDINGS_VERSION: 1.5.2 -> 1.6.0. - - support <= 1.6.0. - - * NEWS: update. - - * src/lib/cairo/papers.rb: fix unit. - - * src/cairo.def, src/rb_cairo.c, src/rb_cairo.h, src/lib/cairo.rb, - src/rb_cairo_surface.c: Cairo::PSSurface.new, - Cairo::PDFSurface.new, Cairo::SVGSurface.new, - Cairo::PSSurface#set_size and Cairo::PDFSurface#set_size accept - paper description that can be parsed by Cairo::Paper.parse as page - size. - - * src/lib/cairo/paper.rb, test/test_paper.rb: use pt as default unit. - - * src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c: add - CRSURFACE2RVAL_WITH_DESTROY() and - rb_cairo_surface_to_ruby_object_with_destroy(). - - * src/rb_cairo_surface.c (cr_surface_create_similar): fix memory leak. - -2008-04-09 Kouhei Sutou - - * src/lib/cairo/paper.rb, test/test_paper.rb: improve parser. - - * src/lib/cairo/paper.rb, src/lib/cairo/papers.rb, - test/test_paper.rb: add. - -2008-04-04 Kouhei Sutou - - * extconf.rb: cleanup libruby-cairo.a. - - * extconf.rb: support building with Wine + MinGW on my Linux - environment. - - * extconf.rb: use search path for nmake. - - * extconf.rb: add the same directory of extconf.rb to load path. - - * extconf.rb: fix IMPLIB path. - - * src/rb_cairo_constants.c: define dummy - rb_cairo_ps_level_from_ruby_object() just for creating cairo.lib. - - * extconf.rb: substitute DLLIB not TARGET. - - * pkg-config.rb: fix substitution for MSVC. - - * extconf.rb: support output option for MSVC. - - * src/rb_cairo_path.c: remove garbages. - - * extconf.rb: fix object file extension substitution. - - * pkg-config.rb: detect MSVC environment. - - * pkg-config.rb: handle DL error. - -2008-04-03 Kouhei Sutou - - * pkg-config.rb, test/test_pkg_config.rb: support - --with-override-variables extconf.rb option. - -2008-04-01 Kouhei Sutou - - * samples/text2.rb: don't use block variable assignment. - - * src/depend (install-so): use -run instead of ftools. - -2008-03-26 Kouhei Sutou - - * src/rb_cairo_surface.c: added missing HAVE_RUBY_COCOA check. - Thanks to OBATA Akio!!! - * README: added OBATA Akio to the thanks list. - -2008-03-25 Kouhei Sutou - - * src/rb_cairo_context.c (cr_initialize): fixed style. - -2008-03-04 Kouhei Sutou - - * pkg-config.rb: supported building with ruby 1.9.1. - -2008-03-01 Kouhei Sutou - - * src/rb_cairo_surface.c, src/cairo.def: Cairo::QuartzImageSurface - will work. - - * src/rb_cairo_surface.c: supported <= 1.5.12. - - * pkg-config.rb: searched default path too. - -2008-02-24 Kouhei Sutou - - * pkg-config.rb: implemented --cflags-only-I. - * test/: added. - - * src/rb_cairo_surface.c: worked with cairo >= 1.2.0. - - * src/rb_cairo_context.c: fixed declaration position. - - * extconf.rb: RUBY_ -> RB_. - - * pkg-config.rb: implemented pkg-config for cross compiling with Wine. - -2008-02-21 Kouhei Sutou - - * src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c: - Cairo::Win32PrintingSurface will work. - - * src/: supported <= 1.5.10. - -2008-01-18 Kouhei Sutou - - * src/rb_cairo_surface.c: used rbobj_to_nsobj() and - ocid_to_rbobj() instead of rbobj_get_ocid() and ocobj_s_new(). - Suggested by kimura wataru. Thanks!!! - - * README: added kimura wataru to Thanks list. - - * src/rb_cairo_surface.c: fixed # of arguments for - Cairo::Surface#mark_dirty. - - * src/rb_cairo_surface.c: improved argument error message. - - * extconf.rb: detected RubyCocoa. - -2008-01-11 Kouhei Sutou - - * Rakefile: added docs task dependencies. - - * dist.sh: updated update host. - - * src/rb_cairo.c: 1.5.1 -> 1.5.2. - - * src/: Cairo::WIN32Surface -> Cairo::Win32Surface. - - * NEWS: added an entry for 1.5.1. - - * extconf.rb: added Quartz backend check for -framework RubyCocoa. - - * src/rb_cairo.h: - - RUBY_XXX -> RB_XXX. - - added extern "C" {}. - - added rb_cCairo_QuartzSurface. - - * src/cairo.def: rb_cCairo_QuartzSurface. - - * src/rb_cairo_surface.c: supported Quartz backend. - -2007-12-29 Kouhei Sutou - - * src/rb_cairo_context.c (cr_set_source_surface): fixed wrong type - conversion. - Reported by Binzo. Thanks!!! - - * README: updated Binzo entry in Thanks list. - -2007-12-28 Kouhei Sutou - - * src/rb_cairo_context.c (cr_pop_group): fixed a memory leak bug. - Reported by Binzo. Thanks!!! - - * README: added Binzo to Thanks list. - -2007-06-14 Kouhei Sutou - - * extconf.rb, src/rb_cairo_surface.c, src/rb_cairo_private.h: used - rb_errinfo() and RSTRING_LEN() if available for supporting ruby - 1.9. Thanks to Paul van Tilburg!!! - - * README: added Paul van Tilburg to Thanks list. - -2007-06-14 Paul van Tilburg - - * extconf.rb: used String#each_line instead of String#each for - supporting ruby 1.9. - -2007-06-03 Kouhei Sutou - - * samples/agg/aa_test.rb: fixed wrong operation. - -2007-05-29 Kouhei Sutou - - * src/lib/cairo/context/path.rb: fixed typos. - Thanks to NANKI Haruo!!! - * README: added an entry for NANKI Haruo. - -2007-05-28 Kouhei Sutou - - * src/lib/cairo/context.rb, src/lib/cairo/context/triangle.rb: - added a convenience method. - - * samples/agg/aa_test.rb: implemented random shapes test. - -2007-05-27 Kouhei Sutou - - * samples/agg/aa_test.rb: ported from AGG's example. - - * README: added some links for documentation. - - * src/rb_cairo.c: 1.5.0 -> 1.5.1. - - * Rakefile: improved current release NEWS extraction. - - * NEWS: updated. - - * Rakefile: supported document update. - - * src/depend (install-so): used install-so instead of install. - - * src/rb_cairo_font_options.c (Cairo::FontOptions#merge): renamed - to merge! because the method is destructive. - - * src/lib/cairo.rb (Cairo::FontOptions#merge): added - non-destructive version. - -2007-05-23 Kouhei Sutou - - * src/lib/cairo.rb (Cairo.normalize_const_name): treated "." as - ignore character. - - * src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.6.0 -> 1.5.0. - -2007-05-22 Kouhei Sutou - - * src/rb_cairo_pattern.c (cr_radial_pattern_get_radial_circles): - returned [[x0, y0, r0], [x1, y1, r1]] instead of [x0, y0, r0, x1, - y1, r1]. - - * src/rb_cairo_path.c: used super. - - * src/rb_cairo_path.c (Cairo::PathMoveTo, Cairo::PathLineTo, - Cairo::PathCurveTo, Cairo::PathClosePath): defined each path data - type as class. - -2007-05-21 Kouhei Sutou - - * src/rb_cairo_matrix.c (Cairo::Matrix#transform_distance): fixed - a typo. - - * src/rb_cairo_matrix.c: added accessors. - - * src/rb_cairo_surface.c: supported 64bit platform. Thanks to - Yoshinao Muramatsu! - -2007-05-20 Kouhei Sutou - - * src/rb_cairo_surface.c (cr_win32_surface_initialize): fixed a - typo. Thanks to Yoshinao Muramatsu! - - * src/rb_cairo_font_face.c, src/lib/cairo/constants.rb: followed - up the previous commit. - - * src/cairo.def, src/rb_cairo_pattern.c, src/rb_cairo_surface.c, - src/rb_cairo_font_face.c: removed needless methods XXX#type. - - * src/rb_cairo.h, src/rb_cairo_pattern.c, src/rb_cairo_surface.c: - always detected surface and pattern type dynamically. - * src/rb_cairo_context.c: followed the above changes. - - * src/rb_cairo.h, src/rb_cairo_surface.c: improved win32 surface - support. Thanks to Yoshinao Muramatsu! - - * src/rb_cairo.h, src/cairo.def, src/rb_cairo_constants.rb: - added a module for each enum type. - * src/lib/cairo/constants.rb: kept the backward compatibility. - -2007-05-19 Kouhei Sutou - - * src/lib/cairo/context/circle.rb (Cairo::Context::Circle#circle): - renamed parameter name to be more self-descriptive. - - * src/rb_cairo.h, src/cairo.def, src/rb_cairo_surface.c: - supported win32 surface. Thanks to Yoshinao Muramatsu!!! - - * README: added an entry for Yoshinao Muramatsu. - -2007-05-18 Kouhei Sutou - - * src/rb_cairo_private.[ch] (rb_cairo__glyphs_to_array, - RB_CAIRO__GLYPHS_TO_ARRAY): fixed wrong memory allocation. - * src/rb_cairo_context.c, src/rb_cairo_scaled_font.c: used - RB_CAIRO__GLYPHS_TO_ARRAY instead of rb_cairo__glyphs_to_array(). - - * src/rb_cairo_context.c (cr_set_dash): - - made offset optional. - - accepted a number for dash_array. - -2007-05-15 Kouhei Sutou - - * src/rb_cairo_context.c (cr_get_group_target): added NULL check. - - * src/rb_cairo_context.c (cr_get_font_face): checked status of got - font face not context. - - * src/rb_cairo_context.c (cr_set_font_face): accepted nil as font - face. - - * src/rb_cairo_context.c (cr_copy_path, cr_copy_path_flat): - checked status of copied path not context. - -2007-05-10 Kouhei Sutou - - * src/rb_cairo_surface.c (cr_surface_create_similar): retrieved - corresponding Ruby class by cairo_surface_get_type(). - -2007-05-06 Kouhei Sutou - - * src/rb_cairo_path.c, src/lib/cairo.rb, src/lib/cairo/path.rb: - added path related methods such as move_to, line_to and curve_to - to Cairo::Path. - - * src/lib/cairo/context/path.rb - (Cairo::Context::Path#transform_path): multi-thread safe. - -2007-05-03 Kouhei Sutou - - * src/rb_cairo_path.c - (Cairo::PathData#move_to?, Cairo::PathData#line_to?, - Cairo::PathData#curve_to?, Cairo::PathData#close_path?): added. - - * src/rb_cairo_private.h - (CBOOL2RVAL, RVAL2CBOOL): added. - (rb_cairo__is_kind_of): added. - * src/*.c: used rb_cairo__is_kind_of() instead of - RTEST(rb_obj_is_kind_of(...)). - - * src/rb_cairo_path.c - (Cairo::Path#size, Cairo::Path#length, Cairo::Path#empty?): added. - (Cairo::Path#[]): supported negative index. - - * src/rb_cairo_path.c (Cairo::PathData#each): added. - - * src/rb_cairo.h, src/rb_cairo_path.c: added Cairo::Point and - Cairo::PathData. - - * src/lib/cairo/point.rb (Cairo::Point#distance): moved from - Cairo::Context::Path::Point. - * src/lib/cairo/context/path.rb (Cairo::Context::Path::Point): - removed. - * src/lib/cairo.rb, src/lib/cairo/context/path.rb: used Cairo::Point. - -2007-05-01 Kouhei Sutou - - * src/rb_cairo_pattern.c - (cr_gradient_pattern_get_color_stop_color): cleanup. - - * src/rb_cairo.[ch]: exported Cairo::Color and Cairo::Color::Base. - * src/lib/cairo.rb: require cairo/color before cairo.so to export - Cairo::Color to cairo.so. - - * src/rb_cairo_pattern.c: implemented src/lib/cairo/pattern.rb - methods in C. - * src/lib/cairo/pattern.rb: removed. - * src/lib/cairo.rb: removed cairo/pattern. - - * src/rb_cairo_private.[ch] (rb_cairo__const_get, - Init_cairo_private): added. - * src/rb_cairo.c: moved Init_* declarations to rb_cairo_private.h. - * src/rb_cairo_constants.c: supported abbrev notation for constant - name. We can write just like - context.antialias = :none - instead of - context.antialias = Cairo::ANTIALIAS_NONE - - * src/lib/cairo.rb (Cairo.normalize_const_name): added. - * src/lib/cairo/color.rb: used Cairo.normalize_const_name. - -2007-04-30 Kouhei Sutou - - * src/lib/cairo/context.rb, src/lib/cairo/context/quad.rb: moved - quadratic B?zier curve support to ... - * src/rb_cairo_context.c: ... here. - - * src/lib/cairo/context/path.rb - (Cairo::Context::Path#map_path_onto): fixed a boundary value bug. - -2007-04-19 Kouhei Sutou - - * src/rb_cairo_context.c (Cairo::Context#stroke, - Cairo::Context#fill, Cairo::Context#clip): accept 'preserve' option - to change XXX and XXX_preserve. - * src/lib/cairo/context.rb (Cairo::Context#stroke_preserve, - Cairo::Context#fill_preserve, Cairo::Context#clip_preserve): moved - from src/rb_cairo_context.c. - -2007-04-18 Kouhei Sutou - - * src/lib/cairo/color.rb (Cairo::Color.parse): - - supported :hsv and :hsva. - - added robust parse mode. - - * samples/blur.rb: used convenience interface of Cairo::ImageSurface.new. - - * src/lib/cairo/color.rb: supported HSV. - -2007-04-16 Kouhei Sutou - - * src/lib/cairo/color.rb, src/lib/cairo/pattern.rb, - src/lib/cairo/context/color.rb, src/rb_cairo_pattern.c: improved - Cairo::Color interface. - - * sample/: used Cairo::Color. - - * src/lib/cairo/color.rb: added validation. - - * misc/update-colors.rb: supported X11 color names. - * src/lib/cairo/colors.rb: updated. - - * misc/update-colors.rb: added colors.rb generator that extracts - popular colors from Wikipedia:List_of_colors page. - - * src/lib/cairo/colors.rb: added popular colors generated by - updated-colors.rb. - - * src/lib/cairo/color.rb: added high-level color class including - CMYK support. - - * src/rb_cairo_pattern.c, src/lib/cairo.rb, - src/lib/cairo/context.rb, src/lib/cairo/pattern.rb: supported - Cairo::Color. - -2007-04-15 Kouhei Sutou - - * src/rb_cairo_context.c - (cr_push_group): added error handling. - (cr_pop_group_to_source): updated source class. - - * src/lib/cairo/context.rb, src/lib/cairo/context/blur.rb: added - Cairo::Context#pseudo_blur. - - * samples/blur.rb: added a sample script for Cairo::Context#pseudo_blur. - - * src/rb_cairo_context.c - (cr_pop_group): returned pattern. - (cr_push_group): returned popped pattern if not pop_to_source. - -2007-04-13 Kouhei Sutou - - * Rakefile: supported 'rake release'. - - * extconf.rb, Rakefile: supported RubyGems. - -2007-04-08 Kouhei Sutou - - * src/rb_cairo_surface.c (yield_and_finish): - - renamed from ensure_finish_proc(). - - don't use ensure. - - * src/rb_cairo_surface.c (ensure_finish_proc): supported - Cairo::Surface.new with block. If block is exited, a surface is - finished automatically. - - * sample/*.rb: followed the above change. - -2007-03-10 Kouhei Sutou - - * src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.4.1 -> 1.6.0. - -2007-03-10 Kouhei Sutou - - * NEWS: added 1.4.1 entry. - - * pkg-config.rb: re-added. - - * src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.6.0 -> 1.4.1 for - releasing 1.4.1. - -2007-03-06 Kouhei Sutou - - * src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.4.0 -> 1.6.0. - - * dist.sh: added release script. - - * NEWS: added 1.4.0 entry. - - * src/rb_cairo_context.c (cr_get_scaled_font): checked cairo - version. - - * setup.rb: removed dependency on setup.rb. used Ruby-GNOME2 - style. - - * extconf.rb: moved from packages/cairo/ext/. - - * packages/cairo/ext: move to ... - * src/: ... here. - - * packages/cairo/lib: move to ... - * src/lib: ... here. - - * README, samples/: followed the changes. - -2007-03-03 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: supported cairo 1.3.16. - - * packages/cairo/ext/rb_cairo.h: cleanup. - - * packages/cairo/ext/rb_cairo_scaled_font.c - (rb_cairo_scaled_font_to_ruby_object): fixed a conversion bug. - - * packages/cairo/ext/rb_cairo_constants.c - (Cairo::SURFACE_TYPE_OS2): added. - -2007-02-25 Kouhei Sutou - - * packages/cairo/lib/cairo.rb: supported Ruby-GNOME2 GUI Installer - for Win32. - Thanks to Masao Mutoh! - -2007-02-04 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_surface.c: the first argument of - Cairo::ImageSurface#initialize, cairo_format_t, is optional. - * samples/*.rb: followed the change. - -2007-01-21 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: supported cairo 1.3.12. - -2007-01-08 Kouhei Sutou - - * samples/text2.rb (render_layout): used - Pango::LayoutIter#line_extents and Pango::LayoutIter#line_yrange. - -2007-01-02 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: cached Ruby object for - source. - -2007-01-01 Kouhei Sutou - - * samples/text2.rb: used Pango::LayoutIter. - -2006-12-30 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_pattern.c: Cairo::GradientPattern#[] - -> Cairo::GradientPattern#get_color_stop. - -2006-12-29 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: keep reference of Ruby - object for the surface in the context. - - * packages/cairo/ext/rb_cairo_surface.c: - - use file output functions provided by cairo. - - hold output target reference in surface. - -2006-12-28 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.c (Cairo::BINDINGS_VERSION): - 1.2.0 -> 1.4.0. - -2006-12-22 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c, - packages/cairo/ext/rb_cairo_surface.c, - packages/cairo/ext/rb_cairo_pattern.c, - packages/cairo/ext/rb_cairo_exception.c, - packages/cairo/ext/rb_cairo_constants.c, - packages/cairo/ext/rb_cairo_pattern.c, - packages/cairo/ext/rb_cairo_private.h: supported cairo 1.3.8. - -2006-12-19 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_pattern.c: - - moved Cairo::SurfacePattern#{extend,filter}{,=} to - Cairo::Pattern. I can't remember why I defined them in - Cairo::SurfacePattern... - - defined Cairo::Pattern#__extend__ as alias of Object#extend to - avoid discarding. - -2006-12-15 Kouhei Sutou - - * packages/cairo/lib/cairo/context/path.rb: ported Pango's - cairotwisted example as library. - * samples/text-on-path.rb: ported Pango's cairotwisted example by - using the library. - -2006-11-27 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.h (CAIRO_CHECK_VERSION): added. - - * packages/cairo/ext/rb_cairo_surface.c: moved #write_to_png to - Cairo::Surface from Cairo::ImageSurface. - -2006-11-09 Kouhei Sutou - - * packages/cairo/lib/cairo.rb, packages/cairo/lib/cairo/context/, - packages/cairo/lib/cairo/context.rb: split Cairo::Context - extensions with each file under packages/cairo/lib/cairo/context/ - directory. - -2006-10-25 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c (cr_clip) - (cr_clip_preserve): supported block. - -2006-10-22 NANKI Haruo - - * packages/cairo/ext/rb_cairo_path.c (cr_path_each): fixed - a conversion bug. - -2006-10-20 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c (cr_select_font_face): - made slang and weight arguments of Cairo::Context#select_font_face - optional. - - * samples/text2.rb: added --fade-out option. - -2006-10-15 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.c (Cairo::BINDINGS_VERSION): moved - from ... - * packages/cairo/lib/cairo.rb: ... here. - - * packages/cairo/lib/cairo.rb: moved Cairo.__add_one_arg_setter - call to ... - * packages/cairo/ext/rb_cairo.c, packages/cairo/ext/rb_cairo.h, - packages/cairo/ext/rb_cairo_context.c, - packages/cairo/ext/rb_cairo_font_options.c, - packages/cairo/ext/rb_cairo_glyph.c, - packages/cairo/ext/rb_cairo_matrix.c, - packages/cairo/ext/rb_cairo_pattern.c, - packages/cairo/ext/rb_cairo_surface.c: ... here. - -2006-10-15 Mathieu Blondel - - * packages/cairo/lib/cairo.rb (Cairo::Context#quad_to, - Cairo::Context#rel_quad_to): followed the current API: - get_point -> current_point. - -2006-07-11 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_constants.c: added a check whether - SVG surface is available or not. - -2006-07-01 Kouhei Sutou - - * NEWS: added 1.2.0 entry. - -2006-07-01 Kouhei Sutou - - * README: supported only 1.2.0 or higher. - * packages/cairo/ext/extconf.rb: ditto. - - * packages/cairo/ext/cairo.def: added - rb_cairo_svg_version_from_ruby_object(). - - * packages/cairo/ext/rb_cairo.c (Init_cairo): initialize constants - before other modules. - - * packages/cairo/ext/rb_cairo.h: - - include all available header files. - - supported cairo_svg_version_t. - - * packages/cairo/ext/rb_cairo_constants.c: supported - cairo_svg_surface_t. - - * packages/cairo/ext/rb_cairo_surface.c: supported missing - functions in cairo-ps.h, cairo-pdf.h and cairo-svg.h. - - * packages/cairo/lib/cairo.rb - (Cairo::SVGSurface.versions_as_string): added convenience method. - -2006-06-27 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_surface.c: use cairo_surface_type_t - for Ruby <-> C surface conversion. - - * packages/cairo/ext/rb_cairo_context.c (cr_push_group): changed - default arguments handling to - push_group(content=nil, pop_to_source=true) - from - push_group(content=nil, pop_to_source=false) - - * packages/cairo/ext/rb_cairo.c: fixed Cairo::VERSION. - -2006-06-25 Kouhei Sutou - - * README, packages/cairo/ext/extconf.rb: supported only 1.1.10 or - higher. - - * packages/cairo/ext/rb_cairo_constants.c: supported - CAIRO_FORMAT_RGB16_565. - - * packages/cairo/ext/rb_cairo_surface.c: - - supported cairo_surface_get_content(), - cairo_surface_set_fallback_resolution(), - cairo_image_surface_get_data(), - cairo_image_surface_get_format() and - cairo_image_surface_get_stride(). - - removed cairo_ps_surface_set_dpi(), - cairo_pdf_surface_set_dpi() and cairo_svg_surface_set_dpi() - support. - - * samples/png.rb: added Cairo::ImageSurface#data sample. - -2006-06-01 Kouhei Sutou - - * samples/text2.rb: added an example that output PS/PDF/SVG for - input text. - -2006-05-31 Kouhei Sutou - - * README, packages/cairo/ext/extconf.rb: supported only 1.1.6 or - higher. - - * packages/cairo/ext/rb_cairo_context.c: supported - cairo_push_group(), cairo_push_group_with_content(), - cairo_pop_group(), cairo_pop_group_to_source() and - cairo_get_group_target(). - - * packages/cairo/ext/rb_cairo_exception.c: supported - CAIRO_STATUS_INVALID_DSC_COMMENT. - - * packages/cairo/ext/rb_cairo_surface.c: supported - cairo_surface_get_device_offset(). - -2006-05-11 Kouhei Sutou - - * packages/cairo/lib/cairo.rb: fixed typo. - -2006-05-02 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.c (Cairo::MINOR_VERSION): fixed - cairo_version() decoding bug. - - * README, packages/cairo/ext/extconf.rb: supported only 1.1.2 or - higher. - - * packages/cairo/ext/rb_cairo_surface.c: supported - cairo_surface_get_type(). - - * packages/cairo/ext/rb_cairo_scaled_font.c: supported - cairo_scaled_font_get_type(), cairo_scaled_font_text_extents(), - cairo_scaled_font_get_font_face(), - cairo_scaled_font_get_font_matrix(), - cairo_scaled_font_get_ctm() and - cairo_scaled_Font_get_font_options(). - - * packages/cairo/ext/rb_cairo_pattern.c: supported - cairo_pattern_get_type(). - - * packages/cairo/ext/rb_cairo_font_face.c: supported - cairo_font_face_get_type(). - - * packages/cairo/ext/rb_cairo_context.c: supported - cairo_new_sub_path() and cr_set_scaled_font(). - - * packages/cairo/ext/rb_cairo_constants.c: supported new enums. - - cairo_font_type_t - - cairo_surface_type_t - - cairo_pattern_type_t - - CAIRO_EXTEND_PAD - -2006-05-01 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_surface.c: supported - Cairo::SVGSurface. - - * samples/scalable.rb: - - created by merging ps.rb, ps2.rb, pdf.rb and pdf2.rb. - - added Cairo::SVGSurface example. - * samples/ps.rb, samples/ps2.rb, samples/pdf.rb, samples/pdf2.rb: - merged into scalable.rb. - - * samples/pac.rb, samples/pac2.rb: added Cairo::SVGSurface - example. - -2005-12-18 Kouhei Sutou - - * packages/cairo/lib/cairo.rb (Cairo::Context#rounded_rectangle): - processed h and height same as the one of - Cairo::Context#rectangle. - - * samples/pac1.rb, samples/pac2.rb: followed the above change. - -2005-10-18 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_surface.c: Not compile cr_closure - functions if PS/PDF surface isn't supported. - - * samples/pac.rb: Use Cairo::Context#fill_preserve. - * samples/pac2.rb: ditto. - -2005-10-17 Kouhei Sutou - - * packages/cairo/lib/cairo.rb - (Cairo::Context#rounded_rectangle, Cairo::Context#circle): - Added convenience methods. - - * samples/pac.rb: Port PDF::Writer sample. - * samples/pac2.rb: ditto. - - * packages/cairo/ext/rb_cairo_context.c: Fixed wrong number of - argument of Cairo::Context#identity_matrix. - -2005-10-16 Ilmari Heikkinen - - * packages/cairo/ext/rb_cairo_context.c (cr_get_font_options): - Fixed segmentation fault. Use cairo_font_options_create(). - * packages/cairo/ext/rb_cairo_surface.c - (cr_surface_get_font_options): ditto. - - * packages/cairo/ext/rb_cairo_constants.c: Fixed - typo. ANTIALIAS_NONO -> ANTIALIAS_NONE. - -2005-10-16 Kouhei Sutou - - * NEWS: Added release 1.0.0. - -2005-10-15 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: Use StringValuePtr - instead of STR2CSTR. - - * packages/cairo/ext/rb_cairo_surface.c: Supported PS/PDF surface. - * samples/ps.rb, samples/ps2.rb: Added PS surface sample. - * samples/pdf.rb, samples/pdf2.rb: Added PDF surface sample. - -2005-10-13 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_surface.c: Fixed a SEGV bug caused - by Ruby's GC. - (cr_image_surface_create_from_png_generic): Fixed a memory leak - bug. - - * packages/cairo/ext/rb_cairo_pattern.c: Added - Cairo::GradientPattern#add_color_stop_rgb and - Cairo::GradientPattern#add_color_stop for convenience. - -2005-10-12 Kouhei Sutou - - * samples/png.rb: Use Cairo::Context#set_source_rgb instead of - Cairo::Context#set_source. - - * packages/cairo/ext/rb_cairo_context.c (cr_set_source_rgb): - Re-implemented for backward compatibility. - - * samples/png.rb: Use Cairo::Context#set_source_rgba instead of - Cairo::Context#set_source. - - * packages/cairo/ext/rb_cairo_surface.c - (cr_image_surface_create_from_png_generic): Set class of the - surface. - - * packages/cairo/ext/rb_cairo_context.c (cr_set_source_generic): - Fixed wrong variable name. - -2005-10-11 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: Provided - Cairo::Context#set_soruce_rgba. - (cr_arc_negative, cr_arc): cx -> xc and cy -> yc. - - * packages/cairo/ext: Extracted Ruby object -> enum type codes. - - * packages/cairo/ext/rb_cairo_pattern.c - (cr_gradient_pattern_add_color_stop_rgba): Renamed from - cr_gradient_pattern_add_color_stop. - -2005-10-10 ?yvind Kol?s - - * packages/cairo/ext/rb_cairo_pattern.c: - (cr_gradient_pattern_add_color_stop): Make the code work when not - passing the color as an array as well. - -2005-10-11 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.c: Added cairo version info. - - * packages/cairo/lib/cairo.rb: Added bindings version info as - 1.0.0-beta. - - * samples/canvas: Removed. - - * packages/cairo/ext/: Added CVS keywords. - - * packages/cairo/ext/rb_cairo_context.c: Renamed 'xform'. - * packages/cairo/ext/rb_cairo_font_face.c: ditto. - * packages/cairo/ext/rb_cairo_glyph.c: ditto. - * packages/cairo/ext/rb_cairo_matrix.c: ditto. - - * packages/cairo/ext/rb_cairo_private.c: Changed prefix to - 'rb_cairo__' from 'cr__'. - * packages/cairo/ext/rb_cairo_matrix.c: ditto. - * packages/cairo/ext/rb_cairo_context.c: ditto. - * packages/cairo/ext/rb_cairo_private.h: ditto. - - * packages/cairo/ext/rb_cairo_glyph.c: - - Use Cairo::Glyph#initialize instead of Cairo::Glyph.new. - - Added Cairo::Glyph#to_s. - - * packages/cairo/ext/rb_cairo_font_extents.c: - - Removed Cairo::FontExtents.new. - - Added Cairo::FontExtents#to_s. - - * packages/cairo/ext/rb_cairo_text_extents.c: - - Removed Cairo::TextExtents.new. - - Added Cairo::TextExtents#to_s. - -2005-10-10 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_constants.c: Supported all constants. - - * packages/cairo/ext/rb_cairo_matrix.c: Added a utility method. - - * packages/cairo/lib/cairo.rb: Remove deprecated API. - - * packages/cairo/ext/rb_cairo_matrix.c: Tidied cairo_matrix_t. - * packages/cairo/lib/cairo.rb: ditto. - -2005-10-09 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c, - packages/cairo/ext/rb_cairo_matrix.c: Moved duplicated - functions to ... - * packages/cairo/ext/rb_cairo_private.h: ... here. - * packages/cairo/ext/rb_cairo_private.c: ditto. - - * packages/cairo/ext/rb_cairo_scaled_font.c: Implemented - cairo_scaled_font_t. - * packages/cairo/ext/cairo.def: ditto. - * packages/cairo/ext/rb_cairo.c: ditto. - * packages/cairo/ext/rb_cairo.h: ditto. - - * packages/cairo/lib/cairo.rb: Removed deprecated wrapper API. - - * packages/cairo/ext/rb_cairo_surface.c: - - Implemented File I/O API by Ruby. - - SurfaceXXX -> XXXSurface. - - * packages/cairo/ext/rb_cairo_exception.c: Tidied exceptions. - * packages/cairo/ext/cairo.def: ditto. - * packages/cairo/ext/rb_cairo.h: ditto. - * packages/cairo/ext/rb_cairo_context.c: ditto. - * packages/cairo/ext/rb_cairo_font_options.c: ditto. - * packages/cairo/ext/rb_cairo_matrix.c: ditto. - * packages/cairo/ext/rb_cairo_pattern.c: ditto. - * packages/cairo/ext/rb_cairo_surface.c: ditto. - - * packages/cairo/ext/rb_cairo_pattern.c: Implemented - cairo_pattern_t. - * packages/cairo/ext/rb_cairo.c: ditto. - * packages/cairo/ext/rb_cairo.h: ditto. - * packages/cairo/ext/cairo.def: ditto. - * packages/cairo/lib/cairo.rb: ditto. - * packages/cairo/ext/rb_cairo_context.c: Followed the avobe changes. - - * packages/cairo/ext/rb_cairo_surface.c - (cr_surface_write_to_png): Don't use rb_need_block() for ruby <= - 1.8.2. - -2005-10-08 Kouhei Sutou - - * packages/cairo/ext/rb_cairo_context.c: Supported all API for - cairo_t. - * samples/png.rb: Followed the avobe changes. - - * packages/cairo/ext/rb_cairo_path.c: Implemented cairo_path_t. - * packages/cairo/ext/rb_cairo.c: ditto. - * packages/cairo/ext/rb_cairo.h: ditto. - * packages/cairo/ext/cairo.def: ditto. - - * packages/cairo/ext/rb_cairo_font_options.c: Fixed a typo. - - * setup.rb: Added workaround for an error on Win32 platform. - Patch from Masao Mutoh . Thanks! - - * packages/cairo/ext/rb_cairo_font_options.c: Implemented - cairo_font_options_t. - * packages/cairo/ext/rb_cairo_surface.c: ditto. - * packages/cairo/ext/rb_cairo.c: ditto. - * packages/cairo/ext/rb_cairo.h: ditto. - * packages/cairo/ext/cairo.def: ditto. - * packages/cairo/lib/cairo.rb: ditto. - -2005-10-07 Kouhei Sutou - - * packages/cairo/ext: Added c-mode style configuration header for - Emacs. - - * samples/png.rb: Use Cairo::SurfaceImage instead of - Cairo::Surface. - - * packages/cairo/ext/rb_cairo_surface.c: Implemented - cairo_surface_t. - - * packages/cairo/ext/rb_cairo_exception.c: Sorted "case" in the - order of declaration cairo_status_t in cairo.h. - -2005-10-06 Kouhei Sutou - - * packages/cairo/ext/extconf.rb: Fixed Win32 platform problem. - Patch from Masao Mutoh . Thanks! - -2005-10-04 Kouhei Sutou - - * packages/cairo/ext/rb_cairo.h: Support Win32 platform. - - * packages/cairo/ext/extconf.rb: ditto. - - * packages/cairo/ext/cairo.def: Added. - - * packages/cairo/ext/pkg-config.rb: Added. This file is from - Ruby/GLib. - -2005-10-01 Kouhei Sutou - - * setup.rb: update to 3.4.0. - -2005-09-30 Kouhei Sutou - - * packages/cairo/lib/cairo.rb: change indentation style to - style of ruby-mode.el. - - * README: update dependencies. - - * packages/gtkcairo, packages/svgcairo: remove. - - * setup.rb: update to 3.3.1. - -2005-09-29 Kouhei Sutou - - * packages/cairo/ext/extconf.rb: check modversion. - * packages/svgcairo/ext/extconf.rb: ditto. - -2005-09-13 ?yvind Kol?s - - Patch from Kouhei Sutou - - * packages/cairo/ext: - - add (or rename) internal (static) functions to 'cr_XXX' prefix. - - XXX_v -> rb_XXX - - get_XXX -> XXX - - remove needless RUBY_METHOD_FUNC cast. - - call rb_obj_call_init() in new method. - - * packages/cairo/ext/rb_cairo_font_face.c - (rb_cairo_font_extents, rb_cairo_font_glyph_extents): - move to ... - - * packages/cairo/ext/rb_cairo_context.c: - - ... here. - - add some status checks. - - * packages/cairo/ext/rb_cairo_context.c, - packages/cairo/ext/rb_cairo.h: - - rb_cairo_{from,to}_ruby_object -> - rb_cairo_context_{from,to}_ruby_object - - * packages/cairo/lib/cairo.rb: auto-generate XXX=. - (Cairo::Context#save: move to the C-side. - -2005-09-10 ?yvind Kol?s - - * AUTHORS: added Kouhei Sutou - -2005-09-10 ?yvind Kol?s - - Patch from Kouhei Sutou . - - Hiding free functions, cleanup of ruby <-> C conversion functions. - - - rename ruby <-> C convert functions name. - ruby -> C: rb_cairo_XXX_from_ruby_object(). - C -> ruby: rb_cairo_XXX_to_ruby_object(). - - - provide ruby <-> C convert macros. - ruby -> C: RVAL2CRXXX() - C -> ruby: CRXXX2RVAL() - - - _SELF use RVAL2CRXXX() - - rb_cairo_XXX_from_ruby_object() uses rb_obj_is_kind_of() - instead of 'CLASS_OF() !=3D rb_cCairo_XXX'. - - add 'static' or remove free functions. - -2005-09-09 ?yvind Kol?s - - Missed a couple of files when applying the previous patch. - - * packages/cairo/ext/rb_cairo_font_extents.h: removed. - * packages/cairo/ext/post-install.rb: added. - -2005-09-09 ?yvind Kol?s - - Header cleanup patch from Kouhei Sutou . - - * packages/cairo/ext/rb_cairo_*.h: removed. The - contents of packages/cairo/ext/rb_cairo_*.h are moved to - packages/cairo/ext/rb_cairo.h. - * packages/cairo/ext/rb_cairo_*.c: include rb_cairo.h instead of - rb_cairo_*.h, Init_*() declarations are moved ... - * packages/cairo/ext/rb_cairo.c: ... here. - -2005-09-08 ?yvind Kol?s - - Integrated patch from Kouhei Sutou . - - * packages/cairo/ext/rb_cairo_exception.h: - * packages/cairo/ext/rb_cairo_exception.c: - (rb_cairo_raise_exception), - (Init_cairo_exception): Added new error types, made exception - retrieve the status string itself. - * packages/cairo/ext/rb_cairo_context.c: - (check_context_status): Simplified exception raising. - * packages/cairo/ext/rb_cairo_matrix.c: - (rb_cairo_matrix_copy): create a new matrix when copying. - (rb_cairo_matrix_invert): do status checking. - (Init_cairo_matrix): register invert! method. - -2005-06-23 ?yvind Kol?s - - API shakeup, watch out for falling parts. - - * packages/cairo/ext/*.c: large changes, and regressions. - * packages/cairo/ext/rb_cairo_font.[ch]: removed - * packages/cairo/ext/rb_cairo_font_face.[ch]: added - * packages/cairo/lib/cairo.rb: - * samples/*.rb: removed - * samples/png.rb: initial test case for new API. - * README: fixed spelling error. - * AUTHORS: added Ilmari Heikkinen. - -2005-03-21 ?yvind Kol?s - - * packages/cairo/ext/rb_cairo_context.c: Rename methods to eliminate - abbreviations (following changes in cairo.h): - cairo_concat_matrix -> cairo_transform - cairo_transform_point -> cairo_user_to_device - cairo_transform_distance -> cairo_user_to_device_distance - cairo_inverse_transform_point -> cairo_device_to_user - cairo_inverse_transform_distance-> cairo_device_to_user_distance - cairo_init_clip -> cairo_reset_clip - - -2005-03-20 ?yvind Kol?s - - * README: reworked, borrowing ideas and style from pycairo README. - * COPYING, - * GPL, - * AUTHORS: added. - - -2005-03-17 ?yvind Kol?s - - * packages/cairo/ext/rb_cairo_exception.c: added WriteError and - SurfaceFinishedError. - * packages/cairo/ext/rb_cairo_surface.c: - added finish method. - fixed typo in define, that mistook define for PDF as PS. - * packages/cairo/ext/rb_cairo_*: - search and replace to use rb_cairo_exception_raise instead - of cairo_raise_exception - * samples/pdf.rb: removed - * samples/pdf-a4_grid.rb: added - - -2005-03-15 ?yvind Kol?s - - * packages/cairo/ext/rb_cairo_context.c: - * packages/cairo/lib/cairo.rb: Following API shakeup in cairo, - s/cairo_current_foo/cairo_get_foo/ . - - -2005-02-15 ?yvind Kol?s - - * packages/cairo/ext/rb_cairo.c: added initialization of pattern. - * packages/cairo/ext/rb_cairo_constants.c: added filter and extend - enums. - * packages/cairo/ext/rb_cairo_context.c: added pattern setting and - getting, rewrote current_matrix to use rb_cairo_matrix_wrap. - * packages/cairo/ext/rb_cairo_matrix.c: convenience function to - wrap a cairo_matrix_t. - * packages/cairo/ext/rb_cairo_pattern.c: added implementation for - surface and linear/radial gradients. - * packages/cairo/lib/cairo.rb: syntactic sugar for initializing - gradient patterns with blocks. - * samples/gradients.rb: sample showing the syntax of gradients. - - -2005-02-10 ?yvind Kol?s - - * packages/cairo/lib/cairo.rb: added optional 'handler' parameters to - Context::current_path and Context#current_path_flat. - patch from - -2005-02-10 ?yvind Kol?s - - * packages/cairo/lib/cairo.rb: made save_internal private, - patch from - -2005-02-10 ?yvind Kol?s - - * packages/svgcairo/ext/rb_svgcairo.c: added error handling. - usage of a port for passing FILE stream to the parser. - * packages/svgcairo/ext/extconf.rb: added -W to the compile flags. - -2005-02-10 ?yvind Kol?s - - * packages/svgcairo/ext: added initial binding for libsvg-cairo, - without error checking, and good integration with the ruby file - handling. - -005-02-09 ?yvind Kol?s - - * packages/cairo/lib/cairo.rb: Fixed naming of Transform class to be - Matrix. - -2005-02-09 ?yvind Kol?s - - * packages/cairo/lib/cairo.rb: Added the ability for save to - take a block. - -2005-02-07 ?yvind Kol?s - - * splitted into seperate files for classes - * made use of _SELF macro for more direct access - * unified under a rb_ namespace - * added font handling and extents - -2005-02-06 ?yvind Kol?s - - * imported mental guys ruby binding to my local tree - * added ps and pdf surfaces - * reindented according to GNU coding style - * made stroke, fill, in_stroke, in_fill, fill_extents and - stroke_extents accept blocks that define the path, in spirit - of the previous binding. - * added show_text, text_path, select_font, scale_font and - transform_font - * made to work with gtkcairo - - -2005-02-06 ?yvind Kol?s - - * packages/cairo/cairo.c: add new headers - * packages/cairo/gen-Cairo.c: remove unneeded hack to force - unit size on newly set font. - -2004-11-19 ?yvind Kol?s - - * packages/canvas/lib/canvas.rb Labal.width: access extents by atom - instead of string. - -2004-11-19 ?yvind Kol?s - - * packages/cairo/ext/*.[ch]: reformatted code. - * packages/gtkcairo/ext/*.[ch]: reformatted code. From null+rcairo at clear-code.com Thu Aug 26 05:33:32 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 09:33:32 +0000 Subject: [cairo-commit:00006] rcairo/rcairo [master] use RDoc format. Message-ID: <20100826093343.CCA3917051A@taiyaki.ru> Kouhei Sutou 2010-08-26 09:33:32 +0000 (Thu, 26 Aug 2010) New Revision: 90a77eae127b8d34a4a4de9b7fc8711a4a46f9f6 Log: use RDoc format. Modified files: README Modified: README (+74 -57) =================================================================== --- README 2010-08-26 08:02:13 +0000 (89ebca6) +++ README 2010-08-26 09:33:32 +0000 (e3fb594) @@ -1,84 +1,101 @@ += README + +== Name + rcairo -====== + +== Description Ruby bindings for cairo // cairo extension for Ruby http://cairographics.org/ +== Dependencies + +* ruby >= 1.8 (1.9.2 also supported!) +* cairo >= 1.2.0 (1.8.10 also supported!) + +== Install + +=== Package + +This way is recommended. + + # gem install cairo -Dependencies ------------- +=== Self build -ruby >= 1.8 -cairo >= 1.2.0 +For experimental users. -Compiling ---------- +Download rcairo-X.Y.Z.tar.gz from http://cairographics.org/releases/ -% ruby extconf.rb # to check for dependencies and create Makefiles -% make # to compile +Extracting: + % tar xvzf rcairo-X.Y.Z.tar.gz -# make install # to install the cairo extension. - # The samples in the samples folder should be able - # to run before installation except text-on-path.rb - # and text2.rb. They uses Ruby/Pango with rcairo - # support. So you need to install rcairo and build - # Ruby/Pango with it before you run them. +Compiling: + % cd rcairo-X.Y.Z + % ruby extconf.rb # to check for dependencies and create Makefiles + % make # to compile + # make install # to install the cairo extension. + # The samples in the samples folder should be able + # to run before installation except text-on-path.rb + # and text2.rb. They uses Ruby/Pango with rcairo + # support. So you need to install rcairo and build + # Ruby/Pango with it before you run them. -Windows -------- +== 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 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 + * 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 ---------- +== Documents - * Reference manual: - http://cairo.rubyforge.org/doc/ +* Reference manual: + http://cairo.rubyforge.org/doc/ +* Repository of the reference manual: + http://github.com/rcairo/doc +* An article for rcairo on Rubyst Magazine a.k.a. RubiMa (in Japanese): + http://jp.rubyist.net/magazine/?0019-cairo - Repository of the reference manual: - http://www.cozmixng.org/repos/rcairo-doc/ +== Source - * An article for rcairo on Rubyst Magazine a.k.a. RubiMa (in Japanese): - http://jp.rubyist.net/magazine/?0019-cairo +There is the rcairo repository at GitHub: +http://github.com/rcairo/rcairo -Mailing list ------------- +== Mailing list If you have trouble with cairo or rcairo, or you have some ideas for how it could be improved, please feel free to send a message to the cairo mailinglist at cairo at cairographics.org , which is archived at - http://cairographics.org/cgi-bin/mailman/listinfo/cairo - -Thanks ------- - - * Yoshinao Muramatsu: win32 surface support patch. - * NANKI Haruo: some bug fix patches. - * Paul van Tilburg: - - some patches that support ruby 1.9. - - some suggestions. - * Binzo: some bug reports and fixed that. - * kimura wataru: - - some advices for RubyCocoa. - - reports a bug. - * OBATA Akio: - - reports a bug. - - some suggestions. - * James Healy: reports bugs. - * Carsten Bormann: A suggestion. - * Davide Rambaldi: A suggestion. - * Yusuke ENDOH: reports a bug. - * Yuta Taniguchi: a bug fix patch. - * kimura wataru: reports a bug. +http://cairographics.org/cgi-bin/mailman/listinfo/cairo + +== Thanks + +* Yoshinao Muramatsu: win32 surface support patch. +* NANKI Haruo: some bug fix patches. +* Paul van Tilburg: + * some patches that support ruby 1.9. + * some suggestions. +* Binzo: some bug reports and fixed that. +* kimura wataru: + * some advices for RubyCocoa. + * reports a bug. +* OBATA Akio: + * reports a bug. + * some suggestions. +* James Healy: reports bugs. +* Carsten Bormann: A suggestion. +* Davide Rambaldi: A suggestion. +* Yusuke ENDOH: reports a bug. +* Yuta Taniguchi: a bug fix patch. +* kimura wataru: reports a bug. From null+rcairo at clear-code.com Thu Aug 26 05:34:27 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 09:34:27 +0000 Subject: [cairo-commit:00007] rcairo/rcairo [master] add .rdoc suffix. Message-ID: <20100826093439.E5C6417051A@taiyaki.ru> Kouhei Sutou 2010-08-26 09:34:27 +0000 (Thu, 26 Aug 2010) New Revision: 3d6d7cb8b812010dbc037e25df45f525bbe9ab3c Log: add .rdoc suffix. Renamed files: README.rdoc (from README) Renamed: README.rdoc (+0 -0) 100% =================================================================== From null+rcairo at clear-code.com Thu Aug 26 05:45:04 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 09:45:04 +0000 Subject: [cairo-commit:00008] rcairo/rcairo [master] add 1.8.2 release entry. Message-ID: <20100826094542.5781F17051A@taiyaki.ru> Kouhei Sutou 2010-08-26 09:45:04 +0000 (Thu, 26 Aug 2010) New Revision: 38daff39ea8962a2e6b84a312461352bea2ee3a1 Log: add 1.8.2 release entry. Modified files: NEWS Modified: NEWS (+16 -0) =================================================================== --- NEWS 2010-08-26 09:34:27 +0000 (958d0ca) +++ NEWS 2010-08-26 09:45:04 +0000 (cef00eb) @@ -1,3 +1,19 @@ +Release 1.8.2 (2010-08-26) Kouhei Sutou ) +=========================================================== + +Features +-------- + * Support cairo 1.8.10. + * Support Ruby 1.9.2. (reported by Tasuku SUENAGA and kimura wataru) + * Fix RGV -> HSV conversion. (patch by Yuta Taniguchi) + * Support Cairo::Color as Hash key. + +Thanks +------ + * Yuta Taniguchi + * Tasuku SUENAGA + * kimura wataru + Release 1.8.1 (2009-12-13) Kouhei Sutou ) =========================================================== From null+rcairo at clear-code.com Thu Aug 26 05:45:29 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 09:45:29 +0000 Subject: [cairo-commit:00009] rcairo/rcairo [master] ignore distributed files. Message-ID: <20100826094542.6B47A170ED1@taiyaki.ru> Kouhei Sutou 2010-08-26 09:45:29 +0000 (Thu, 26 Aug 2010) New Revision: 2439ee00355255577bd3ba4f868d9f1227313f56 Log: ignore distributed files. Modified files: .gitignore Modified: .gitignore (+2 -0) =================================================================== --- .gitignore 2010-08-26 09:45:04 +0000 (9c3e0c4) +++ .gitignore 2010-08-26 09:45:29 +0000 (f829de6) @@ -2,3 +2,5 @@ /mkmf.log *.so *.o +/doc/ +/rcairo-*.tar.gz* From null+rcairo at clear-code.com Thu Aug 26 05:56:57 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 09:56:57 +0000 Subject: [cairo-commit:00010] rcairo/rcairo [master] use git instead of CVS. Message-ID: <20100826095707.062DC17051A@taiyaki.ru> Kouhei Sutou 2010-08-26 09:56:57 +0000 (Thu, 26 Aug 2010) New Revision: 732bfa34145f1acabd6f629289441606bf0b2964 Log: use git instead of CVS. Modified files: dist.sh Modified: dist.sh (+6 -2) =================================================================== --- dist.sh 2010-08-26 09:45:29 +0000 (22da2ef) +++ dist.sh 2010-08-26 09:56:57 +0000 (b2030fc) @@ -15,9 +15,13 @@ base=rcairo-$VERSION tgz=$base.tar.gz -cvs tag $TAG +git tag -a $TAG -m "release ${VERSION}!!!" +git push --tags mkdir -p tmp -cvs export -r $TAG -d tmp/$base rcairo +git clone git at github.com:rcairo/rcairo.git tmp/$base +cd tmp/$base +git checkout $TAG +cd .. cp -rp doc tmp/$base/ tar cvfz $tgz -C tmp $base md5sum $tgz > $tgz.md5 From null+rcairo at clear-code.com Thu Aug 26 07:17:54 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 11:17:54 +0000 Subject: [cairo-commit:00011] rcairo/rcairo [master] use rake-compiler. Message-ID: <20100826113452.9EC8817051A@taiyaki.ru> Kouhei Sutou 2010-08-26 11:17:54 +0000 (Thu, 26 Aug 2010) New Revision: 167b2a7e1e6399fd880e590a3d558a347f78524f Log: use rake-compiler. Added files: ext/cairo/extconf.rb Removed files: extconf.rb src/.cvsignore Modified files: .gitignore Rakefile test/run-test.rb Renamed files: ext/cairo/cairo.def (from src/cairo.def) ext/cairo/depend (from src/depend) ext/cairo/rb_cairo.c (from src/rb_cairo.c) ext/cairo/rb_cairo.h (from src/rb_cairo.h) ext/cairo/rb_cairo_constants.c (from src/rb_cairo_constants.c) ext/cairo/rb_cairo_context.c (from src/rb_cairo_context.c) ext/cairo/rb_cairo_exception.c (from src/rb_cairo_exception.c) ext/cairo/rb_cairo_font_extents.c (from src/rb_cairo_font_extents.c) ext/cairo/rb_cairo_font_face.c (from src/rb_cairo_font_face.c) ext/cairo/rb_cairo_font_options.c (from src/rb_cairo_font_options.c) ext/cairo/rb_cairo_glyph.c (from src/rb_cairo_glyph.c) ext/cairo/rb_cairo_matrix.c (from src/rb_cairo_matrix.c) ext/cairo/rb_cairo_path.c (from src/rb_cairo_path.c) ext/cairo/rb_cairo_pattern.c (from src/rb_cairo_pattern.c) ext/cairo/rb_cairo_private.c (from src/rb_cairo_private.c) ext/cairo/rb_cairo_private.h (from src/rb_cairo_private.h) ext/cairo/rb_cairo_scaled_font.c (from src/rb_cairo_scaled_font.c) ext/cairo/rb_cairo_surface.c (from src/rb_cairo_surface.c) ext/cairo/rb_cairo_text_cluster.c (from src/rb_cairo_text_cluster.c) ext/cairo/rb_cairo_text_extents.c (from src/rb_cairo_text_extents.c) lib/cairo.rb (from src/lib/cairo.rb) lib/cairo/color.rb (from src/lib/cairo/color.rb) lib/cairo/colors.rb (from src/lib/cairo/colors.rb) lib/cairo/constants.rb (from src/lib/cairo/constants.rb) lib/cairo/context.rb (from src/lib/cairo/context.rb) lib/cairo/context/blur.rb (from src/lib/cairo/context/blur.rb) lib/cairo/context/circle.rb (from src/lib/cairo/context/circle.rb) lib/cairo/context/color.rb (from src/lib/cairo/context/color.rb) lib/cairo/context/path.rb (from src/lib/cairo/context/path.rb) lib/cairo/context/rectangle.rb (from src/lib/cairo/context/rectangle.rb) lib/cairo/context/triangle.rb (from src/lib/cairo/context/triangle.rb) lib/cairo/paper.rb (from src/lib/cairo/paper.rb) lib/cairo/papers.rb (from src/lib/cairo/papers.rb) lib/cairo/path.rb (from src/lib/cairo/path.rb) lib/cairo/point.rb (from src/lib/cairo/point.rb) Modified: .gitignore (+3 -2) =================================================================== --- .gitignore 2010-08-26 09:56:57 +0000 (f829de6) +++ .gitignore 2010-08-26 11:17:54 +0000 (3d1cb46) @@ -1,6 +1,7 @@ -/Makefile -/mkmf.log +/ext/cairo/Makefile +/ext/cairo/mkmf.log *.so *.o /doc/ /rcairo-*.tar.gz* +/test/.test-result/ Modified: Rakefile (+7 -4) =================================================================== --- Rakefile 2010-08-26 09:56:57 +0000 (b95be74) +++ Rakefile 2010-08-26 11:17:54 +0000 (fa72fd5) @@ -6,6 +6,7 @@ require 'find' require 'fileutils' require 'rubygems' require 'hoe' +require 'rake/extensiontask' base_dir = File.join(File.dirname(__FILE__)) truncate_base_dir = Proc.new do |x| @@ -77,7 +78,7 @@ project = Hoe.spec('cairo') do |project| project.test_globs = [] project.spec_extras = { :extensions => ['extconf.rb'], - :require_paths => ['src/lib', 'src'], + :require_paths => ['lib', 'ext/cairo'], :has_rdoc => false, } platform = ENV["FORCE_PLATFORM"] @@ -91,10 +92,12 @@ end project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"} -if /mswin32/ =~ project.spec.platform.to_s - project.spec.extensions = [] - project.spec.files += ["src/cairo.so", "src/libruby-cairo.a"] +Rake::ExtensionTask.new("cairo", project.spec) do |ext| + ext.cross_compile = true + ext.cross_platform = 'x86-mingw32' +end +if /mswin32/ =~ project.spec.platform.to_s FileUtils.cp_r(File.expand_path("~/.wine/drive_c/cairo-dev"), cairo_win32_dir) cairo_files = [] Renamed: ext/cairo/cairo.def (+0 -0) 100% =================================================================== Renamed: ext/cairo/depend (+0 -0) 100% =================================================================== Added: ext/cairo/extconf.rb (+91 -0) 100755 =================================================================== --- /dev/null +++ ext/cairo/extconf.rb 2010-08-26 11:17:54 +0000 (9716b0b) @@ -0,0 +1,91 @@ +#!/usr/bin/env ruby +# vim: filetype=ruby:expandtab:shiftwidth=2:tabstop=8:softtabstop=2 : + +base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) +$LOAD_PATH.unshift(base_dir) + +require 'English' +require 'mkmf' +require 'pkg-config' +require 'fileutils' + +# from mkmf-gnome2.rb +STDOUT.print("checking for GCC... ") +STDOUT.flush +if macro_defined?("__GNUC__", "") + STDOUT.print "yes\n" + $CFLAGS += ' -Wall' + $cc_is_gcc = true +else + STDOUT.print "no\n" + $cc_is_gcc = false +end + +def check_win32 + checking_for("Win32 OS") do + win32_os = /cygwin|mingw|mswin32/ =~ RUBY_PLATFORM + if win32_os + $defs << "-DRUBY_CAIRO_PLATFORM_WIN32" + if $cc_is_gcc + if /^2\./ =~ `#{Config::CONFIG['CC']} -dumpversion`.chomp + $CFLAGS += ' -fnative-struct' + else + $CFLAGS += ' -mms-bitfields' + end + end + end + win32_os + end +end + +def set_output_lib(target_name, directory=nil) + case RUBY_PLATFORM + when /cygwin|mingw/ + filename = File.join(*([directory, "libruby-#{target_name}.a"].compact)) + if RUBY_VERSION > "1.8.0" + $DLDFLAGS << ",--out-implib=#{filename}" + elsif RUBY_VERSION > "1.8" + $DLDFLAGS.gsub!(/ -Wl,--out-implib=[^ ]+/, '') + $DLDFLAGS << " -Wl,--out-implib=#{filename}" + else + $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') + $DLDFLAGS << " --output-lib #{filename}" + end + $cleanfiles << filename + when /mswin32/ + $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') + $DLDFLAGS.gsub!(/ \/IMPLIB:[^ ]+/, '') + $DLDFLAGS << " /IMPLIB:$(IMPLIB)" + when /darwin/ + if have_macro("CAIRO_HAS_QUARTZ_SURFACE", ["cairo.h"]) + checking_for("RubyCocoa") do + begin + require 'osx/cocoa' + $defs << "-DHAVE_RUBY_COCOA" + $DLDFLAGS << " -Wl,-framework,RubyCocoa" + true + rescue LoadError + false + end + end + end + end +end + + +pkg = "cairo" +module_name = "cairo" +major, minor, micro = 1, 2, 0 + +PKGConfig.have_package(pkg, major, minor, micro) or exit 1 + +have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") +have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") +have_func("rb_errinfo", "ruby.h") +have_type("enum ruby_value_type", "ruby.h") + +check_win32 +target_name = File.basename(module_name) +set_output_lib(target_name) +$defs << "-DRB_CAIRO_COMPILATION" +create_makefile(module_name) Renamed: ext/cairo/rb_cairo.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo.h (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_constants.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_context.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_exception.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_font_extents.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_font_face.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_font_options.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_glyph.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_matrix.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_path.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_pattern.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_private.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_private.h (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_scaled_font.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_surface.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_text_cluster.c (+0 -0) 100% =================================================================== Renamed: ext/cairo/rb_cairo_text_extents.c (+0 -0) 100% =================================================================== Deleted: extconf.rb (+0 -159) 100755 =================================================================== --- extconf.rb 2010-08-26 09:56:57 +0000 (f178191) +++ /dev/null @@ -1,159 +0,0 @@ -#!/usr/bin/env ruby -# vim: filetype=ruby:expandtab:shiftwidth=2:tabstop=8:softtabstop=2 : - -$LOAD_PATH.unshift(File.dirname(__FILE__)) - -require 'English' -require 'mkmf' -require 'pkg-config' -require 'fileutils' - -# from mkmf-gnome2.rb -STDOUT.print("checking for GCC... ") -STDOUT.flush -if macro_defined?("__GNUC__", "") - STDOUT.print "yes\n" - $CFLAGS += ' -Wall' - $cc_is_gcc = true -else - STDOUT.print "no\n" - $cc_is_gcc = false -end - -def check_win32 - checking_for("Win32 OS") do - win32_os = /cygwin|mingw|mswin32/ =~ RUBY_PLATFORM - if win32_os - $defs << "-DRUBY_CAIRO_PLATFORM_WIN32" - if $cc_is_gcc - if /^2\./ =~ `#{Config::CONFIG['CC']} -dumpversion`.chomp - $CFLAGS += ' -fnative-struct' - else - $CFLAGS += ' -mms-bitfields' - end - end - end - win32_os - end -end - -def set_output_lib(target_name, directory=nil) - case RUBY_PLATFORM - when /cygwin|mingw/ - filename = File.join(*([directory, "libruby-#{target_name}.a"].compact)) - if RUBY_VERSION > "1.8.0" - $DLDFLAGS << ",--out-implib=#{filename}" - elsif RUBY_VERSION > "1.8" - $DLDFLAGS.gsub!(/ -Wl,--out-implib=[^ ]+/, '') - $DLDFLAGS << " -Wl,--out-implib=#{filename}" - else - $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') - $DLDFLAGS << " --output-lib #{filename}" - end - $cleanfiles << filename - when /mswin32/ - $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') - $DLDFLAGS.gsub!(/ \/IMPLIB:[^ ]+/, '') - $DLDFLAGS << " /IMPLIB:$(IMPLIB)" - when /darwin/ - if have_macro("CAIRO_HAS_QUARTZ_SURFACE", ["cairo.h"]) - checking_for("RubyCocoa") do - begin - require 'osx/cocoa' - $defs << "-DHAVE_RUBY_COCOA" - $DLDFLAGS << " -Wl,-framework,RubyCocoa" - true - rescue LoadError - false - end - end - end - end -end - - -pkg = "cairo" -modname = "cairo" -ext_dir_name = "src" -srcdir = File.join(File.expand_path(File.dirname(__FILE__)), ext_dir_name) -major, minor, micro = 1, 2, 0 - -PKGConfig.have_package(pkg, major, minor, micro) or exit 1 - -have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") -have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") -have_func("rb_errinfo", "ruby.h") -have_type("enum ruby_value_type", "ruby.h") - -check_win32 -target_name = File.basename(modname) -set_output_lib(target_name, ext_dir_name) -$defs << "-DRB_CAIRO_COMPILATION" -create_makefile(modname, srcdir) - -wine = with_config("wine", false) - -makefile = File.read("Makefile") -File.open("Makefile", "w") do |f| - objs = [] - co = nil - dllib = nil - makefile.each_line do |line| - if wine - line.gsub!(/\s+gcc\b/, " i586-mingw32msvc-gcc") - line.gsub!(/C:/, "$(HOME)/.wine/drive_c") - line.gsub!(/Z:/, "") - end - - case line - when /^DLLIB\s*=\s*/ - dllib = $POSTMATCH.chomp - f.puts("DLLIB = #{ext_dir_name}/#{dllib}") - f.puts("IMPLIB = #{ext_dir_name}/libruby-#{dllib.gsub(/\..+?$/, '.lib')}") - when /(\$\(RUBYARCHDIR\)\/)\$\(DLLIB\)/ - f.puts("#{$PREMATCH}#{$1}#{dllib}#{$POSTMATCH}") - when /^(SRCS)\s*=\s*/ - name = $1 - vars = $POSTMATCH.split.collect {|var| "$(srcdir)/#{var}"}.join(" ") - f.puts("#{name} = #{vars}") - when /^(OBJS|CLEANLIBS|CLEANOBJS)\s*=\s*/ - name = $1 - vars = $POSTMATCH.split.collect {|var| "#{ext_dir_name}/#{var}"} - objs = vars if name == "OBJS" - vars = vars.join(" ") - f.puts("#{name} = #{vars}") - when /^LDSHARED\s*=/ - def_file = "#{ext_dir_name}/#{target_name}.def" - line.gsub!(/\b-shared\b/, "-shared #{def_file}") if wine - f.puts(line) - when /^\t\$\(CC\)/ - if PKGConfig.msvc? - output_option = "-Fo" - else - output_option = "-o" - end - unless /#{Regexp.escape(output_option)}/ =~ line - line = "#{line.chomp} #{output_option}$@" - end - co = line - f.puts(line) - else - f.puts(line) - end - end - - if co and !objs.empty? - f.puts - if PKGConfig.msvc? - f.puts "{$(srcdir)}.c{#{ext_dir_name}}.obj:" - f.puts co - else - objs.each do |obj| - f.puts "#{obj}: $(srcdir)/#{File.basename(obj).sub(/\..+?$/, '.c')}" - f.puts co - end - end - end -end - -FileUtils.mkdir_p(ext_dir_name) Renamed: lib/cairo.rb (+6 -1) 95% =================================================================== --- src/lib/cairo.rb 2010-08-26 09:56:57 +0000 (3385ca2) +++ lib/cairo.rb 2010-08-26 11:17:54 +0000 (7b5bb41) @@ -39,7 +39,12 @@ end require 'cairo/color' require 'cairo/paper' -require 'cairo.so' +begin + major, minor, micro, = RUBY_VERSION.split(/\./) + require "#{major}.#{minor}/cairo.so" +rescue LoadError + require 'cairo.so' +end require 'cairo/constants' module Cairo Renamed: lib/cairo/color.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/colors.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/constants.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/blur.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/circle.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/color.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/path.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/rectangle.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/context/triangle.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/paper.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/papers.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/path.rb (+0 -0) 100% =================================================================== Renamed: lib/cairo/point.rb (+0 -0) 100% =================================================================== Deleted: src/.cvsignore (+0 -3) 100644 =================================================================== --- src/.cvsignore 2010-08-26 09:56:57 +0000 (e54f404) +++ /dev/null @@ -1,3 +0,0 @@ -Makefile -*.o -*.so Modified: test/run-test.rb (+3 -3) =================================================================== --- test/run-test.rb 2010-08-26 09:56:57 +0000 (43926e1) +++ test/run-test.rb 2010-08-26 11:17:54 +0000 (ae9606c) @@ -2,8 +2,8 @@ base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..")) test_unit_dir = File.join(base_dir, "test-unit", "lib") -src_dir = File.join(base_dir, "src") -lib_dir = File.join(src_dir, "lib") +ext_dir = File.join(base_dir, "ext", "cairo") +lib_dir = File.join(base_dir, "lib") test_dir = File.join(base_dir, "test") if system("which make > /dev/null") @@ -15,7 +15,7 @@ $LOAD_PATH.unshift(test_unit_dir) require 'test/unit' $LOAD_PATH.unshift(base_dir) -$LOAD_PATH.unshift(src_dir) +$LOAD_PATH.unshift(ext_dir) $LOAD_PATH.unshift(lib_dir) $LOAD_PATH.unshift(test_dir) From null+rcairo at clear-code.com Thu Aug 26 07:18:08 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 11:18:08 +0000 Subject: [cairo-commit:00012] rcairo/rcairo [master] fix dependency libraries information for Windows. Message-ID: <20100826113452.AE067170ED1@taiyaki.ru> Kouhei Sutou 2010-08-26 11:18:08 +0000 (Thu, 26 Aug 2010) New Revision: e8becd8bb859aabc9568c7590ed7be96b2c10bc3 Log: fix dependency libraries information for Windows. Modified files: README.rdoc Modified: README.rdoc (+6 -5) =================================================================== --- README.rdoc 2010-08-26 11:17:54 +0000 (e3fb594) +++ README.rdoc 2010-08-26 11:18:08 +0000 (90f0551) @@ -51,11 +51,12 @@ 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 + * cairo-X.Y.Z-win32.zip + * cairo-dev-X.Y.Z-win32.zip + * libpng-X.Y.Z-win32.zip + * libpng-dev-X.Y.Z-win32.zip + * zlib-X.Y.Z-win32.zip + * zlib-dev-X.Y.Z-win32.zip == Documents From null+rcairo at clear-code.com Thu Aug 26 07:34:37 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 11:34:37 +0000 Subject: [cairo-commit:00013] rcairo/rcairo [master] put cairo Windows binary into vendor/local/. Message-ID: <20100826113452.BE4B6170EEA@taiyaki.ru> Kouhei Sutou 2010-08-26 11:34:37 +0000 (Thu, 26 Aug 2010) New Revision: e86cb7e10e92116e917d71275e1285549e7c2554 Log: put cairo Windows binary into vendor/local/. Modified files: .gitignore Rakefile ext/cairo/extconf.rb lib/cairo.rb Modified: .gitignore (+2 -0) =================================================================== --- .gitignore 2010-08-26 11:18:08 +0000 (3d1cb46) +++ .gitignore 2010-08-26 11:34:37 +0000 (1766af2) @@ -5,3 +5,5 @@ /doc/ /rcairo-*.tar.gz* /test/.test-result/ +/tmp/ +/vendor/ Modified: Rakefile (+1 -5) =================================================================== --- Rakefile 2010-08-26 11:18:08 +0000 (fa72fd5) +++ Rakefile 2010-08-26 11:34:37 +0000 (951f9bd) @@ -24,9 +24,6 @@ def guess_rcairo_version 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 @@ -98,8 +95,7 @@ Rake::ExtensionTask.new("cairo", project.spec) do |ext| end if /mswin32/ =~ project.spec.platform.to_s - FileUtils.cp_r(File.expand_path("~/.wine/drive_c/cairo-dev"), - cairo_win32_dir) + cairo_win32_dir = File.join(base_dir, "vendor", "local") cairo_files = [] Find.find(cairo_win32_dir) do |f| cairo_files << f Modified: ext/cairo/extconf.rb (+46 -58) =================================================================== --- ext/cairo/extconf.rb 2010-08-26 11:18:08 +0000 (9716b0b) +++ ext/cairo/extconf.rb 2010-08-26 11:34:37 +0000 (ad6a6aa) @@ -1,61 +1,61 @@ #!/usr/bin/env ruby # vim: filetype=ruby:expandtab:shiftwidth=2:tabstop=8:softtabstop=2 : -base_dir = File.expand_path(File.join(File.dirname(__FILE__), "..", "..")) -$LOAD_PATH.unshift(base_dir) - +require 'pathname' require 'English' require 'mkmf' -require 'pkg-config' require 'fileutils' -# from mkmf-gnome2.rb -STDOUT.print("checking for GCC... ") -STDOUT.flush -if macro_defined?("__GNUC__", "") - STDOUT.print "yes\n" - $CFLAGS += ' -Wall' - $cc_is_gcc = true -else - STDOUT.print "no\n" - $cc_is_gcc = false +base_dir = (Pathname(__FILE__).dirname + ".." + "..").expand_path +$LOAD_PATH.unshift(base_dir.to_s) + +require 'pkg-config' + +checking_for(checking_message("GCC")) do + if macro_defined?("__GNUC__", "") + $CFLAGS += ' -Wall' + true + else + false + end end -def check_win32 - checking_for("Win32 OS") do - win32_os = /cygwin|mingw|mswin32/ =~ RUBY_PLATFORM - if win32_os - $defs << "-DRUBY_CAIRO_PLATFORM_WIN32" - if $cc_is_gcc - if /^2\./ =~ `#{Config::CONFIG['CC']} -dumpversion`.chomp - $CFLAGS += ' -fnative-struct' - else - $CFLAGS += ' -mms-bitfields' - end +pkg = "cairo" +module_name = "cairo" +major, minor, micro = 1, 2, 0 + +PKGConfig.have_package(pkg, major, minor, micro) or exit 1 + +have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") +have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") +have_func("rb_errinfo", "ruby.h") +have_type("enum ruby_value_type", "ruby.h") + +checking_for(checking_message("Win32 OS")) do + case RUBY_PLATFORM + when /cygwin|mingw|mswin32/ + $defs << "-DRUBY_CAIRO_PLATFORM_WIN32" + import_library_name = "libruby-#{module_name}.a" + $DLDFLAGS << " -Wl,--out-implib=#{import_library_name}" + $cleanfiles << import_library_name + local_cairo_install_dir = base_dir + "vendor" + "local" + $CFLAGS += " -I#{local_cairo_install_dir}/include" + local_cairo_lib_dir = local_cairo_install_dir + "lib" + ["libcairo.lib", "libcairo.dll.a"].each do |libcairo_base| + libcairo = local_cairo_lib_dir + libcairo_base + if libcairo.exist? + $DLDFLAGS += " -L#{local_cairo_lib_dir}" + break end end - win32_os + true + else + false end end -def set_output_lib(target_name, directory=nil) +checking_for(checking_message("Mac OS X")) do case RUBY_PLATFORM - when /cygwin|mingw/ - filename = File.join(*([directory, "libruby-#{target_name}.a"].compact)) - if RUBY_VERSION > "1.8.0" - $DLDFLAGS << ",--out-implib=#{filename}" - elsif RUBY_VERSION > "1.8" - $DLDFLAGS.gsub!(/ -Wl,--out-implib=[^ ]+/, '') - $DLDFLAGS << " -Wl,--out-implib=#{filename}" - else - $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') - $DLDFLAGS << " --output-lib #{filename}" - end - $cleanfiles << filename - when /mswin32/ - $DLDFLAGS.gsub!(/ --output-lib\s+[^ ]+/, '') - $DLDFLAGS.gsub!(/ \/IMPLIB:[^ ]+/, '') - $DLDFLAGS << " /IMPLIB:$(IMPLIB)" when /darwin/ if have_macro("CAIRO_HAS_QUARTZ_SURFACE", ["cairo.h"]) checking_for("RubyCocoa") do @@ -69,23 +69,11 @@ def set_output_lib(target_name, directory=nil) end end end + true + else + false end end - -pkg = "cairo" -module_name = "cairo" -major, minor, micro = 1, 2, 0 - -PKGConfig.have_package(pkg, major, minor, micro) or exit 1 - -have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") -have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") -have_func("rb_errinfo", "ruby.h") -have_type("enum ruby_value_type", "ruby.h") - -check_win32 -target_name = File.basename(module_name) -set_output_lib(target_name) $defs << "-DRB_CAIRO_COMPILATION" create_makefile(module_name) Modified: lib/cairo.rb (+1 -1) =================================================================== --- lib/cairo.rb 2010-08-26 11:18:08 +0000 (7b5bb41) +++ lib/cairo.rb 2010-08-26 11:34:37 +0000 (6c6d5c2) @@ -3,7 +3,7 @@ if /mingw|mswin|mswin32/ =~ RUBY_PLATFORM require 'pathname' base_dir = Pathname(File.dirname(__FILE__)) - base_dir = base_dir.parent.parent + "cairo" + base_dir = base_dir.parent + "vendor" + "local" if base_dir.exist? base_dir = base_dir.to_s.gsub(/\//, "\\") ENV['PATH'] = %w(bin lib).collect do |dir| From null+rcairo at clear-code.com Thu Aug 26 07:58:40 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 11:58:40 +0000 Subject: [cairo-commit:00014] rcairo/rcairo [master] make buildable with Ruby 1.9.2 and rake-compiler. Message-ID: <20100826115851.8462117051A@taiyaki.ru> Kouhei Sutou 2010-08-26 11:58:40 +0000 (Thu, 26 Aug 2010) New Revision: b897aaa74905671f24956954995311774d173b68 Log: make buildable with Ruby 1.9.2 and rake-compiler. Modified files: ext/cairo/extconf.rb ext/cairo/rb_cairo_private.c Modified: ext/cairo/extconf.rb (+10 -9) =================================================================== --- ext/cairo/extconf.rb 2010-08-26 11:34:37 +0000 (ad6a6aa) +++ ext/cairo/extconf.rb 2010-08-26 11:58:40 +0000 (37e8b8e) @@ -20,16 +20,11 @@ checking_for(checking_message("GCC")) do end end -pkg = "cairo" +package = "cairo" module_name = "cairo" major, minor, micro = 1, 2, 0 -PKGConfig.have_package(pkg, major, minor, micro) or exit 1 - -have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") -have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") -have_func("rb_errinfo", "ruby.h") -have_type("enum ruby_value_type", "ruby.h") +PKGConfig.have_package(package, major, minor, micro) or exit 1 checking_for(checking_message("Win32 OS")) do case RUBY_PLATFORM @@ -41,10 +36,10 @@ checking_for(checking_message("Win32 OS")) do local_cairo_install_dir = base_dir + "vendor" + "local" $CFLAGS += " -I#{local_cairo_install_dir}/include" local_cairo_lib_dir = local_cairo_install_dir + "lib" - ["libcairo.lib", "libcairo.dll.a"].each do |libcairo_base| + ["cairo.lib", "libcairo.dll.a"].each do |libcairo_base| libcairo = local_cairo_lib_dir + libcairo_base if libcairo.exist? - $DLDFLAGS += " -L#{local_cairo_lib_dir}" + $LDFLAGS += " -L#{local_cairo_lib_dir}" break end end @@ -76,4 +71,10 @@ checking_for(checking_message("Mac OS X")) do end $defs << "-DRB_CAIRO_COMPILATION" + +have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h") +have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h") +have_func("rb_errinfo", "ruby.h") +have_type("enum ruby_value_type", "ruby.h") + create_makefile(module_name) Modified: ext/cairo/rb_cairo_private.c (+1 -1) =================================================================== --- ext/cairo/rb_cairo_private.c 2010-08-26 11:34:37 +0000 (ab0b15b) +++ ext/cairo/rb_cairo_private.c 2010-08-26 11:58:40 +0000 (fbe416d) @@ -24,7 +24,7 @@ VALUE rb_cairo__float_array (double *values, unsigned count) { VALUE result; - int i; + unsigned i; result = rb_ary_new2 (count); for (i = 0; i < count; i++) From null+rcairo at clear-code.com Thu Aug 26 08:14:31 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:14:31 +0000 Subject: [cairo-commit:00015] rcairo/rcairo [master] work gem. Message-ID: <20100826121442.14D8117051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:14:31 +0000 (Thu, 26 Aug 2010) New Revision: b3f65aae87cfd7e2420132c9f180c1d9f41d01af Log: work gem. Modified files: .gitignore Rakefile Modified: .gitignore (+1 -0) =================================================================== --- .gitignore 2010-08-26 11:58:40 +0000 (1766af2) +++ .gitignore 2010-08-26 12:14:31 +0000 (6108790) @@ -7,3 +7,4 @@ /test/.test-result/ /tmp/ /vendor/ +/pkg/ Modified: Rakefile (+4 -4) =================================================================== --- Rakefile 2010-08-26 11:58:40 +0000 (951f9bd) +++ Rakefile 2010-08-26 12:14:31 +0000 (2e57f4f) @@ -30,8 +30,8 @@ base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL NEWS README Rakefile extconf.rb pkg-config.rb) excluded_components = %w(.cvsignore .gdb_history CVS depend Makefile pkg - .test-result) -excluded_suffixes = %w(.png .ps .pdf .o .so .a .txt .~) + .test-result .gitignore .git vendor) +excluded_suffixes = %w(.png .ps .pdf .o .so .a .txt .~ .log) Find.find(base_dir) do |target| target = truncate_base_dir[target] components = target.split(File::SEPARATOR) @@ -74,8 +74,8 @@ project = Hoe.spec('cairo') do |project| project.url = 'http://cairographics.org/rcairo' project.test_globs = [] project.spec_extras = { - :extensions => ['extconf.rb'], - :require_paths => ['lib', 'ext/cairo'], + :extensions => ['ext/cairo/extconf.rb'], + :require_paths => ['lib'], :has_rdoc => false, } platform = ENV["FORCE_PLATFORM"] From null+rcairo at clear-code.com Thu Aug 26 08:17:57 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:17:57 +0000 Subject: [cairo-commit:00016] rcairo/rcairo [master] add .rdoc suffix. Message-ID: <20100826121808.437DF17051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:17:57 +0000 (Thu, 26 Aug 2010) New Revision: 152759a7ac1e02db3d1ec38c0a270eb379167567 Log: add .rdoc suffix. Modified files: Rakefile Modified: Rakefile (+1 -1) =================================================================== --- Rakefile 2010-08-26 12:14:31 +0000 (2e57f4f) +++ Rakefile 2010-08-26 12:17:57 +0000 (4feb09b) @@ -27,7 +27,7 @@ end manifest = File.join(base_dir, "Manifest.txt") manifest_contents = [] base_dir_included_components = %w(AUTHORS COPYING ChangeLog GPL - NEWS README Rakefile + NEWS README.doc Rakefile extconf.rb pkg-config.rb) excluded_components = %w(.cvsignore .gdb_history CVS depend Makefile pkg .test-result .gitignore .git vendor) From null+rcairo at clear-code.com Thu Aug 26 08:19:31 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:19:31 +0000 Subject: [cairo-commit:00017] rcairo/rcairo [master] fix path. Message-ID: <20100826121944.CADCE17051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:19:31 +0000 (Thu, 26 Aug 2010) New Revision: ccb51b00a2dd0b8c9225ba32191ac7e0230f703e Log: fix path. Modified files: Rakefile Modified: Rakefile (+2 -2) =================================================================== --- Rakefile 2010-08-26 12:17:57 +0000 (4feb09b) +++ Rakefile 2010-08-26 12:19:31 +0000 (d94d03a) @@ -13,8 +13,8 @@ truncate_base_dir = Proc.new do |x| x.gsub(/^#{Regexp.escape(base_dir + File::SEPARATOR)}/, '') end -cairo_ext_dir = File.join(base_dir, 'src') -cairo_lib_dir = File.join(cairo_ext_dir, 'lib') +cairo_ext_dir = File.join(base_dir, 'ext', 'cairo') +cairo_lib_dir = File.join(base_dir, 'lib') $LOAD_PATH.unshift(cairo_ext_dir) $LOAD_PATH.unshift(cairo_lib_dir) ENV["RUBYLIB"] = "#{cairo_lib_dir}:#{cairo_ext_dir}:#{ENV['RUBYLIB']}" From null+rcairo at clear-code.com Thu Aug 26 08:21:59 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:21:59 +0000 Subject: [cairo-commit:00018] rcairo/rcairo [master] fix changed directory. Message-ID: <20100826122209.0D3F317051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:21:59 +0000 (Thu, 26 Aug 2010) New Revision: d97076b66440ba9ea066d7ae9f32a2d148d9b554 Log: fix changed directory. Modified files: dist.sh Modified: dist.sh (+2 -1) =================================================================== --- dist.sh 2010-08-26 12:19:31 +0000 (b2030fc) +++ dist.sh 2010-08-26 12:21:59 +0000 (ba3be76) @@ -21,7 +21,8 @@ mkdir -p tmp git clone git at github.com:rcairo/rcairo.git tmp/$base cd tmp/$base git checkout $TAG -cd .. +rm -rf .git +cd ../.. cp -rp doc tmp/$base/ tar cvfz $tgz -C tmp $base md5sum $tgz > $tgz.md5 From null+rcairo at clear-code.com Thu Aug 26 08:52:06 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:52:06 +0000 Subject: [cairo-commit:00019] rcairo/rcairo [master] support 'make install' again. Message-ID: <20100826125216.DF5C917051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:52:06 +0000 (Thu, 26 Aug 2010) New Revision: f54b49575b45659ceabcde56a6f01d5512151e41 Log: support 'make install' again. Added files: extconf.rb Modified files: .gitignore Modified: .gitignore (+2 -0) =================================================================== --- .gitignore 2010-08-26 12:21:59 +0000 (6108790) +++ .gitignore 2010-08-26 12:52:06 +0000 (a52c9a7) @@ -8,3 +8,5 @@ /tmp/ /vendor/ /pkg/ +/Makefile +/Makefile.lib Added: extconf.rb (+45 -0) 100755 =================================================================== --- /dev/null +++ extconf.rb 2010-08-26 12:52:06 +0000 (6f79438) @@ -0,0 +1,45 @@ +#!/usr/bin/env ruby + +require 'pathname' +require 'mkmf' +require 'rbconfig' +require 'fileutils' + +base_dir = Pathname(__FILE__).dirname.expand_path +ext_dir = base_dir + "ext" + "cairo" + +ruby = File.join(RbConfig::CONFIG['bindir'], + RbConfig::CONFIG['ruby_install_name'] + + RbConfig::CONFIG["EXEEXT"]) + +ext_dir.chdir do + system(ruby, "extconf.rb") +end + +create_makefile("cairo") +FileUtils.mv("Makefile", "Makefile.lib") + +File.open("Makefile", "w") do |makefile| + makefile.puts(<<-EOM) +all: + $(MAKE) $(MAKEFLAGS) -C ext/cairo + $(MAKE) $(MAKEFLAGS) -f Makefile.lib + +install: + $(MAKE) $(MAKEFLAGS) -C ext/cairo install + $(MAKE) $(MAKEFLAGS) -f Makefile.lib install + +site-install: + $(MAKE) $(MAKEFLAGS) -C ext/cairo site-install + $(MAKE) $(MAKEFLAGS) -f Makefile.lib site-install + +clean: + $(MAKE) $(MAKEFLAGS) -C ext/cairo clean + $(MAKE) $(MAKEFLAGS) -f Makefile.lib clean + +distclean: + $(MAKE) $(MAKEFLAGS) -C ext/cairo distclean + $(MAKE) $(MAKEFLAGS) -f Makefile.lib distclean + @rm -f Makefile.lib +EOM +end From null+rcairo at clear-code.com Thu Aug 26 08:52:49 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:52:49 +0000 Subject: [cairo-commit:00020] rcairo/rcairo [master] 1.8.2 -> 1.8.3. Message-ID: <20100826125305.D234C17051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:52:49 +0000 (Thu, 26 Aug 2010) New Revision: 9bb819d30a92b97aae601c2b983426fe4b2febad Log: 1.8.2 -> 1.8.3. Modified files: NEWS ext/cairo/rb_cairo.c Modified: NEWS (+1 -1) =================================================================== --- NEWS 2010-08-26 12:52:06 +0000 (cef00eb) +++ NEWS 2010-08-26 12:52:49 +0000 (6398086) @@ -1,4 +1,4 @@ -Release 1.8.2 (2010-08-26) Kouhei Sutou ) +Release 1.8.3 (2010-08-26) Kouhei Sutou ) =========================================================== Features Modified: ext/cairo/rb_cairo.c (+1 -1) =================================================================== --- ext/cairo/rb_cairo.c 2010-08-26 12:52:06 +0000 (8417162) +++ ext/cairo/rb_cairo.c 2010-08-26 12:52:49 +0000 (fbf8565) @@ -76,7 +76,7 @@ Init_cairo () rb_define_const (rb_mCairo, "BINDINGS_VERSION", rb_ary_new3 (4, - INT2FIX (1), INT2FIX (8), INT2FIX (2), Qnil)); + INT2FIX (1), INT2FIX (8), INT2FIX (3), Qnil)); rb_define_module_function (rb_mCairo, "satisfied_version?", rb_cairo_satisfied_version, -1); From null+rcairo at clear-code.com Thu Aug 26 08:55:00 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 12:55:00 +0000 Subject: [cairo-commit:00021] rcairo/rcairo [master] use Dir.chdir. Message-ID: <20100826125510.1025417051A@taiyaki.ru> Kouhei Sutou 2010-08-26 12:55:00 +0000 (Thu, 26 Aug 2010) New Revision: 0b6e49a5ba4993e4b95262e4a231ab5fdf4a3388 Log: use Dir.chdir. Modified files: extconf.rb Modified: extconf.rb (+1 -1) =================================================================== --- extconf.rb 2010-08-26 12:52:49 +0000 (6f79438) +++ extconf.rb 2010-08-26 12:55:00 +0000 (2dd3edf) @@ -12,7 +12,7 @@ ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG["EXEEXT"]) -ext_dir.chdir do +Dir.chdir(ext_dir.to_s) do system(ruby, "extconf.rb") end From null+rcairo at clear-code.com Thu Aug 26 09:04:26 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Thu, 26 Aug 2010 13:04:26 +0000 Subject: [cairo-commit:00022] rcairo/rcairo [master] 1.8.3 -> 1.8.4. Message-ID: <20100826130435.BB39117051A@taiyaki.ru> Kouhei Sutou 2010-08-26 13:04:26 +0000 (Thu, 26 Aug 2010) New Revision: b686870c646d29667204d9eaa5193d6ae6ec0a75 Log: 1.8.3 -> 1.8.4. Modified files: ext/cairo/rb_cairo.c Modified: ext/cairo/rb_cairo.c (+1 -1) =================================================================== --- ext/cairo/rb_cairo.c 2010-08-26 12:55:00 +0000 (fbf8565) +++ ext/cairo/rb_cairo.c 2010-08-26 13:04:26 +0000 (f21715f) @@ -76,7 +76,7 @@ Init_cairo () rb_define_const (rb_mCairo, "BINDINGS_VERSION", rb_ary_new3 (4, - INT2FIX (1), INT2FIX (8), INT2FIX (3), Qnil)); + INT2FIX (1), INT2FIX (8), INT2FIX (4), Qnil)); rb_define_module_function (rb_mCairo, "satisfied_version?", rb_cairo_satisfied_version, -1); From null+rcairo at clear-code.com Thu Aug 26 21:37:15 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Fri, 27 Aug 2010 01:37:15 +0000 Subject: [cairo-commit:00023] rcairo/rcairo [master] pass arguments to ext/cairo/extconf.rb. Message-ID: <20100827013726.0FA89170E0C@taiyaki.ru> Kouhei Sutou 2010-08-27 01:37:15 +0000 (Fri, 27 Aug 2010) New Revision: 347ed47af4bae4144dcea0c0a2ec4e01e47a1b31 Log: pass arguments to ext/cairo/extconf.rb. Patch by kimura wataru. Thanks!!! Modified files: README.rdoc extconf.rb Modified: README.rdoc (+3 -1) =================================================================== --- README.rdoc 2010-08-26 13:04:26 +0000 (90f0551) +++ README.rdoc 2010-08-27 01:37:15 +0000 (ec1989c) @@ -99,4 +99,6 @@ http://cairographics.org/cgi-bin/mailman/listinfo/cairo * Davide Rambaldi: A suggestion. * Yusuke ENDOH: reports a bug. * Yuta Taniguchi: a bug fix patch. -* kimura wataru: reports a bug. +* kimura wataru: + * reports a bug. + * some patches. Modified: extconf.rb (+1 -1) =================================================================== --- extconf.rb 2010-08-26 13:04:26 +0000 (2dd3edf) +++ extconf.rb 2010-08-27 01:37:15 +0000 (69d8a9c) @@ -13,7 +13,7 @@ ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG["EXEEXT"]) Dir.chdir(ext_dir.to_s) do - system(ruby, "extconf.rb") + system(ruby, "extconf.rb", *ARGV) end create_makefile("cairo") From null+rcairo at clear-code.com Thu Aug 26 22:12:05 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Fri, 27 Aug 2010 02:12:05 +0000 Subject: [cairo-commit:00024] rcairo/rcairo [master] don't use -C and $(MAKEFLAGS). Message-ID: <20100827021216.3A6E9170E0C@taiyaki.ru> Kouhei Sutou 2010-08-27 02:12:05 +0000 (Fri, 27 Aug 2010) New Revision: af0b4f32623f864650a28fc0540e301c6a372093 Log: don't use -C and $(MAKEFLAGS). Suggested by OBATA Akio. Thanks!!! Modified files: extconf.rb Modified: extconf.rb (+11 -11) =================================================================== --- extconf.rb 2010-08-27 01:37:15 +0000 (69d8a9c) +++ extconf.rb 2010-08-27 02:12:05 +0000 (80b614b) @@ -13,7 +13,7 @@ ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG["EXEEXT"]) Dir.chdir(ext_dir.to_s) do - system(ruby, "extconf.rb", *ARGV) + system(ruby, "extconf.rb", *ARGV) || exit(false) end create_makefile("cairo") @@ -22,24 +22,24 @@ FileUtils.mv("Makefile", "Makefile.lib") File.open("Makefile", "w") do |makefile| makefile.puts(<<-EOM) all: - $(MAKE) $(MAKEFLAGS) -C ext/cairo - $(MAKE) $(MAKEFLAGS) -f Makefile.lib + (cd ext/cairo && $(MAKE)) + $(MAKE) -f Makefile.lib install: - $(MAKE) $(MAKEFLAGS) -C ext/cairo install - $(MAKE) $(MAKEFLAGS) -f Makefile.lib install + (cd ext/cairo && $(MAKE) install) + $(MAKE) -f Makefile.lib install site-install: - $(MAKE) $(MAKEFLAGS) -C ext/cairo site-install - $(MAKE) $(MAKEFLAGS) -f Makefile.lib site-install + (cd ext/cairo && $(MAKE) site-install) + $(MAKE) -f Makefile.lib site-install clean: - $(MAKE) $(MAKEFLAGS) -C ext/cairo clean - $(MAKE) $(MAKEFLAGS) -f Makefile.lib clean + (cd ext/cairo && $(MAKE) clean) + $(MAKE) -f Makefile.lib clean distclean: - $(MAKE) $(MAKEFLAGS) -C ext/cairo distclean - $(MAKE) $(MAKEFLAGS) -f Makefile.lib distclean + (cd ext/cairo && $(MAKE) distclean) + $(MAKE) -f Makefile.lib distclean @rm -f Makefile.lib EOM end From null+rcairo at clear-code.com Thu Aug 26 22:55:48 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Fri, 27 Aug 2010 02:55:48 +0000 Subject: [cairo-commit:00025] rcairo/rcairo [master] add missing vendor/local/. Message-ID: <20100827025644.8E1B0170E0C@taiyaki.ru> Kouhei Sutou 2010-08-27 02:55:48 +0000 (Fri, 27 Aug 2010) New Revision: e2b664e96bf80d7e346fcb91d3e0b0802c1e6c05 Log: add missing vendor/local/. Modified files: Rakefile Modified: Rakefile (+2 -2) =================================================================== --- Rakefile 2010-08-27 02:12:05 +0000 (d94d03a) +++ Rakefile 2010-08-27 02:55:48 +0000 (a93da8b) @@ -91,10 +91,9 @@ project.spec.dependencies.delete_if {|dependency| dependency.name == "hoe"} Rake::ExtensionTask.new("cairo", project.spec) do |ext| ext.cross_compile = true - ext.cross_platform = 'x86-mingw32' end -if /mswin32/ =~ project.spec.platform.to_s +task :add_win32_binaries do cairo_win32_dir = File.join(base_dir, "vendor", "local") cairo_files = [] Find.find(cairo_win32_dir) do |f| @@ -102,6 +101,7 @@ if /mswin32/ =~ project.spec.platform.to_s end project.spec.files += cairo_files end +task :cross => :add_win32_binaries # fix Hoe's incorrect guess. project.spec.executables.clear From null+rcairo at clear-code.com Thu Aug 26 23:33:14 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Fri, 27 Aug 2010 03:33:14 +0000 Subject: [cairo-commit:00026] rcairo/rcairo [master] add 1.8.4 entry. Message-ID: <20100827033520.373BD170E0C@taiyaki.ru> Kouhei Sutou 2010-08-27 03:33:14 +0000 (Fri, 27 Aug 2010) New Revision: bf1c4278e642d6bf1d42a9526af5285607ddbde7 Log: add 1.8.4 entry. Modified files: NEWS Modified: NEWS (+14 -0) =================================================================== --- NEWS 2010-08-27 02:55:48 +0000 (6398086) +++ NEWS 2010-08-27 03:33:14 +0000 (4ac3ce5) @@ -1,3 +1,17 @@ +Release 1.8.4 (2010-08-27) Kouhei Sutou ) +=========================================================== + +Fixes +----- + * Fix build system. (patch by kimura watasu and suggested by OBATA Akio) + * Fix Windows gem. (reported by Dominic Sisneros) + +Thanks +------ + * Dominic Sisneros + * kimura wataru + * OBATA Akio + Release 1.8.3 (2010-08-26) Kouhei Sutou ) =========================================================== From null+rcairo at clear-code.com Fri Aug 27 20:38:47 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 00:38:47 +0000 Subject: [cairo-commit:00027] rcairo/rcairo [master] 1.8.4 -> 1.8.5. Message-ID: <20100828004057.B1BE0170E0C@taiyaki.ru> Kouhei Sutou 2010-08-28 00:38:47 +0000 (Sat, 28 Aug 2010) New Revision: 19f9a879459a1d5965c1c55fd8e7d4d0c3bacc8c Log: 1.8.4 -> 1.8.5. Modified files: ext/cairo/rb_cairo.c Modified: ext/cairo/rb_cairo.c (+1 -1) =================================================================== --- ext/cairo/rb_cairo.c 2010-08-27 03:33:14 +0000 (f21715f) +++ ext/cairo/rb_cairo.c 2010-08-28 00:38:47 +0000 (6b9451d) @@ -76,7 +76,7 @@ Init_cairo () rb_define_const (rb_mCairo, "BINDINGS_VERSION", rb_ary_new3 (4, - INT2FIX (1), INT2FIX (8), INT2FIX (4), Qnil)); + INT2FIX (1), INT2FIX (8), INT2FIX (5), Qnil)); rb_define_module_function (rb_mCairo, "satisfied_version?", rb_cairo_satisfied_version, -1); From null+rcairo at clear-code.com Fri Aug 27 20:39:00 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 00:39:00 +0000 Subject: [cairo-commit:00028] rcairo/rcairo [master] fix Windows gem. Message-ID: <20100828004057.C14C8170E0E@taiyaki.ru> Kouhei Sutou 2010-08-28 00:39:00 +0000 (Sat, 28 Aug 2010) New Revision: 9040b9167e84ba04e53a09ac604835e9ed9718a6 Log: fix Windows gem. Modified files: README.rdoc Rakefile Modified: README.rdoc (+9 -6) =================================================================== --- README.rdoc 2010-08-28 00:38:47 +0000 (ec1989c) +++ README.rdoc 2010-08-28 00:39:00 +0000 (643e56e) @@ -51,12 +51,13 @@ 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-win32.zip - * cairo-dev-X.Y.Z-win32.zip - * libpng-X.Y.Z-win32.zip - * libpng-dev-X.Y.Z-win32.zip - * zlib-X.Y.Z-win32.zip - * zlib-dev-X.Y.Z-win32.zip + * cairo-X.Y.Z-a_win32.zip + * cairo-dev-X.Y.Z-a_win32.zip + * libpng-X.Y.Z-a_win32.zip + * zlib-X.Y.Z-a_win32.zip + * expat_X.Y.Z-a_win32.zip + * fontconfig_X.Y.Z-a_win32.zip + * freetype_X.Y.Z-a_win32.zip == Documents @@ -102,3 +103,5 @@ http://cairographics.org/cgi-bin/mailman/listinfo/cairo * kimura wataru: * reports a bug. * some patches. +* Masayas TARUI: + * Windows support. Modified: Rakefile (+1 -1) =================================================================== --- Rakefile 2010-08-28 00:38:47 +0000 (a93da8b) +++ Rakefile 2010-08-28 00:39:00 +0000 (64d669a) @@ -94,7 +94,7 @@ Rake::ExtensionTask.new("cairo", project.spec) do |ext| end task :add_win32_binaries do - cairo_win32_dir = File.join(base_dir, "vendor", "local") + cairo_win32_dir = File.join("vendor", "local") cairo_files = [] Find.find(cairo_win32_dir) do |f| cairo_files << f From null+rcairo at clear-code.com Fri Aug 27 20:39:50 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 00:39:50 +0000 Subject: [cairo-commit:00029] rcairo/rcairo [master] add 1.8.5 entry. Message-ID: <20100828004057.D2F49170EFC@taiyaki.ru> Kouhei Sutou 2010-08-28 00:39:50 +0000 (Sat, 28 Aug 2010) New Revision: 86e5ccfee364fa72ad0e852dee75fbe878a9ab82 Log: add 1.8.5 entry. Modified files: NEWS Modified: NEWS (+3 -2) =================================================================== --- NEWS 2010-08-28 00:39:00 +0000 (4ac3ce5) +++ NEWS 2010-08-28 00:39:50 +0000 (5af067a) @@ -1,16 +1,17 @@ -Release 1.8.4 (2010-08-27) Kouhei Sutou ) +Release 1.8.5 (2010-08-28) Kouhei Sutou ) =========================================================== Fixes ----- * Fix build system. (patch by kimura watasu and suggested by OBATA Akio) - * Fix Windows gem. (reported by Dominic Sisneros) + * Fix Windows gem. (reported by Dominic Sisneros, supported by Masayas TARUI) Thanks ------ * Dominic Sisneros * kimura wataru * OBATA Akio + * Masayas TARUI Release 1.8.3 (2010-08-26) Kouhei Sutou ) =========================================================== From null+rcairo at clear-code.com Fri Aug 27 20:52:01 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 00:52:01 +0000 Subject: [cairo-commit:00030] rcairo/rcairo [master] 1.8.5 -> 1.8.6. Message-ID: <20100828005215.25CA5170E0C@taiyaki.ru> Kouhei Sutou 2010-08-28 00:52:01 +0000 (Sat, 28 Aug 2010) New Revision: c76cc57892b72639f97ce0c8363c16e5e2c0c3b2 Log: 1.8.5 -> 1.8.6. Modified files: ext/cairo/rb_cairo.c Modified: ext/cairo/rb_cairo.c (+1 -1) =================================================================== --- ext/cairo/rb_cairo.c 2010-08-28 00:39:50 +0000 (6b9451d) +++ ext/cairo/rb_cairo.c 2010-08-28 00:52:01 +0000 (dd596c3) @@ -76,7 +76,7 @@ Init_cairo () rb_define_const (rb_mCairo, "BINDINGS_VERSION", rb_ary_new3 (4, - INT2FIX (1), INT2FIX (8), INT2FIX (5), Qnil)); + INT2FIX (1), INT2FIX (8), INT2FIX (6), Qnil)); rb_define_module_function (rb_mCairo, "satisfied_version?", rb_cairo_satisfied_version, -1); From null+rcairo at clear-code.com Sat Aug 28 08:37:22 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 12:37:22 +0000 Subject: [cairo-commit:00031] rcairo/rcairo [master] fix a typo. I'm sooooo sorry... Message-ID: <20100828124423.F2BDA1704C2@taiyaki.ru> Kouhei Sutou 2010-08-28 12:37:22 +0000 (Sat, 28 Aug 2010) New Revision: 6c4bd3137445aec2547a3061934f7c28039f3b86 Log: fix a typo. I'm sooooo sorry... Modified files: NEWS Modified: NEWS (+1 -1) =================================================================== --- NEWS 2010-08-28 00:52:01 +0000 (5af067a) +++ NEWS 2010-08-28 12:37:22 +0000 (d17840b) @@ -11,7 +11,7 @@ Thanks * Dominic Sisneros * kimura wataru * OBATA Akio - * Masayas TARUI + * Masaya TARUI Release 1.8.3 (2010-08-26) Kouhei Sutou ) =========================================================== From null+rcairo at clear-code.com Sat Aug 28 19:32:38 2010 From: null+rcairo at clear-code.com (null+rcairo at clear-code.com) Date: Sat, 28 Aug 2010 23:32:38 +0000 Subject: [cairo-commit:00032] rcairo/rcairo [master] fix a typo. I'm sooooo sorry... Message-ID: <20100828233251.05BFD1704C2@taiyaki.ru> Kouhei Sutou 2010-08-28 23:32:38 +0000 (Sat, 28 Aug 2010) New Revision: d2f63addfe7beff5f07e15fdc8f7fd59dfb75e06 Log: fix a typo. I'm sooooo sorry... Modified files: NEWS Modified: NEWS (+1 -1) =================================================================== --- NEWS 2010-08-28 12:37:22 +0000 (d17840b) +++ NEWS 2010-08-28 23:32:38 +0000 (144fab6) @@ -4,7 +4,7 @@ Release 1.8.5 (2010-08-28) Kouhei Sutou ) Fixes ----- * Fix build system. (patch by kimura watasu and suggested by OBATA Akio) - * Fix Windows gem. (reported by Dominic Sisneros, supported by Masayas TARUI) + * Fix Windows gem. (reported by Dominic Sisneros, supported by Masaya TARUI) Thanks ------