head 1.29; access; symbols RELEASE_1_8_1:1.28 RELEASE_1_8_0:1.28 RELEASE_1_7_0:1.27 RELEASE_1_6_3:1.25 RELEASE_1_6_2:1.22 RELEASE_1_6_1:1.22 RELEASE_1_6_0:1.20 RELEASE_1_5_1:1.18 RELEASE_1_5_0:1.12 RELEASE_1_4_1:1.11 RELEASE_1_4_0:1.11 RELEASE_1_2_0:1.10 RELEASE_1_0_0:1.6; locks; strict; comment @# @; 1.29 date 2010.01.11.02.08.02; author kou; state Exp; branches; next 1.28; commitid Rv4VtXzfx8xzLSiu; 1.28 date 2008.09.06.11.13.33; author kou; state Exp; branches; next 1.27; commitid 4zIp9LCuiTwhBHht; 1.27 date 2008.08.06.00.11.15; author kou; state Exp; branches; next 1.26; commitid PPZrqoUetn1SVEdt; 1.26 date 2008.08.02.01.29.07; author kou; state Exp; branches; next 1.25; commitid C8sMNpEBXuAru9dt; 1.25 date 2008.06.20.11.56.19; author kou; state Exp; branches; next 1.24; commitid 7IAZ20HkaOsqlG7t; 1.24 date 2008.06.20.08.48.56; author kou; state Exp; branches; next 1.23; commitid YuUUW6qRT9m6jF7t; 1.23 date 2008.06.19.08.34.20; author kou; state Exp; branches; next 1.22; commitid qkdbUxN8UrN8gx7t; 1.22 date 2008.04.24.06.00.47; author kou; state Exp; branches; next 1.21; commitid iSQA7C5w31J3dk0t; 1.21 date 2008.04.16.14.48.23; author kou; state Exp; branches; next 1.20; commitid MTeJWq3WNGjZnlZs; 1.20 date 2008.03.25.21.24.32; author kou; state Exp; branches; next 1.19; commitid FgZSehuYZNFGhyWs; 1.19 date 2008.01.18.05.04.25; author kou; state Exp; branches; next 1.18; commitid HmYRZll4S0UZ0RNs; 1.18 date 2007.12.29.11.42.26; author kou; state Exp; branches; next 1.17; commitid YXLILRCtLQNkRjLs; 1.17 date 2007.12.28.07.49.04; author kou; state Exp; branches; next 1.16; commitid 8Zd62xR0IKyhBaLs; 1.16 date 2007.06.14.12.03.31; author kou; state Exp; branches; next 1.15; 1.15 date 2007.05.29.06.56.45; author kou; state Exp; branches; next 1.14; 1.14 date 2007.05.27.03.23.24; author kou; state Exp; branches; next 1.13; 1.13 date 2007.05.27.02.46.01; author kou; state Exp; branches; next 1.12; 1.12 date 2007.05.19.00.25.42; author kou; state Exp; branches; next 1.11; 1.11 date 2007.03.06.12.17.33; author kou; state Exp; branches; next 1.10; 1.10 date 2006.07.01.14.45.55; author kou; state Exp; branches; next 1.9; 1.9 date 2006.06.25.14.29.24; author kou; state Exp; branches; next 1.8; 1.8 date 2006.05.31.05.02.41; author kou; state Exp; branches; next 1.7; 1.7 date 2006.05.02.05.38.26; author kou; state Exp; branches; next 1.6; 1.6 date 2005.10.02.07.49.13; author kou; state Exp; branches; next 1.5; commitid 6df5433f90ed4567; 1.5 date 2005.09.30.02.25.09; author kou; state Exp; branches; next 1.4; commitid 7042433ca1ef4567; 1.4 date 2005.06.23.09.30.48; author pippin; state Exp; branches; next 1.3; commitid f2542ba81404567; 1.3 date 2005.03.20.22.55.38; author pippin; state Exp; branches; next 1.2; 1.2 date 2005.02.08.01.28.20; author pippin; state Exp; branches; next 1.1; 1.1 date 2004.09.01.15.29.25; author pippin; state Exp; branches; next ; desc @@ 1.29 log @* 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. @ text @rcairo ====== Ruby bindings for cairo // cairo extension for Ruby http://cairographics.org/ Dependencies ------------ ruby >= 1.8 cairo >= 1.2.0 Compiling --------- % 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 ------- cairo-X.Y.Z-x86-mswin32.gem includes cairo related binaries. * cairo related binaries: http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/ * cairo-X.Y.Z.zip * cairo-dev-X.Y.Z.zip * libpng-X.Y.Z.zip * libpng-dev-X.Y.Z.zip * zlib-X.Y.Z.zip Documents --------- * Reference manual: http://cairo.rubyforge.org/doc/ Repository of the reference manual: http://www.cozmixng.org/repos/rcairo-doc/ * An article for rcairo on Rubyst Magazine a.k.a. RubiMa (in Japanese): http://jp.rubyist.net/magazine/?0019-cairo 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@@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. @ 1.28 log @* README: add Yusue ENDOH to Thanks list. * src/rb_cairo_context.c: re-support cairo 1.2.x. Reported by Yusuke ENDOH. Thanks!!! @ text @d83 1 @ 1.27 log @* README: update sample scripts dependency description. Suggested by Davide Rambaldi. * README: add a Davide Rambaldi's entry. @ text @d82 1 @ 1.26 log @* 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. @ text @d22 6 a27 2 # the samples in the samples folder should be able # to run before installation. d81 1 @ 1.25 log @* README: update OBATA Akio's entry. * src/depend (install-so): use INSTALL_DATA and RUBYARCHDIR. Suggested by OBATA Akio. Thanks!!! @ text @d65 3 a67 1 * Paul van Tilburg: some patches that support ruby 1.9. @ 1.24 log @* 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!!! @ text @d70 3 a72 1 * OBATA Akio: reports a bug. @ 1.23 log @* 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!!! @ text @d72 1 @ 1.22 log @* Rakefile, src/lib/cairo.rb: support gem for mswin32. * README (Windows): add. @ text @d71 1 @ 1.21 log @* src/rb_cairo_surface.c: fix unbelievable typos. Reported by kimura wataru. Thanks!!! * README: update an entry for kimura wataru. @ text @d25 14 @ 1.20 log @* src/rb_cairo_surface.c: added missing HAVE_RUBY_COCOA check. Thanks to OBATA Akio!!! * README: added OBATA Akio to the thanks list. @ text @d53 3 a55 1 * kimura wataru: some advices for RubyCocoa. @ 1.19 log @* src/rb_cairo_surface.c: used rbobj_to_nsobj() and ocid_to_rbobj() instead of rbobj_get_ocid() and ocobj_s_new(). Suggested by kumura wataru. Thanks!!! * README: added kumura wataru to Thanks list. @ text @d54 1 @ 1.18 log @* src/rb_cairo_context.c (cr_set_source_surface): fixed wrong type conversion. Reported by Binzo. Thanks!!! * README: updated Binzo entry in Thanks list. @ text @d53 1 @ 1.17 log @* src/rb_cairo_context.c (cr_pop_group): fixed a memory leak bug. Reported by Binzo. Thanks!!! * README: added Binzo to Thanks list. @ text @d52 1 a52 1 * Binzo: a bug report. @ 1.16 log @* README: added Paul van Tilburg to Thanks list. @ text @d52 1 @ 1.15 log @* src/lib/cairo/context/path.rb: fixed typos. Thanks to NANKI Haruo!!! * README: added an entry for NANKI Haruo. @ text @d51 1 @ 1.14 log @* updated documents. @ text @d50 1 @ 1.13 log @* README: added some links for documentation. * src/rb_cairo.c: 1.5.0 -> 1.5.1. @ text @d34 1 a34 1 * An article for rcairo on RubiMa (in Japanese): @ 1.12 log @* src/rb_cairo.h, src/cairo.def, src/rb_cairo_surface.c: supported win32 surface. Thanks to Yoshinao Muramatsu!!! * README: added entry for Yoshinao Muramatsu. @ text @d25 12 @ 1.11 log @* 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. @ text @d33 5 @ 1.10 log @* 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. @ text @d18 2 a19 2 % ruby setup.rb config # to check for dependencies and create Makefiles % ruby setup.rb setup # to compile d21 3 a23 3 # ruby setup.rb install # to install the cairo extension. # the samples in the samples folder should be able # to run before installation. @ 1.9 log @* 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. @ text @d13 1 a13 1 cairo >= 1.1.10 @ 1.8 log @* 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(). @ text @d4 1 a4 1 ruby bindings for cairo // cairo extension for ruby d13 1 a13 1 cairo >= 1.1.6 d18 2 a19 7 ruby setup.rb config # to check for dependencies and create Makefiles ruby setup.rb setup # to compile # the samples in the samples folder should be able to run before # installation. ruby setup.rb install # to install the cairo extension. d21 3 a32 2 @ 1.7 log @* README: updated required version. @ text @d13 1 a13 1 cairo >= 1.1.2 @ 1.6 log @* README: fix typo. @ text @d13 1 a13 1 cairo >= 1.0.0 @ 1.5 log @* README: update dependencies. * packages/gtkcairo, packages/svgcairo: remove. @ text @d19 1 a19 1 rub ysetup.rb setup # to compile @ 1.4 log @API shakeup, watch out for falling pieces @ text @d13 1 a13 7 cairo >= 0.4.0 libsvg-cairo optional >= 0.1.4 # for svg parsing/rendering gtkcairo optional >= 0.4.0 # needed for gtk abilities ruby-gnome2 optional >= 0.11 # d18 2 a19 2 ./setup.rb config # to check for dependencies and create Makefiles ./setup.rb setup # to compile d24 1 a24 1 ./setup.rb install # to install the cairo extension. @ 1.3 log @reworking documentation @ text @d28 1 a28 1 # instaliing. @ 1.2 log @importing new incarnation of binding @ text @d1 2 a2 2 Dependencies: cairo, libpixman d4 1 a4 4 For gtkcairo widget: gtk+-2.0 gtkcairo from cairo cvs ruby-gnome2 with devel files d6 1 a7 1 After building with: d9 2 a10 2 ./setup.rb config ./setup.rb setup d12 2 a13 1 the samples should be usable prior to installing with d15 26 a40 1 ./setup.rb install a41 1 as root. @ 1.1 log @changed to use setup.rb from Minero Aoki, also directory reorganization @ text @d1 2 a2 1 AUTHORS d4 4 a7 2 Evan Martins Øyvind Kolås a8 1 PROVIDES cairo and gtkcairo bindings d10 1 a10 1 DEPENDS d12 8 a20 28 Module Cairo: dependencies: libcairo libpixman (you probably have these) xrender.h xlib.h ruby development headers mkmf (part of ruby development, seperate package in debian) recommended: Module GtkCairo dependencies: Cairo gtk+ 2.4.x glitz (not initialized for usage of the Cairo module png gtk+ 2.4.x glitz (how cross platform is glitz yet?, possible to only depend on glitz? need to check out input possiblities of glitz vs gtk+) Module CairoCanvas dependencies: Cairo GtkCairo @