atk 0.90.5 → 0.90.6

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,12 @@
1
+ 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * Rakefile, ext/atk/extconf.rb: share depended packages
4
+ vendor/local/.
5
+
6
+ 2011-01-22 Masaaki Aoyagi
7
+
8
+ * Rakefile: change to use gnome2-raketask.rb.
9
+
1
10
  2010-09-23 Kouhei Sutou <kou@cozmixng.org>
2
11
 
3
12
  * Rakefile: don't add .zip into gem.
data/Rakefile CHANGED
@@ -1,75 +1,13 @@
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 = "atk"
31
-
32
- spec = Gem::Specification.new do |s|
33
- s.name = package_name
34
- s.summary = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
35
- s.description = "Ruby/ATK is a Ruby binding of ATK-1.0.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/**/*"]
47
- end
48
-
49
- Rake::GemPackageTask.new(spec) do |pkg|
5
+ package = GNOME2Package.new do |_package|
6
+ _package.summary = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
7
+ _package.description = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
8
+ _package.dependency.gem.runtime = ["glib2"]
9
+ _package.win32.packages = ["atk"]
10
+ _package.win32.dependencies = []
50
11
  end
12
+ package.define_tasks
51
13
 
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 => ["glib", "atk"],
73
- :dependencies => ["gettext-runtime"])
74
- end
75
- end
@@ -0,0 +1,166 @@
1
+
2
+ SHELL = /bin/sh
3
+
4
+ #### Start of system configuration section. ####
5
+
6
+ srcdir = /home/kou/work/ruby/ruby-gnome2/atk/ext/atk
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/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
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/atk/ext/atk
49
+ DEFS =
50
+ CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_ATK_ACTION_GET_LOCALIZED_NAME -DHAVE_ATK_HYPERLINK_IS_INLINE -DHAVE_ATK_OBJECT_ADD_RELATIONSHIP -DHAVE_ATK_OBJECT_REMOVE_RELATIONSHIP -DHAVE_ATK_COMPONENT_GET_LAYER -DHAVE_ATK_COMPONENT_GET_MDI_ZORDER -DHAVE_ATK_HYPERLINK_IS_SELECTED_LINK -DHAVE_ATK_TEXT_GET_BOUNDED_RANGES -DHAVE_ATK_ROLE_GET_LOCALIZED_NAME -DHAVE_ATK_TEXT_CLIP_TYPE_GET_TYPE -DHAVE_ATK_TEXT_FREE_RANGES -DRUBY_ATK_COMPILATION
51
+ CXXFLAGS = $(CFLAGS)
52
+ ldflags = -L. -rdynamic -Wl,-export-dynamic -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 = rbatkinits.c rbatkversion.h
84
+
85
+ extout =
86
+ extout_prefix =
87
+ target_prefix =
88
+ LOCAL_LIBS =
89
+ LIBS = $(LIBRUBYARG_SHARED) -latk-1.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -lrt -lpthread -lrt -ldl -lcrypt -lm -lc
90
+ SRCS = rbatkutil.c rbatknoopobject.c rbatkgobjectaccessible.c rbatkinits.c rbatkhyperlink.c rbatkcomponent.c rbatktext.c rbatkstateset.c rbatkregistry.c rbatkimage.c rbatkdocument.c rbatkrelationset.c rbatkobjectfactory.c rbatk.c rbatkstreamablecontent.c rbatkimplementor.c rbatkvalue.c rbatkrelation.c rbatkaction.c rbatktable.c rbatktextrange.c rbatktextrectangle.c rbatkselection.c rbatkhypertext.c rbatkstate.c rbatkeditabletext.c rbatknoopobjectfactory.c rbatkobject.c
91
+ OBJS = rbatkutil.o rbatknoopobject.o rbatkgobjectaccessible.o rbatkinits.o rbatkhyperlink.o rbatkcomponent.o rbatktext.o rbatkstateset.o rbatkregistry.o rbatkimage.o rbatkdocument.o rbatkrelationset.o rbatkobjectfactory.o rbatk.o rbatkstreamablecontent.o rbatkimplementor.o rbatkvalue.o rbatkrelation.o rbatkaction.o rbatktable.o rbatktextrange.o rbatktextrectangle.o rbatkselection.o rbatkhypertext.o rbatkstate.o rbatkeditabletext.o rbatknoopobjectfactory.o rbatkobject.o
92
+ TARGET = atk
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-so:
159
+ $(INSTALL_DATA) $(srcdir)/rbatk.h $(RUBYARCHDIR)
160
+ $(INSTALL_DATA) rbatkversion.h $(RUBYARCHDIR)
161
+
162
+ install:
163
+ if test -n "$(pkgconfigdir)"; then \
164
+ $(MAKEDIRS) $(pkgconfigdir); \
165
+ $(INSTALL_DATA) ruby-atk.pc $(pkgconfigdir); \
166
+ fi
Binary file
@@ -24,6 +24,15 @@ package_id = "atk"
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
@@ -42,15 +51,6 @@ have_func('atk_text_clip_type_get_type', atk_header)
42
51
 
