rsvg2 0.90.4 → 0.90.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/Rakefile +13 -2
  2. data/ext/rsvg2/extconf.rb +8 -0
  3. metadata +8 -9
  4. data/ext/rsvg2/Makefile +0 -155
data/Rakefile CHANGED
@@ -63,6 +63,18 @@ Rake::ExtensionTask.new(package_name, spec) do |ext|
63
63
  spec.files += win32_files
64
64
  end
65
65
  end
66
+
67
+ def ext.define_compile_tasks(for_platform=nil, ruby_ver=RUBY_VERSION)
68
+ super
69
+ platf = for_platform || platform
70
+ return unless /mingw|mswin/ =~ platf
71
+ lib_path = lib_dir
72
+ tmp_path = "#{@tmp_dir}/#{platf}/#{@name}/#{ruby_ver}"
73
+ lib_a = "#{tmp_path}/libruby-#{@name}.a"
74
+ task "copy:#{@name}:#{platf}:#{ruby_ver}" => [lib_path, lib_a] do
75
+ cp lib_a, lib_path
76
+ end
77
+ end
66
78
  end
67
79
 
68
80
  namespace :win32 do
@@ -70,8 +82,7 @@ namespace :win32 do
70
82
  task :download do
71
83
  $LOAD_PATH.unshift((@rb_glib2_dir + "lib").to_s)
72
84
  require 'gnome2-win32-binary-downloader'
73
- packages = ["glib", "atk", "gdk-pixbuf", "pango", "gtk+",
74
- "librsvg", "libcroco"]
85
+ packages = ["glib", "gdk-pixbuf", "pango", "librsvg", "libcroco", "libgsf"]
75
86
  dependencies = ["gettext-runtime", "zlib", "freetype", "expat",
76
87
  "fontconfig", "cairo", "libpng"]
77
88
  GNOME2Win32BinaryDownloader.download(:packages => packages,
data/ext/rsvg2/extconf.rb CHANGED
@@ -77,3 +77,11 @@ unless have_header("librsvg/#{enum_type_prefix}.h")
77
77
  glib_mkenums(enum_type_prefix, headers, "RSVG_TYPE_", ["librsvg/rsvg.h"])
78
78
  end
79
79
  create_makefile(module_name)
80
+
81
+ pkg_config_dir = with_config("pkg-config-dir")
82
+ if pkg_config_dir.is_a?(String)
83
+ File.open("Makefile", "ab") do |makefile|
84
+ makefile.puts
85
+ makefile.puts("pkgconfigdir=#{pkg_config_dir}")
86
+ end
87
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsvg2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 383
4
+ hash: 381
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 4
10
- version: 0.90.4
9
+ - 5
10
+ version: 0.90.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-24 00:00:00 +09:00
18
+ date: 2010-10-29 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- hash: 383
45
+ hash: 381
46
46
  segments:
47
47
  - 0
48
48
  - 90
49
- - 4
50
- version: 0.90.4
49
+ - 5
50
+ version: 0.90.5
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  description: Ruby/RSVG is a Ruby binding of librsvg-2.x.
@@ -64,11 +64,10 @@ files:
64
64
  - Rakefile
65
65
  - extconf.rb
66
66
  - lib/rsvg2.rb
67
- - ext/rsvg2/Makefile
68
67
  - ext/rsvg2/extconf.rb
69
- - ext/rsvg2/rsvg2.def
70
68
  - ext/rsvg2/depend
71
69
  - ext/rsvg2/rbrsvg.c
70
+ - ext/rsvg2/rsvg2.def
72
71
  - sample/svg2.rb
73
72
  - sample/svg-viewer.rb
74
73
  has_rdoc: true
data/ext/rsvg2/Makefile DELETED
@@ -1,155 +0,0 @@
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