rsvg2 0.90.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,188 @@
1
+ 2010-09-26 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * ext/rsvg2/rbrsvg.c: also check rb_cairo.h availability.
4
+ [#3075617] Cann't compile rsvg.
5
+ Reported by O01eg. Thanks!!!
6
+
7
+ 2010-09-23 Kouhei Sutou <kou@cozmixng.org>
8
+
9
+ * Rakefile: don't add .zip into gem.
10
+
11
+ * lib/rsvg2.rb: support bundled Windows DLL.
12
+
13
+ * ./: make buildable with rake-compiler.
14
+
15
+ 2010-09-22 Kouhei Sutou <kou@cozmixng.org>
16
+
17
+ * src/: -> ext/rsvg2/.
18
+
19
+ * src/lib/: -> lib/.
20
+
21
+ 2008-11-06 Kouhei Sutou <kou@cozmixng.org>
22
+
23
+ * extconf.rb: add missing librsvg/rsvg-cairo.h check.
24
+ Reported by James Healy. Thanks!!!
25
+
26
+ 2008-09-13 Kouhei Sutou <kou@cozmixng.org>
27
+
28
+ * extconf.rb: use check_cairo.
29
+
30
+ 2008-06-11 Kouhei Sutou <kou@cozmixng.org>
31
+
32
+ * extconf.rb: include librsvg/rsvg.h in have_func test.
33
+
34
+ 2008-04-13 Kouhei Sutou <kou@cozmixng.org>
35
+
36
+ * extconf.rb: fix rcairo's source path.
37
+
38
+ 2007-07-13 Guillaume Cottenceau
39
+
40
+ * src/rbrsvg.c: replace RTEST uses by RVAL2CBOOL
41
+
42
+ 2007-06-16 Kouhei Sutou <kou@cozmixng.org>
43
+
44
+ * src/rbrsvg.c: used RSTRING_LEN instead of RSTRING()->len to
45
+ support ruby 1.9.
46
+
47
+ 2006-12-10 Kouhei Sutou <kou@cozmixng.org>
48
+
49
+ * src/rbrsvg.c (RSVG::DimensionData#to_ary): defined as alias of
50
+ #to_a.
51
+
52
+ 2006-12-05 Kouhei Sutou <kou@cozmixng.org>
53
+
54
+ * extconf.rb: used glib_mkenums.
55
+
56
+ 2006-11-03 Kouhei Sutou <kou@cozmixng.org>
57
+
58
+ * sample/svg-viewer.rb: added new sample.
59
+
60
+ 2006-07-01 Kouhei Sutou <kou@cozmixng.org>
61
+
62
+ * src/rbrsvg.c (rb_rsvg_pixbuf_from_file_at_zoom_ex): fixed a
63
+ memory leak.
64
+
65
+ 2006-07-01 Masao Mutoh <mutoh@highway.ne.jp>
66
+
67
+ * src/rbrsvg.c (rb_rsvg_pixbuf_from_file_at_max_size_ex): Fix a
68
+ compilation problem.
69
+
70
+ 2006-06-17 Masao Mutoh <mutoh@highway.ne.jp>
71
+
72
+ * sample/rsvg2.rb: added header part.
73
+
74
+ 2006-06-07 Kouhei Sutou <kou@cozmixng.org>
75
+
76
+ * src/rbrsvg.c: fixed memory leak bugs related GdkPixbuf.
77
+
78
+ 2006-05-12 Kouhei Sutou <kou@cozmixng.org>
79
+
80
+ * src/rbrsvg.c (rb_rsvg_handle_initialize): use G_INITIALIZE if
81
+ available.
82
+
83
+ 2006-05-08 Kouhei Sutou <kou@cozmixng.org>
84
+
85
+ * src/rbrsvg.c (Init_rsvg2): Don't use
86
+ librsvg_{major,minor,micro}_version because they became to local
87
+ variable.
88
+
89
+ 2006-03-22 Kouhei Sutou <kou@cozmixng.org>
90
+
91
+ * src/rbrsvg.c: hid rsvg_init() and rsvg_term() from Ruby.
92
+ * src/lib/rsvg2.rb: ditto.
93
+
94
+ * sample/svg2.rb:
95
+ - added workaround of rsvg_handle_new_from()'s bug.
96
+ - fixed typo.
97
+
98
+ 2006-03-17 Kouhei Sutou <kou@cozmixng.org>
99
+
100
+ * src/rbrsvg.c: Supported 2.14.
101
+ * src/lib/rsvg2.rb: ditto.
102
+ * extconf.rb: ditto.
103
+
104
+ * sample/svg2.rb: Added an example with cairo.
105
+
106
+ * README:
107
+ - Fixed format.
108
+ - Updated copying.
109
+
110
+ 2006-01-19 Kouhei Sutou <kou@cozmixng.org>
111
+
112
+ * src/rbrsvg.c: Added RSVG::BINDING_VERSION, RBRSVG_MAJOR_VERSION,
113
+ RBRSVG_MINOR_VERSION, RBRSVG_MICRO_VERSION.
114
+
115
+ 2005-10-10 Kouhei Sutou <kou@cozmixng.org>
116
+
117
+ * src/rbrsvg.c:
118
+ - Added RSVG::VERSION, RSVG::MAJOR_VERSION, RSVG::MINOR_VERSION
119
+ and RSVG::MICRO_VERSION.
120
+ - Revised copyright information.
121
+ - Fixed indentation.
122
+
123
+ 2005-09-30 Kouhei Sutou <kou@cozmixng.org>
124
+
125
+ * src/rbrsvg.c: Support 2.9, 2.11 and 2.12.
126
+ * src/lib/rsvg2.rb: ditto.
127
+
128
+ 2005-07-24 Masao Mutoh <mutoh@highway.ne.jp>
129
+
130
+ * src/rbrsvg.c: Fix compiling warnings.
131
+
132
+ 2005-07-17 Kouhei Sutou <kou@cozmixng.org>
133
+
134
+ * extconf.rb: check system has librsvg/rsvg-gz.h header or not.
135
+
136
+ * src/rbrsvg.c: include librsvg/rsvg.h instead of
137
+ librsvg/rsvg-gz.h if librsvg/rsvg-gz.h is not exist.
138
+
139
+ * src/rbrsvg.c (rb_rsvg_handle_new): use rsvg_handle_new for
140
+ fallback if librsvg/rsvg-gz.h is not exist and we are required
141
+ gz handling.
142
+
143
+ 2005-06-13 Kouhei Sutou <kou@cozmixng.org>
144
+
145
+ * src/rbrsvg.c: fixed macro name. (HAVE_LIBRSVG_LIBRSVG_ENUM_TYPES_H)
146
+
147
+ 2005-06-12 Kouhei Sutou <kou@cozmixng.org>
148
+
149
+ * extconf.rb: added librsvg/ prefix to "#{enum_type_prefix}.h".
150
+
151
+ 2005-06-11 Kouhei Sutou <kou@cozmixng.org>
152
+
153
+ * src/rbrsvg.c: removed `_ex' suffix.
154
+
155
+ 2005-03-09 Kouhei Sutou <kou@cozmixng.org>
156
+
157
+ * README: fixed dependencies.
158
+
159
+ 2005-03-05 Masao Mutoh <mutoh@highway.ne.jp>
160
+
161
+ * extconf.rb: extconf.rb uses PKGConfig.cflags_only_I instead of
162
+ calling pkg-config directly.
163
+
164
+ 2005-02-23 Kouhei Sutou <kou@cozmixng.org>
165
+
166
+ * extconf.rb (mkenums): added dummy $makefile_created setup code
167
+ for inhibiting failed message of mkmf.rb in ruby 1.9.
168
+
169
+ 2005-01-30 Masao Mutoh <mutoh@highway.ne.jp>
170
+
171
+ * extconf.rb: Follow mkmf-gnome2.rb changes.
172
+
173
+ 2004-11-21 Kouhei Sutou <kou@cozmixng.org>
174
+
175
+ * extconf.rb: added librsvg-enum-types.{c,h} generation code.
176
+
177
+ * src/rbrsvg.c: used G_DEF_ERROR and RAISE_GERROR.
178
+
179
+ 2004-11-14 Masao Mutoh <mutoh@highway.ne.jp>
180
+
181
+ * src/rbrsvg.c: Fixed warnings under rsvg-2.6.x.
182
+
183
+ 2004-11-13 Kouhei Sutou <kou@cozmixng.org>
184
+
185
+ * README: Fixed requirements.
186
+
187
+ * rsvg: imported.
188
+
data/README ADDED
@@ -0,0 +1,35 @@
1
+ Ruby/RSVG
2
+ =========
3
+
4
+ Ruby/RSVG is a Ruby binding of librsvg.
5
+
6
+ Requirements
7
+ ------------
8
+
9
+ Ruby: http://www.ruby-lang.org/
10
+ librsvg [*]: http://librsvg.sourceforge.net/
11
+ Ruby/GLib2: http://ruby-gnome2.sourceforge.net/
12
+ Ruby/GdkPixbuf2: http://ruby-gnome2.sourceforge.net/
13
+
14
+ [*]: 2.8 or later is requried.
15
+
16
+ Install
17
+ -------
18
+
19
+ 0. install ruby and librsvg.
20
+ 1. ruby extconf.rb
21
+ 2. make
22
+ 3. su
23
+ 4. make install
24
+
25
+ Copying
26
+ -------
27
+ Copyright (c) 2002-2006 Ruby-GNOME2 Project Team
28
+
29
+ This program is free software.
30
+ You can distribute/modify this program under the terms of
31
+ the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
32
+
33
+ Project Website
34
+ ---------------
35
+ http://ruby-gnome2.sourceforge.jp/
@@ -0,0 +1,74 @@
1
+ # -*- ruby -*-
2
+
3
+ require 'pathname'
4
+ require 'find'
5
+ require 'rubygems'
6
+ require 'rake/extensiontask'
7
+
8
+ @top_dir = Pathname(__FILE__).dirname.parent.expand_path
9
+ @rb_glib2_dir = @top_dir + "glib2"
10
+
11
+ task :default => :build
12
+
13
+ def version
14
+ @version ||= ENV["VERSION"] || guess_version
15
+ end
16
+
17
+ def guess_version
18
+ versions = {}
19
+ rbglib_h_path = @rb_glib2_dir + "ext" + "glib2" + "rbglib.h"
20
+ rbglib_h_path.open do |rbglib_h|
21
+ rbglib_h.each_line do |line|
22
+ if /#define\s+RBGLIB_([A-Z]+)_VERSION\s+(\d+)/ =~ line
23
+ versions[$1.downcase] = $2.to_i
24
+ end
25
+ end
26
+ end
27
+ ["major", "minor", "micro"].collect {|type| versions[type]}.compact.join(".")
28
+ end
29
+
30
+ package_name = "rsvg2"
31
+
32
+ spec = Gem::Specification.new do |s|
33
+ s.name = package_name
34
+ s.summary = "Ruby/RSVG is a Ruby binding of librsvg-2.x."
35
+ s.description = "Ruby/RSVG is a Ruby binding of librsvg-2.x."
36
+ s.author = "The Ruby-GNOME2 Proejct Team"
37
+ s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
38
+ s.homepage = "http://ruby-gnome2.sourceforge.jp/"
39
+ s.version = version
40
+ s.platform = Gem::Platform::RUBY
41
+ s.add_dependency("cairo", ">= 1.10.0")
42
+ s.add_dependency("glib2", "= #{version}")
43
+ s.extensions = FileList["ext/#{package_name}/extconf.rb"]
44
+ s.require_paths = ["lib"]
45
+ s.files = FileList["ChangeLog", "README", "Rakefile", "extconf.rb",
46
+ "lib/**/*.rb", "{ext,sample}/**/*"]
47
+ end
48
+
49
+ Rake::GemPackageTask.new(spec) do |pkg|
50
+ end
51
+
52
+ Rake::ExtensionTask.new(package_name, spec) do |ext|
53
+ ext.cross_compile = true
54
+ ext.cross_compiling do |spec|
55
+ if /mingw|mswin/ =~ spec.platform.to_s
56
+ win32_dir = File.join("vendor", "local")
57
+ win32_files = []
58
+ Find.find(win32_dir) do |file|
59
+ next if /\.zip\z/ =~ file
60
+ win32_files << file
61
+ end
62
+ spec.files += win32_files
63
+ end
64
+ end
65
+ end
66
+
67
+ namespace :win32 do
68
+ desc "download Windows binaries"
69
+ task :download do
70
+ $LOAD_PATH.unshift((@rb_glib2_dir + "lib").to_s)
71
+ require 'gnome2-win32-binary-downloader'
72
+ GNOME2Win32BinaryDownloader.download(:packages => ["gtk+", "librsvg"])
73
+ end
74
+ end
@@ -0,0 +1,155 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ #### Start of system configuration section. ####
5
+
6
+ srcdir = /home/kou/work/ruby/ruby-gnome2/rsvg/src
7
+ topdir = /usr/lib/ruby/1.8/x86_64-linux
8
+ hdrdir = $(topdir)
9
+ VPATH = $(srcdir):$(topdir):$(hdrdir)
10
+ prefix = $(DESTDIR)/usr
11
+ exec_prefix = $(prefix)
12
+ sitedir = $(DESTDIR)/usr/local/lib/site_ruby
13
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
14
+ docdir = $(datarootdir)/doc/$(PACKAGE)
15
+ dvidir = $(docdir)
16
+ datarootdir = $(prefix)/share
17
+ archdir = $(rubylibdir)/$(arch)
18
+ sbindir = $(exec_prefix)/sbin
19
+ psdir = $(docdir)
20
+ localedir = $(datarootdir)/locale
21
+ htmldir = $(docdir)
22
+ datadir = $(datarootdir)
23
+ includedir = $(prefix)/include
24
+ infodir = $(prefix)/share/info
25
+ sysconfdir = $(DESTDIR)/etc
26
+ mandir = $(prefix)/share/man
27
+ libdir = $(exec_prefix)/lib
28
+ sharedstatedir = $(prefix)/com
29
+ oldincludedir = $(DESTDIR)/usr/include
30
+ pdfdir = $(docdir)
31
+ sitearchdir = $(sitelibdir)/$(sitearch)
32
+ bindir = $(exec_prefix)/bin
33
+ localstatedir = $(DESTDIR)/var
34
+ sitelibdir = $(sitedir)/$(ruby_version)
35
+ libexecdir = $(prefix)/lib/ruby1.8
36
+
37
+ CC = cc
38
+ LIBRUBY = $(LIBRUBY_SO)
39
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
40
+ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
41
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
42
+
43
+ RUBY_EXTCONF_H =
44
+ CFLAGS = -fPIC -fno-strict-aliasing -g -O2 -fPIC -Wall -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -DPNG_NO_MMX_CODE -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12
45
+ INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/glib/src -I/home/kou/work/ruby/ruby-gnome2/glib/src -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/rsvg
46
+ CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_RSVG_SET_DEFAULT_DPI -DHAVE_RSVG_SET_DEFAULT_DPI_X_Y -DHAVE_RSVG_HANDLE_SET_DPI -DHAVE_RSVG_HANDLE_SET_DPI_X_Y -DHAVE_RSVG_HANDLE_GET_METADATA -DHAVE_RSVG_HANDLE_FREE -DHAVE_RSVG_HANDLE_GET_PIXBUF_SUB -DHAVE_TYPE_RSVGDIMENSIONDATA -DHAVE_RB_CAIRO_H -DHAVE_LIBRSVG_RSVG_CAIRO_H -DHAVE_LIBRSVG_LIBRSVG_ENUM_TYPES_H -DRUBY_RSVG2_COMPILATION -I/usr/local/lib/site_ruby/1.8/x86_64-linux
47
+ CXXFLAGS = $(CFLAGS)
48
+ DLDFLAGS = -L. -rdynamic -Wl,-export-dynamic
49
+ LDSHARED = $(CC) -shared
50
+ AR = ar
51
+ EXEEXT =
52
+
53
+ RUBY_INSTALL_NAME = ruby1.8
54
+ RUBY_SO_NAME = ruby1.8
55
+ arch = x86_64-linux
56
+ sitearch = x86_64-linux
57
+ ruby_version = 1.8
58
+ ruby = /usr/bin/ruby1.8
59
+ RUBY = $(ruby)
60
+ RM = rm -f
61
+ MAKEDIRS = mkdir -p
62
+ INSTALL = /usr/bin/install -c
63
+ INSTALL_PROG = $(INSTALL) -m 0755
64
+ INSTALL_DATA = $(INSTALL) -m 644
65
+ COPY = cp
66
+
67
+ #### End of system configuration section. ####
68
+
69
+ preload =
70
+
71
+ libpath = . $(libdir)
72
+ LIBPATH = -L"." -L"$(libdir)"
73
+ DEFFILE =
74
+
75
+ CLEANFILES = mkmf.log
76
+ DISTCLEANFILES =
77
+
78
+ extout =
79
+ extout_prefix =
80
+ target_prefix =
81
+ LOCAL_LIBS =
82
+ LIBS = $(LIBRUBYARG_SHARED) -lrsvg-2 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcairo -lpthread -ldl -lcrypt -lm -lc
83
+ SRCS = rbrsvg.c
84
+ OBJS = rbrsvg.o
85
+ TARGET = rsvg2
86
+ DLLIB = $(TARGET).so
87
+ EXTSTATIC =
88
+ STATIC_LIB =
89
+
90
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
91
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
92
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
93
+
94
+ TARGET_SO = $(DLLIB)
95
+ CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
96
+ CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
97
+
98
+ all: $(DLLIB)
99
+ static: $(STATIC_LIB)
100
+
101
+ clean:
102
+ @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
103
+
104
+ distclean: clean
105
+ @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
106
+ @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
107
+
108
+ realclean: distclean
109
+ install: install-so install-rb
110
+
111
+ install-so: $(RUBYARCHDIR)
112
+ install-so: $(RUBYARCHDIR)/$(DLLIB)
113
+ $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
114
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
115
+ install-rb: pre-install-rb install-rb-default
116
+ install-rb-default: pre-install-rb-default
117
+ pre-install-rb: Makefile
118
+ pre-install-rb-default: Makefile
119
+ pre-install-rb-default: $(RUBYLIBDIR)
120
+ install-rb-default: $(RUBYLIBDIR)/rsvg2.rb
121
+ $(RUBYLIBDIR)/rsvg2.rb: /home/kou/work/ruby/ruby-gnome2/rsvg/src/lib/rsvg2.rb
122
+ $(INSTALL_DATA) /home/kou/work/ruby/ruby-gnome2/rsvg/src/lib/rsvg2.rb $(@D)
123
+ $(RUBYARCHDIR):
124
+ $(MAKEDIRS) $@
125
+ $(RUBYLIBDIR):
126
+ $(MAKEDIRS) $@
127
+
128
+ site-install: site-install-so site-install-rb
129
+ site-install-so: install-so
130
+ site-install-rb: install-rb
131
+
132
+ .SUFFIXES: .c .m .cc .cxx .cpp .C .o
133
+
134
+ .cc.o:
135
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
136
+
137
+ .cxx.o:
138
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
139
+
140
+ .cpp.o:
141
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
142
+
143
+ .C.o:
144
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
145
+
146
+ .c.o:
147
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
148
+
149
+ $(DLLIB): $(OBJS)
150
+ @-$(RM) $@
151
+ $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
152
+
153
+
154
+
155
+ $(OBJS): ruby.h defines.h