43
52
  have_func('atk_text_free_ranges', atk_header)
44
53
 
45
- ["glib2"].each do |package|
46
- directory = "#{package}#{version_suffix}"
47
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
48
- add_depend_package(package, "#{directory}/ext/#{package}",
49
- top_dir.to_s,
50
- :top_build_dir => top_build_dir.to_s,
51
- :target_build_dir => build_dir)
52
- end
53
-
54
54
  add_distcleanfile("rbatkinits.c")
55
55
 
56
56
  make_version_header("ATK", package_id, ".")
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,25 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /************************************************
3
+
4
+ rbatkversion.h -
5
+
6
+ This file was generated by mkmf-gnome2.rb.
7
+
8
+ ************************************************/
9
+
10
+ #ifndef __RBATK_VERSION_H__
11
+ #define __RBATK_VERSION_H__
12
+
13
+ #define ATK_MAJOR_VERSION (2)
14
+ #define ATK_MINOR_VERSION (0)
15
+ #define ATK_MICRO_VERSION (0)
16
+ #define ATK_TAG_VERSION (b7)
17
+
18
+ #define ATK_CHECK_VERSION(major,minor,micro) \
19
+ (ATK_MAJOR_VERSION > (major) || \
20
+ (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION > (minor)) || \
21
+ (ATK_MAJOR_VERSION == (major) && ATK_MINOR_VERSION == (minor) && \
22
+ ATK_MICRO_VERSION >= (micro)))
23
+
24
+
25
+ #endif /* __RBATK_VERSION_H__ */
@@ -0,0 +1,3 @@
1
+ Name: Ruby/ATK
2
+ Description: Ruby bindings for Accessibility Toolkit
3
+ Version: 0.90.6
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk
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/ATK is a Ruby binding of ATK-1.0.x.
@@ -48,39 +48,71 @@ files:
48
48
  - Rakefile
49
49
  - extconf.rb
50
50
  - lib/atk.rb
51
+ - ext/atk/rbatkutil.c
52
+ - ext/atk/rbatk.o
51
53
  - ext/atk/rbatknoopobject.c
52
- - ext/atk/rbatkrelation.c
53
- - ext/atk/rbatk.c
54
- - ext/atk/rbatkobject.c
55
- - ext/atk/rbatkdocument.c
56
- - ext/atk/rbatktextrectangle.c
57
- - ext/atk/extconf.rb
58
- - ext/atk/makeinits.rb
54
+ - ext/atk/rbatknoopobject.o
55
+ - ext/atk/rbatktext.o
56
+ - ext/atk/atk.so
57
+ - ext/atk/rbatkstreamablecontent.o
58
+ - ext/atk/rbatkimplementor.o
59
+ - ext/atk/rbatkgobjectaccessible.c
60
+ - ext/atk/rbatkobject.o
61
+ - ext/atk/rbatkinits.c
62
+ - ext/atk/rbatkimage.o
63
+ - ext/atk/rbatkhyperlink.c
59
64
  - ext/atk/rbatkcomponent.c
65
+ - ext/atk/rbatkdocument.o
60
66
  - ext/atk/rbatktext.c
