gdk_pixbuf2 0.90.5 → 0.90.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * Rakefile, ext/gdk_pixbuf2/extconf.rb: share depended packages
4
+ vendor/local/.
5
+
6
+ * lib/gdk_pixbuf2.rb, ext/gdk_pixbuf2/extconf.rb: remove cairo
7
+ dependency.
8
+
9
+ 2011-01-22 Masaaki Aoyagi
10
+
11
+ * Rakefile: change to use gnome2-raketask.rb.
12
+
1
13
  2010-10-23 Kouhei Sutou <kou@cozmixng.org>
2
14
 
3
15
  * ext/gdk_pixbuf2/depend: ruby-gdkpixbuf2 -> ruby-gdk-pixbuf2.
data/Rakefile CHANGED
@@ -1,77 +1,12 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'pathname'
4
- require 'find'
5
- require 'rubygems'
6
- require 'rake/extensiontask'
3
+ require './../glib2/lib/gnome2-raketask'
7
4
 
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 = "gdk_pixbuf2"
31
-
32
- spec = Gem::Specification.new do |s|
33
- s.name = package_name
34
- s.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
35
- s.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-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
- compatible_version = version.split(/\./)[0, 3].join(".")
42
- s.add_dependency("glib2", ">= #{compatible_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,test}/**/*"]
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
- packages = ["glib", "gdk-pixbuf"]
73
- dependencies = ["gettext-runtime", "zlib", "libpng"]
74
- GNOME2Win32BinaryDownloader.download(:packages => packages,
75
- :dependencies => dependencies)
76
- end
5
+ package = GNOME2Package.new do |_package|
6
+ _package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
7
+ _package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
8
+ _package.dependency.gem.runtime = ["glib2"]
9
+ _package.win32.packages = ["gdk-pixbuf"]
10
+ _package.win32.dependencies = ["zlib", "libpng"]
77
11
  end
12
+ package.define_tasks
@@ -0,0 +1,162 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ #### Start of system configuration section. ####
5
+
6
+ srcdir = /home/kou/work/ruby/ruby-gnome2/gdk_pixbuf2/ext/gdk_pixbuf2
7
+ topdir = /usr/lib/ruby/1.8/x86_64-linux
8
+ hdrdir = $(topdir)
9
+ VPATH = $(srcdir):$(topdir):$(hdrdir)
10
+ exec_prefix = $(prefix)
11
+ prefix = $(DESTDIR)/usr
12
+ sharedstatedir = $(prefix)/com
13
+ mandir = $(prefix)/share/man
14
+ psdir = $(docdir)
15
+ oldincludedir = $(DESTDIR)/usr/include
16
+ localedir = $(datarootdir)/locale
17
+ bindir = $(exec_prefix)/bin
18
+ libexecdir = $(prefix)/lib/ruby1.8
19
+ sitedir = $(DESTDIR)/usr/local/lib/site_ruby
20
+ htmldir = $(docdir)
21
+ vendorarchdir = $(vendorlibdir)/$(sitearch)
22
+ includedir = $(prefix)/include
23
+ infodir = $(prefix)/share/info
24
+ vendorlibdir = $(vendordir)/$(ruby_version)
25
+ sysconfdir = $(DESTDIR)/etc
26
+ libdir = $(exec_prefix)/lib
27
+ sbindir = $(exec_prefix)/sbin
28
+ rubylibdir = $(libdir)/ruby/$(ruby_version)
29
+ docdir = $(datarootdir)/doc/$(PACKAGE)
30
+ dvidir = $(docdir)
31
+ vendordir = $(libdir)/ruby/vendor_ruby
32
+ datarootdir = $(prefix)/share
33
+ pdfdir = $(docdir)
34
+ archdir = $(rubylibdir)/$(arch)
35
+ sitearchdir = $(sitelibdir)/$(sitearch)
36
+ datadir = $(datarootdir)
37
+ localstatedir = $(DESTDIR)/var
38
+ sitelibdir = $(sitedir)/$(ruby_version)
39
+
40
+ CC = gcc
41
+ LIBRUBY = $(LIBRUBY_SO)
42
+ LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
+ LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
44
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
45
+
46
+ RUBY_EXTCONF_H =
47
+ CFLAGS = -fPIC -fno-strict-aliasing -g -g -O2 -fPIC $(cflags) -Wall -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -pthread -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/home/kou/work/ruby/rcairo/ext/cairo
48
+ INCFLAGS = -I. -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I/home/kou/work/ruby/ruby-gnome2/glib2/ext/glib2 -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/home/kou/work/ruby/ruby-gnome2/gdk_pixbuf2/ext/gdk_pixbuf2
49
+ DEFS =
50
+ CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_GDK_PIXBUF_SET_OPTION -DHAVE_GDK_PIXBUF_GDK_PIXBUF_IO_H -DHAVE_RB_CAIRO_H
51
+ CXXFLAGS = $(CFLAGS)
52
+ ldflags = -L. -rdynamic -Wl,-export-dynamic -pthread -pthread
53
+ dldflags =
54
+ archflag =
55
+ DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
+ LDSHARED = $(CC) -shared
57
+ AR = ar
58
+ EXEEXT =
59
+
60
+ RUBY_INSTALL_NAME = ruby1.8
61
+ RUBY_SO_NAME = ruby1.8
62
+ arch = x86_64-linux
63
+ sitearch = x86_64-linux
64
+ ruby_version = 1.8
65
+ ruby = /usr/bin/ruby1.8
66
+ RUBY = $(ruby)
67
+ RM = rm -f
68
+ MAKEDIRS = mkdir -p
69
+ INSTALL = /usr/bin/install -c
70
+ INSTALL_PROG = $(INSTALL) -m 0755
71
+ INSTALL_DATA = $(INSTALL) -m 644
72
+ COPY = cp
73
+
74
+ #### End of system configuration section. ####
75
+
76
+ preload =
77
+
78
+ libpath = . $(libdir)
79
+ LIBPATH = -L. -L$(libdir)
80
+ DEFFILE =
81
+
82
+ CLEANFILES = mkmf.log
83
+ DISTCLEANFILES =
84
+
85
+ extout =
86
+ extout_prefix =
87
+ target_prefix =
88
+ LOCAL_LIBS =
89
+ LIBS = $(LIBRUBYARG_SHARED) -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lpango-1.0 -lpangocairo-1.0 -lcairo -lgio-2.0 -lcairo -lpthread -lrt -ldl -lcrypt -lm -lc
90
+ SRCS = rbgdk-pixbufsimpleanim.c rbgdk-pixbuf-loader.c rbgdk-pixbufanimation.c rbgdk-pixbuf-format.c rbgdk-pixdata.c rbgdk-pixbuf.c
91
+ OBJS = rbgdk-pixbufsimpleanim.o rbgdk-pixbuf-loader.o rbgdk-pixbufanimation.o rbgdk-pixbuf-format.o rbgdk-pixdata.o rbgdk-pixbuf.o
92
+ TARGET = gdk_pixbuf2
93
+ DLLIB = $(TARGET).so
94
+ EXTSTATIC =
95
+ STATIC_LIB =
96
+
97
+ BINDIR = $(bindir)
98
+ RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
+ RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
+ RUBYARCHDIR = $(sitearchdir)$(target_prefix)
101
+
102
+ TARGET_SO = $(DLLIB)
103
+ CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
104
+ CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
+
106
+ all: $(DLLIB)
107
+ static: $(STATIC_LIB)
108
+
109
+ clean:
110
+ @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
+
112
+ distclean: clean
113
+ @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
+ @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
115
+
116
+ realclean: distclean
117
+ install: install-so install-rb
118
+
119
+ install-so: $(RUBYARCHDIR)
120
+ install-so: $(RUBYARCHDIR)/$(DLLIB)
121
+ $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
+ $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
123
+ install-rb: pre-install-rb install-rb-default
124
+ install-rb-default: pre-install-rb-default
125
+ pre-install-rb: Makefile
126
+ pre-install-rb-default: Makefile
127
+ $(RUBYARCHDIR):
128
+ $(MAKEDIRS) $@
129
+
130
+ site-install: site-install-so site-install-rb
131
+ site-install-so: install-so
132
+ site-install-rb: install-rb
133
+
134
+ .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
+
136
+ .cc.o:
137
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
138
+
139
+ .cxx.o:
140
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
141
+
142
+ .cpp.o:
143
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
144
+
145
+ .C.o:
146
+ $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
147
+
148
+ .c.o:
149
+ $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
150
+
151
+ $(DLLIB): $(OBJS) Makefile
152
+ @-$(RM) $@
153
+ $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
+
155
+
156
+
157
+ ###
158
+ install:
159
+ if test -n "$(pkgconfigdir)"; then \
160
+ $(MAKEDIRS) $(pkgconfigdir); \
161
+ $(INSTALL_DATA) ruby-gdk-pixbuf2.pc $(pkgconfigdir); \
162
+ fi
@@ -24,6 +24,15 @@ package_id = "gdk-pixbuf-2.0"
24
24
 
25
25
  require 'mkmf-gnome2'
26
26
 
27
+ ["glib2"].each do |package|
28
+ directory = "#{package}#{version_suffix}"
29
+ build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
30
+ add_depend_package(package, "#{directory}/ext/#{package}",
31
+ top_dir.to_s,
32
+ :top_build_dir => top_build_dir.to_s,
33
+ :target_build_dir => build_dir)
34
+ end
35
+
27
36
  setup_win32(module_name, base_dir)
28
37
 
29
38
  PKGConfig.have_package(package_id) or exit 1
@@ -33,30 +42,6 @@ have_func("gdk_pixbuf_set_option", "gdk-pixbuf/gdk-pixbuf.h") do |src|
33
42
  end
34
43
  have_header("gdk-pixbuf/gdk-pixbuf-io.h")
35
44
 
36
- if PKGConfig.have_package('gdk-2.0')
37
- options = {}
38
- rcairo_source_dir_names = ["rcairo"]
39
- if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
40
- rcairo_source_dir_names.unshift("rcairo.win32")
41
- end
42
- rcairo_source_dir_names.each do |rcairo_source_dir_name|
43
- rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
44
- if rcairo_source_dir.exist?
45
- options[:rcairo_source_dir] = rcairo_source_dir.to_s
46
- break
47
- end
48
- end
49
- check_cairo(options)
50
- end
51
-
52
- ["glib2"].each do |package|
53
- directory = "#{package}#{version_suffix}"
54
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
55
- add_depend_package(package, "#{directory}/ext/#{package}",
56
- top_dir.to_s,
57
- :top_build_dir => top_build_dir.to_s,
58
- :target_build_dir => build_dir)
59
- end
60
45
  create_pkg_config_file("Ruby/GdkPixbuf2", package_id, nil, "ruby-gdk-pixbuf2.pc")
61
46
  create_makefile(module_name)
62
47
 
@@ -0,0 +1,3 @@
1
+ Name: Ruby/GdkPixbuf2
2
+ Description: Ruby bindings for Image loading and scaling
3
+ Version: 0.90.6
@@ -1,13 +1,4 @@
1
1
  require 'glib2'
2
- begin
3
- begin
4
- require 'cairo'
5
- rescue LoadError
6
- require 'rubygems'
7
- require 'cairo'
8
- end
9
- rescue LoadError
10
- end
11
2
 
12
3
  base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
13
4
  vendor_dir = base_dir + "vendor" + "local"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gdk_pixbuf2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 381
4
+ hash: 379
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 5
10
- version: 0.90.5
9
+ - 6
10
+ version: 0.90.6
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-28 00:00:00 +09:00
18
+ date: 2011-01-30 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 381
29
+ hash: 379
30
30
  segments:
31
31
  - 0
32
32
  - 90
33
- - 5
34
- version: 0.90.5
33
+ - 6
34
+ version: 0.90.6
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  description: Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
@@ -48,31 +48,40 @@ files:
48
48
  - Rakefile
49
49
  - extconf.rb
50
50
  - lib/gdk_pixbuf2.rb
51
+ - ext/gdk_pixbuf2/gdk_pixbuf2.def
52
+ - ext/gdk_pixbuf2/rbgdk-pixbuf-format.o
53
+ - ext/gdk_pixbuf2/rbgdk-pixbuf.o
54
+ - ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.o
55
+ - ext/gdk_pixbuf2/Makefile
56
+ - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.o
57
+ - ext/gdk_pixbuf2/extconf.rb
51
58
  - ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c
52
59
  - ext/gdk_pixbuf2/rbgdk-pixbuf.h
53
- - ext/gdk_pixbuf2/extconf.rb
60
+ - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c
61
+ - ext/gdk_pixbuf2/ruby-gdk-pixbuf2.pc
62
+ - ext/gdk_pixbuf2/rbgdk-pixbufanimation.o
63
+ - ext/gdk_pixbuf2/rbgdk-pixbufanimation.c
64
+ - ext/gdk_pixbuf2/rbgdk-pixdata.o
65
+ - ext/gdk_pixbuf2/rbgdk-pixbuf-format.c
54
66
  - ext/gdk_pixbuf2/depend
67
+ - ext/gdk_pixbuf2/gdk_pixbuf2.so
55
68
  - ext/gdk_pixbuf2/rbgdk-pixdata.c
56
69
  - ext/gdk_pixbuf2/rbgdk-pixbuf.c
57
- - ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c
58
- - ext/gdk_pixbuf2/rbgdk-pixbuf-format.c
59
- - ext/gdk_pixbuf2/gdk_pixbuf2.def
60
- - ext/gdk_pixbuf2/rbgdk-pixbufanimation.c
61
- - sample/xpm.rb
62
- - sample/inline.rb
70
+ - sample/save.rb
71
+ - sample/simpleanim.rb
63
72
  - sample/utils.rb
64
- - sample/scale.rb
73
+ - sample/rotate.rb
65
74
  - sample/pixdata.rb
75
+ - sample/flip.rb
66
76
  - sample/loader.rb
67
- - sample/composite.rb
77
+ - sample/anim.rb
68
78
  - sample/floppybuddy.gif
69
- - sample/rotate.rb
70
- - sample/save.rb
71
- - sample/simpleanim.rb
79
+ - sample/scale.rb
72
80
  - sample/format.rb
81
+ - sample/inline.rb
73
82
  - sample/gnome-foot.png
74
- - sample/flip.rb
75
- - sample/anim.rb
83
+ - sample/xpm.rb
84
+ - sample/composite.rb
76
85
  has_rdoc: true
77
86
  homepage: http://ruby-gnome2.sourceforge.jp/
78
87
  licenses: []
@@ -87,10 +96,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
96
  requirements:
88
97
  - - ">="
89
98
  - !ruby/object:Gem::Version
90
- hash: 3
99
+ hash: 61
91
100
  segments:
92
- - 0
93
- version: "0"
101
+ - 1
102
+ - 8
103
+ - 5
104
+ version: 1.8.5
94
105
  required_rubygems_version: !ruby/object:Gem::Requirement
95
106
  none: false
96
107
  requirements: