cairo 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- data/ChangeLog +25 -0
- data/NEWS +8 -0
- data/Rakefile +5 -32
- data/doc/ja/cairo-context.html +1 -1
- data/doc/ja/index.html +0 -3
- data/extconf.rb +1 -0
- data/pkg-config.rb +4 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo_surface.c +6 -2
- metadata +7 -5
data/ChangeLog
CHANGED
@@ -1,3 +1,28 @@
|
|
1
|
+
2009-12-13 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* src/rb_cairo.c: 1.8.0 -> 1.8.1.
|
4
|
+
|
5
|
+
* NEWS: add 1.8.1 entry.
|
6
|
+
|
7
|
+
* Rakefile: remove install/uninstall tasks.
|
8
|
+
|
9
|
+
* Rakefile: use hoe 2.3.2.
|
10
|
+
|
11
|
+
* Rakefile: resupport FORCE_PLATFORM.
|
12
|
+
|
13
|
+
2009-03-27 Kouhei Sutou <kou@clear-code.com>
|
14
|
+
|
15
|
+
* pkg-config.rb: add license term.
|
16
|
+
|
17
|
+
2009-03-02 Kouhei Sutou <kou@cozmixng.org>
|
18
|
+
|
19
|
+
* pkg-config.rb (PackageConfig#guess_default_path): add
|
20
|
+
/usr/X11/lib/pkgconfig/.
|
21
|
+
|
22
|
+
2008-11-01 Kouhei Sutou <kou@cozmixng.org>
|
23
|
+
|
24
|
+
* extconf.rb, src/rb_cairo_surface.c: check ruby/io.h availability.
|
25
|
+
|
1
26
|
2008-09-26 Kouhei Sutou <kou@cozmixng.org>
|
2
27
|
|
3
28
|
* src/rb_cairo.c: 1.7.1 -> 1.8.0.
|
data/NEWS
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
Release 1.8.1 (2009-12-13) Kouhei Sutou <kou@cozmixng.org>)
|
2
|
+
===========================================================
|
3
|
+
|
4
|
+
Features
|
5
|
+
--------
|
6
|
+
* Support cairo 1.8.8.
|
7
|
+
* Improve auto .pc detection.
|
8
|
+
|
1
9
|
Release 1.8.0 (2008-09-26) Kouhei Sutou <kou@cozmixng.org>)
|
2
10
|
===========================================================
|
3
11
|
|
data/Rakefile
CHANGED
@@ -60,7 +60,8 @@ end
|
|
60
60
|
|
61
61
|
ENV["VERSION"] ||= guess_rcairo_version
|
62
62
|
version = ENV["VERSION"]
|
63
|
-
project = Hoe.
|
63
|
+
project = Hoe.spec('cairo') do |project|
|
64
|
+
project.version = version
|
64
65
|
project.rubyforge_name = 'cairo'
|
65
66
|
authors = File.join(base_dir, "AUTHORS")
|
66
67
|
project.author = File.readlines(authors).collect do |line|
|
@@ -79,6 +80,8 @@ project = Hoe.new('cairo', version) do |project|
|
|
79
80
|
:require_paths => ['src/lib', 'src'],
|
80
81
|
:has_rdoc => false,
|
81
82
|
}
|
83
|
+
platform = ENV["FORCE_PLATFORM"]
|
84
|
+
project.spec_extras[:platform] = platform if platform
|
82
85
|
news = File.join(base_dir, "NEWS")
|
83
86
|
project.changes = File.read(news).gsub(/\n+^Release(?m:.*)/, '')
|
84
87
|
project.description = "Ruby bindings for cairo"
|
@@ -103,39 +106,9 @@ end
|
|
103
106
|
|
104
107
|
# fix Hoe's incorrect guess.
|
105
108
|
project.spec.executables.clear
|
106
|
-
project.lib_files = project.spec.files.grep(%r|^src/lib/|)
|
107
|
-
|
108
|
-
# fix Hoe's install and uninstall task.
|
109
|
-
task(:install).instance_variable_get("@actions").clear
|
110
|
-
task(:uninstall).instance_variable_get("@actions").clear
|
111
109
|
|
112
110
|
task(:release).prerequisites.reject! {|name| name == "clean"}
|
113
|
-
|
114
|
-
task :install do
|
115
|
-
[
|
116
|
-
[project.lib_files, "lib", Hoe::RUBYLIB, 0444],
|
117
|
-
[project.bin_files, "bin", File.join(Hoe::PREFIX, 'bin'), 0555]
|
118
|
-
].each do |files, prefix, dest, mode|
|
119
|
-
FileUtils.mkdir_p dest unless test ?d, dest
|
120
|
-
files.each do |file|
|
121
|
-
base = File.dirname(file.sub(/^#{prefix}#{File::SEPARATOR}/, ''))
|
122
|
-
_dest = File.join(dest, base)
|
123
|
-
FileUtils.mkdir_p _dest unless test ?d, _dest
|
124
|
-
install file, _dest, :mode => mode
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
|
129
|
-
desc 'Uninstall the package.'
|
130
|
-
task :uninstall do
|
131
|
-
Dir.chdir Hoe::RUBYLIB do
|
132
|
-
rm_f project.lib_files.collect {|f| f.sub(/^lib#{File::SEPARATOR}/, '')}
|
133
|
-
end
|
134
|
-
Dir.chdir File.join(Hoe::PREFIX, 'bin') do
|
135
|
-
rm_f project.bin_files.collect {|f| f.sub(/^bin#{File::SEPARATOR}/, '')}
|
136
|
-
end
|
137
|
-
end
|
138
|
-
|
111
|
+
task(:release_to_rubyforge).prerequisites.reject! {|name| name == "clean"}
|
139
112
|
|
140
113
|
# for releasing
|
141
114
|
task :dist => [:docs] do
|
data/doc/ja/cairo-context.html
CHANGED
@@ -1061,7 +1061,7 @@ context.move_to(x + dx, y + dy)</pre>
|
|
1061
1061
|
<dt><a name="label-102" id="label-102"><code>select_font_face(<var>family</var>=<var>nil</var>, <var>slant</var>=<var>nil</var>, <var>weight</var>=<var>nil</var>)</code></a></dt><!-- RDLabel: "select_font_face" -->
|
1062
1062
|
<dd>
|
1063
1063
|
<p>注: このメソッドはcairoの設計者が「おもちゃのような」テ
|
1064
|
-
キストAPI
|
1064
|
+
キストAPIと呼んでいるものの一部です。小さなデモや単純な
|
1065
1065
|
プログラムには便利ですが、まじめにテキストを使うアプリ
|
1066
1066
|
ケーションに十分な能力があることは期待されていません。</p>
|
1067
1067
|
<p>フォント名、傾き、重みという単純化した記述からフォント
|
data/doc/ja/index.html
CHANGED
@@ -686,14 +686,11 @@
|
|
686
686
|
<li><a href="cairo-font-options.html#label-12">Cairo::FontOptions#hint_metrics=</a></li>
|
687
687
|
<li><a href="cairo-font-options.html#label-14">Cairo::FontOptions#hint_style</a></li>
|
688
688
|
<li><a href="cairo-font-options.html#label-15">Cairo::FontOptions#hint_style=</a></li>
|
689
|
-
<li><a href="cairo-font-options.html">Cairo::FontOptions#lcd_filter</a></li>
|
690
|
-
<li><a href="cairo-font-options.html">Cairo::FontOptions#lcd_filter=</a></li>
|
691
689
|
<li><a href="cairo-font-options.html#label-17">Cairo::FontOptions#merge</a></li>
|
692
690
|
<li><a href="cairo-font-options.html#label-18">Cairo::FontOptions#merge!</a></li>
|
693
691
|
<li><a href="cairo-font-options.html#label-7">Cairo::FontOptions#set_antialias</a></li>
|
694
692
|
<li><a href="cairo-font-options.html#label-13">Cairo::FontOptions#set_hint_metrics</a></li>
|
695
693
|
<li><a href="cairo-font-options.html#label-16">Cairo::FontOptions#set_hint_style</a></li>
|
696
|
-
<li><a href="cairo-font-options.html">Cairo::FontOptions#set_lcd_filter</a></li>
|
697
694
|
<li><a href="cairo-font-options.html#label-22">Cairo::FontOptions#set_subpixel_order</a></li>
|
698
695
|
<li><a href="cairo-font-options.html#label-20">Cairo::FontOptions#subpixel_order</a></li>
|
699
696
|
<li><a href="cairo-font-options.html#label-21">Cairo::FontOptions#subpixel_order=</a></li>
|
data/extconf.rb
CHANGED
@@ -81,6 +81,7 @@ major, minor, micro = 1, 2, 0
|
|
81
81
|
PKGConfig.have_package(pkg, major, minor, micro) or exit 1
|
82
82
|
|
83
83
|
have_header("ruby/st.h") unless have_macro("HAVE_RUBY_ST_H", "ruby.h")
|
84
|
+
have_header("ruby/io.h") unless have_macro("HAVE_RUBY_IO_H", "ruby.h")
|
84
85
|
have_func("rb_errinfo", "ruby.h")
|
85
86
|
have_type("enum ruby_value_type", "ruby.h")
|
86
87
|
|
data/pkg-config.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
# Copyright 2008-2009 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
# This file is made available under the same terms as Ruby.
|
3
|
+
|
1
4
|
require "rbconfig"
|
2
5
|
|
3
6
|
require 'mkmf'
|
@@ -206,6 +209,7 @@ class PackageConfig
|
|
206
209
|
"/opt/local/lib/pkgconfig",
|
207
210
|
"/usr/lib64/pkgconfig",
|
208
211
|
"/usr/lib/pkgconfig",
|
212
|
+
"/usr/X11/lib/pkgconfig/",
|
209
213
|
"/usr/share/pkgconfig"].join(separator)
|
210
214
|
libdir = ENV["PKG_CONFIG_LIBDIR"]
|
211
215
|
default_path = [libdir, default_path].join(separator) if libdir
|
data/src/rb_cairo.c
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* Ruby Cairo Binding
|
4
4
|
*
|
5
5
|
* $Author: kou $
|
6
|
-
* $Date:
|
6
|
+
* $Date: 2009-12-13 11:27:45 $
|
7
7
|
*
|
8
8
|
* Copyright 2006-2008 Kouhei Sutou <kou@cozmixng.org>
|
9
9
|
* Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
|
@@ -76,7 +76,7 @@ Init_cairo ()
|
|
76
76
|
|
77
77
|
rb_define_const (rb_mCairo, "BINDINGS_VERSION",
|
78
78
|
rb_ary_new3 (4,
|
79
|
-
INT2FIX (1), INT2FIX (8), INT2FIX (
|
79
|
+
INT2FIX (1), INT2FIX (8), INT2FIX (1), Qnil));
|
80
80
|
|
81
81
|
rb_define_module_function (rb_mCairo, "satisfied_version?",
|
82
82
|
rb_cairo_satisfied_version, -1);
|
data/src/rb_cairo_surface.c
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
* Ruby Cairo Binding
|
4
4
|
*
|
5
5
|
* $Author: kou $
|
6
|
-
* $Date: 2008-
|
6
|
+
* $Date: 2008-11-01 14:23:14 $
|
7
7
|
*
|
8
8
|
* Copyright 2005 Øyvind Kolås <pippin@freedesktop.org>
|
9
9
|
* Copyright 2004-2005 MenTaLguY <mental@rydia.com>
|
@@ -27,7 +27,11 @@
|
|
27
27
|
# undef OpenFile
|
28
28
|
#endif
|
29
29
|
|
30
|
-
#
|
30
|
+
#ifdef HAVE_RUBY_IO_H
|
31
|
+
# include <ruby/io.h>
|
32
|
+
#else
|
33
|
+
# include <rubyio.h>
|
34
|
+
#endif
|
31
35
|
|
32
36
|
#ifdef CAIRO_HAS_QUARTZ_SURFACE
|
33
37
|
# ifndef HAVE_TYPE_ENUM_RUBY_VALUE_TYPE
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cairo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Marin
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date:
|
15
|
+
date: 2009-12-13 00:00:00 +09:00
|
16
16
|
default_executable:
|
17
17
|
dependencies: []
|
18
18
|
|
@@ -375,8 +375,10 @@ files:
|
|
375
375
|
- test/test_text_to_glyphs_data.rb
|
376
376
|
- test/testzlib_d.exe
|
377
377
|
- test/untgz_d.exe
|
378
|
-
has_rdoc:
|
378
|
+
has_rdoc: true
|
379
379
|
homepage: http://cairographics.org/rcairo
|
380
|
+
licenses: []
|
381
|
+
|
380
382
|
post_install_message:
|
381
383
|
rdoc_options:
|
382
384
|
- --main
|
@@ -399,9 +401,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
399
401
|
requirements: []
|
400
402
|
|
401
403
|
rubyforge_project: cairo
|
402
|
-
rubygems_version: 1.
|
404
|
+
rubygems_version: 1.3.5
|
403
405
|
signing_key:
|
404
|
-
specification_version:
|
406
|
+
specification_version: 3
|
405
407
|
summary: Ruby bindings for cairo
|
406
408
|
test_files: []
|
407
409
|
|