61
- - ext/atk/depend
62
- - ext/atk/rbatkimplementor.c
63
67
  - ext/atk/rbatkstateset.c
64
- - ext/atk/rbatkhyperlink.c
65
68
  - ext/atk/rbatkregistry.c
66
- - ext/atk/rbatkselection.c
67
- - ext/atk/rbatkeditabletext.c
68
- - ext/atk/rbatkaction.c
69
- - ext/atk/rbatkstreamablecontent.c
70
- - ext/atk/rbatkutil.c
71
- - ext/atk/rbatkstate.c
72
- - ext/atk/rbatk.h
73
- - ext/atk/rbatkvalue.c
69
+ - ext/atk/makeinits.rb
70
+ - ext/atk/rbatkgobjectaccessible.o
74
71
  - ext/atk/rbatkimage.c
75
- - ext/atk/rbatknoopobjectfactory.c
76
- - ext/atk/atk.def
72
+ - ext/atk/rbatkrelationset.o
73
+ - ext/atk/rbatkdocument.c
74
+ - ext/atk/rbatknoopobjectfactory.o
77
75
  - ext/atk/rbatkrelationset.c
78
- - ext/atk/rbatkinits.c
79
- - ext/atk/rbatktextrange.c
80
- - ext/atk/rbatkgobjectaccessible.c
81
- - ext/atk/rbatkhypertext.c
76
+ - ext/atk/rbatkselection.o
77
+ - ext/atk/Makefile
78
+ - ext/atk/atk.def
79
+ - ext/atk/rbatkstateset.o
80
+ - ext/atk/rbatktextrange.o
81
+ - ext/atk/rbatkinits.o
82
+ - ext/atk/rbatkobjectfactory.o
82
83
  - ext/atk/rbatkobjectfactory.c
84
+ - ext/atk/rbatk.c
85
+ - ext/atk/rbatkeditabletext.o
86
+ - ext/atk/rbatkstreamablecontent.c
87
+ - ext/atk/rbatkimplementor.c
88
+ - ext/atk/rbatkvalue.c
89
+ - ext/atk/extconf.rb
90
+ - ext/atk/rbatkrelation.c
91
+ - ext/atk/rbatkvalue.o
92
+ - ext/atk/rbatkcomponent.o
93
+ - ext/atk/rbatkaction.c
94
+ - ext/atk/rbatktable.o
95
+ - ext/atk/rbatkhyperlink.o
96
+ - ext/atk/rbatkrelation.o
83
97
  - ext/atk/rbatktable.c
98
+ - ext/atk/rbatkstate.o
99
+ - ext/atk/rbatktextrange.c
100
+ - ext/atk/rbatkutil.o
101
+ - ext/atk/rbatkhypertext.o
102
+ - ext/atk/rbatktextrectangle.c
103
+ - ext/atk/rbatkselection.c
104
+ - ext/atk/rbatk.h
105
+ - ext/atk/rbatkhypertext.c
106
+ - ext/atk/rbatktextrectangle.o
107
+ - ext/atk/rbatkregistry.o
108
+ - ext/atk/rbatkversion.h
109
+ - ext/atk/depend
110
+ - ext/atk/rbatkstate.c
111
+ - ext/atk/rbatkeditabletext.c
112
+ - ext/atk/rbatkaction.o
113
+ - ext/atk/ruby-atk.pc
114
+ - ext/atk/rbatknoopobjectfactory.c
115
+ - ext/atk/rbatkobject.c
84
116
  has_rdoc: true
85
117
  homepage: http://ruby-gnome2.sourceforge.jp/
86
118
  licenses: []
@@ -95,10 +127,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
127
  requirements:
96
128
  - - ">="
97
129
  - !ruby/object:Gem::Version
98
- hash: 3
130
+ hash: 61
99
131
  segments:
100
- - 0
101
- version: "0"
132
+ - 1
133
+ - 8
134
+ - 5
135
+ version: 1.8.5
102
136
  required_rubygems_version: !ruby/object:Gem::Requirement
103
137
  none: false
104
138
  requirements: