pango 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 +16 -0
- data/Rakefile +8 -77
- data/ext/pango/Makefile +166 -0
- data/ext/pango/extconf.rb +24 -25
- data/ext/pango/pango.so +0 -0
- data/ext/pango/rbpango.o +0 -0
- data/ext/pango/rbpangoanalysis.o +0 -0
- data/ext/pango/rbpangoattribute.o +0 -0
- data/ext/pango/rbpangoattriterator.o +0 -0
- data/ext/pango/rbpangoattrlist.o +0 -0
- data/ext/pango/rbpangocairo.o +0 -0
- data/ext/pango/rbpangocolor.o +0 -0
- data/ext/pango/rbpangocontext.o +0 -0
- data/ext/pango/rbpangocoverage.o +0 -0
- data/ext/pango/rbpangoengine.o +0 -0
- data/ext/pango/rbpangofont.o +0 -0
- data/ext/pango/rbpangofontdescription.o +0 -0
- data/ext/pango/rbpangofontface.o +0 -0
- data/ext/pango/rbpangofontfamily.o +0 -0
- data/ext/pango/rbpangofontmap.o +0 -0
- data/ext/pango/rbpangofontmetrics.o +0 -0
- data/ext/pango/rbpangofontset.o +0 -0
- data/ext/pango/rbpangofontsetsimple.o +0 -0
- data/ext/pango/rbpangoglyphinfo.o +0 -0
- data/ext/pango/rbpangoglyphitem.o +0 -0
- data/ext/pango/rbpangoglyphstring.o +0 -0
- data/ext/pango/rbpangogravity.o +0 -0
- data/ext/pango/rbpangoinits.o +0 -0
- data/ext/pango/rbpangoitem.o +0 -0
- data/ext/pango/rbpangolanguage.o +0 -0
- data/ext/pango/rbpangolayout.o +0 -0
- data/ext/pango/rbpangolayoutiter.c +3 -1
- data/ext/pango/rbpangolayoutiter.o +0 -0
- data/ext/pango/rbpangolayoutline.o +0 -0
- data/ext/pango/rbpangologattr.o +0 -0
- data/ext/pango/rbpangomain.o +0 -0
- data/ext/pango/rbpangomatrix.o +0 -0
- data/ext/pango/rbpangorectangle.o +0 -0
- data/ext/pango/rbpangorenderer.o +0 -0
- data/ext/pango/rbpangoscript.o +0 -0
- data/ext/pango/rbpangoscriptiter.o +0 -0
- data/ext/pango/rbpangotabarray.o +0 -0
- data/ext/pango/rbpangoversion.h +25 -0
- data/ext/pango/ruby-pango.pc +3 -0
- metadata +87 -45
data/ChangeLog
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
2011-01-30 Kouhei Sutou <kou@cozmixng.org>
|
2
|
+
|
3
|
+
* Rakefile, ext/pango/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
|
+
|
10
|
+
2010-12-22 Kouhei Sutou <kou@cozmixng.org>
|
11
|
+
|
12
|
+
* ext/pango/rbpangolayoutiter.c (Init_pango_layout_iter):
|
13
|
+
at_last_line! -> at_last_line? because at_last_line is a predicate
|
14
|
+
method.
|
15
|
+
Reported by mrkn. Thanks!!!
|
16
|
+
|
1
17
|
2010-09-23 Kouhei Sutou <kou@cozmixng.org>
|
2
18
|
|
3
19
|
* Rakefile: don't add .zip into gem.
|
data/Rakefile
CHANGED
@@ -1,82 +1,13 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
|
3
|
-
require '
|
4
|
-
require 'find'
|
5
|
-
require 'rubygems'
|
6
|
-
require 'rake/extensiontask'
|
3
|
+
require './../glib2/lib/gnome2-raketask'
|
7
4
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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 = "pango"
|
31
|
-
|
32
|
-
spec = Gem::Specification.new do |s|
|
33
|
-
s.name = package_name
|
34
|
-
s.summary = "Ruby/Pango is a Ruby binding of pango-1.x."
|
35
|
-
s.description = "Ruby/Pango is a Ruby binding of pango-1.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
|
-
compatible_version = version.split(/\./)[0, 3].join(".")
|
43
|
-
s.add_dependency("glib2", ">= #{compatible_version}")
|
44
|
-
s.extensions = FileList["ext/#{package_name}/extconf.rb"]
|
45
|
-
s.require_paths = ["lib"]
|
46
|
-
s.files = FileList["ChangeLog", "README", "Rakefile", "extconf.rb",
|
47
|
-
"lib/**/*.rb", "{ext,sample,test}/**/*"]
|
48
|
-
end
|
49
|
-
|
50
|
-
Rake::GemPackageTask.new(spec) do |pkg|
|
5
|
+
package = GNOME2Package.new do |_package|
|
6
|
+
_package.summary = "Ruby/Pango is a Ruby binding of pango-1.x."
|
7
|
+
_package.description = "Ruby/Pango is a Ruby binding of pango-1.x."
|
8
|
+
_package.dependency.gem.runtime = [["cairo", ">= 1.10.0"], "glib2"]
|
9
|
+
_package.win32.packages = ["pango"]
|
10
|
+
_package.win32.dependencies = []
|
51
11
|
end
|
12
|
+
package.define_tasks
|
52
13
|
|
53
|
-
Rake::ExtensionTask.new(package_name, spec) do |ext|
|
54
|
-
ext.cross_compile = true
|
55
|
-
ext.cross_compiling do |spec|
|
56
|
-
if /mingw|mswin/ =~ spec.platform.to_s
|
57
|
-
win32_dir = File.join("vendor", "local")
|
58
|
-
win32_files = []
|
59
|
-
Find.find(win32_dir) do |file|
|
60
|
-
next if /\.zip\z/ =~ file
|
61
|
-
win32_files << file
|
62
|
-
end
|
63
|
-
spec.files += win32_files
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
namespace :win32 do
|
69
|
-
desc "download Windows binaries"
|
70
|
-
task :download do
|
71
|
-
$LOAD_PATH.unshift((@rb_glib2_dir + "lib").to_s)
|
72
|
-
require 'gnome2-win32-binary-downloader'
|
73
|
-
GNOME2Win32BinaryDownloader.download(:packages => ["glib", "pango"],
|
74
|
-
:dependencies => ["gettext-runtime",
|
75
|
-
"cairo",
|
76
|
-
"libpng",
|
77
|
-
"zlib",
|
78
|
-
"expat",
|
79
|
-
"fontconfig",
|
80
|
-
"freetype"])
|
81
|
-
end
|
82
|
-
end
|
data/ext/pango/Makefile
ADDED
@@ -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/pango/ext/pango
|
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/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/pango/ext/pango
|
49
|
+
DEFS =
|
50
|
+
CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_PANGO_LAYOUT_ITER_GET_TYPE -DHAVE_PANGO_LAYOUT_SET_ELLIPSIZE -DHAVE_PANGO_LAYOUT_GET_FONT_DESCRIPTION -DHAVE_PANGO_RENDER_PART_GET_TYPE -DHAVE_PANGO_ATTR_STRIKETHROUGH_COLOR_NEW -DHAVE_PANGO_ATTR_UNDERLINE_COLOR_NEW -DHAVE_PANGO_GLYPH_ITEM_FREE -DHAVE_PANGO_GLYPH_ITEM_GET_TYPE -DHAVE_PANGO_ATTR_ITERATOR_GET_ATTRS -DHAVE_PANGO_ITEMIZE_WITH_BASE_DIR -DHAVE_PANGO_FONT_FAMILY_IS_MONOSPACE -DHAVE_RB_CAIRO_H -DRUBY_PANGO_COMPILATION
|
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 = rbpangoinits.c rbpangoversion.h
|
84
|
+
|
85
|
+
extout =
|
86
|
+
extout_prefix =
|
87
|
+
target_prefix =
|
88
|
+
LOCAL_LIBS =
|
89
|
+
LIBS = $(LIBRUBYARG_SHARED) -lpango-1.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lpangocairo-1.0 -lpango-1.0 -lglib-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lgmodule-2.0 -lcairo -lcairo -lpthread -lrt -ldl -lcrypt -lm -lc
|
90
|
+
SRCS = rbpangoglyphstring.c rbpango.c rbpangofontmetrics.c rbpangogravity.c rbpangoattribute.c rbpangoglyphinfo.c rbpangoglyphitem.c rbpangolayout.c rbpangoattriterator.c rbpangoinits.c rbpangoattrlist.c rbpangomain.c rbpangofontsetsimple.c rbpangoscript.c rbpangolanguage.c rbpangofont.c rbpangofontdescription.c rbpangofontmap.c rbpangologattr.c rbpangolayoutiter.c rbpangofontfamily.c rbpangofontface.c rbpangotabarray.c rbpangoengine.c rbpangocolor.c rbpangoanalysis.c rbpangomatrix.c rbpangocoverage.c rbpangorectangle.c rbpangoscriptiter.c rbpangorenderer.c rbpangocairo.c rbpangolayoutline.c rbpangocontext.c rbpangofontset.c rbpangoitem.c
|
91
|
+
OBJS = rbpangoglyphstring.o rbpango.o rbpangofontmetrics.o rbpangogravity.o rbpangoattribute.o rbpangoglyphinfo.o rbpangoglyphitem.o rbpangolayout.o rbpangoattriterator.o rbpangoinits.o rbpangoattrlist.o rbpangomain.o rbpangofontsetsimple.o rbpangoscript.o rbpangolanguage.o rbpangofont.o rbpangofontdescription.o rbpangofontmap.o rbpangologattr.o rbpangolayoutiter.o rbpangofontfamily.o rbpangofontface.o rbpangotabarray.o rbpangoengine.o rbpangocolor.o rbpangoanalysis.o rbpangomatrix.o rbpangocoverage.o rbpangorectangle.o rbpangoscriptiter.o rbpangorenderer.o rbpangocairo.o rbpangolayoutline.o rbpangocontext.o rbpangofontset.o rbpangoitem.o
|
92
|
+
TARGET = pango
|
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)/rbpango.h $(RUBYARCHDIR)
|
160
|
+
$(INSTALL_DATA) rbpangoversion.h $(RUBYARCHDIR)
|
161
|
+
|
162
|
+
install:
|
163
|
+
if test -n "$(pkgconfigdir)"; then \
|
164
|
+
$(MAKEDIRS) $(pkgconfigdir); \
|
165
|
+
$(INSTALL_DATA) ruby-pango.pc $(pkgconfigdir); \
|
166
|
+
fi
|
data/ext/pango/extconf.rb
CHANGED
@@ -24,9 +24,33 @@ package_id = "pango"
|
|
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
|
+
|
36
|
+
rcairo_options = {}
|
37
|
+
rcairo_source_dir_names = ["rcairo"]
|
38
|
+
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
39
|
+
rcairo_source_dir_names.unshift("rcairo.win32")
|
40
|
+
end
|
41
|
+
rcairo_source_dir_names.each do |rcairo_source_dir_name|
|
42
|
+
rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
|
43
|
+
if rcairo_source_dir.exist?
|
44
|
+
rcairo_options[:rcairo_source_dir] = rcairo_source_dir.to_s
|
45
|
+
break
|
46
|
+
end
|
47
|
+
end
|
48
|
+
check_cairo(rcairo_options)
|
49
|
+
|
27
50
|
setup_win32(module_name, base_dir)
|
28
51
|
|
29
52
|
PKGConfig.have_package(package_id) or exit 1
|
53
|
+
PKGConfig.have_package('pangocairo')
|
30
54
|
|
31
55
|
pango_header = "pango/pango.h"
|
32
56
|
have_func("pango_layout_iter_get_type", pango_header)
|
@@ -41,31 +65,6 @@ have_func("pango_attr_iterator_get_attrs", pango_header)
|
|
41
65
|
have_func("pango_itemize_with_base_dir", pango_header)
|
42
66
|
have_func("pango_font_family_is_monospace", pango_header)
|
43
67
|
|
44
|
-
if PKGConfig.have_package('pangocairo')
|
45
|
-
options = {}
|
46
|
-
rcairo_source_dir_names = ["rcairo"]
|
47
|
-
if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
|
48
|
-
rcairo_source_dir_names.unshift("rcairo.win32")
|
49
|
-
end
|
50
|
-
rcairo_source_dir_names.each do |rcairo_source_dir_name|
|
51
|
-
rcairo_source_dir = top_dir.parent.expand_path + rcairo_source_dir_name
|
52
|
-
if rcairo_source_dir.exist?
|
53
|
-
options[:rcairo_source_dir] = rcairo_source_dir.to_s
|
54
|
-
break
|
55
|
-
end
|
56
|
-
end
|
57
|
-
check_cairo(options)
|
58
|
-
end
|
59
|
-
|
60
|
-
["glib2"].each do |package|
|
61
|
-
directory = "#{package}#{version_suffix}"
|
62
|
-
build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
|
63
|
-
add_depend_package(package, "#{directory}/ext/#{package}",
|
64
|
-
top_dir.to_s,
|
65
|
-
:top_build_dir => top_build_dir.to_s,
|
66
|
-
:target_build_dir => build_dir)
|
67
|
-
end
|
68
|
-
|
69
68
|
add_distcleanfile("rbpangoinits.c")
|
70
69
|
|
71
70
|
make_version_header("PANGO", "pango", ".")
|
data/ext/pango/pango.so
ADDED
Binary file
|
data/ext/pango/rbpango.o
ADDED
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
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -187,7 +187,9 @@ Init_pango_layout_iter()
|
|
187
187
|
rb_define_method(pIter, "next_char!", layout_iter_next_char, 0);
|
188
188
|
rb_define_method(pIter, "next_cluster!", layout_iter_next_cluster, 0);
|
189
189
|
rb_define_method(pIter, "next_line!", layout_iter_next_line, 0);
|
190
|
-
rb_define_method(pIter, "at_last_line
|
190
|
+
rb_define_method(pIter, "at_last_line?", layout_iter_at_last_line, 0);
|
191
|
+
/* for backword compatibility. :< */
|
192
|
+
rb_define_alias(pIter, "at_last_line!", "at_last_line?");
|
191
193
|
rb_define_method(pIter, "index", layout_iter_get_index, 0);
|
192
194
|
rb_define_method(pIter, "baseline", layout_iter_get_baseline, 0);
|
193
195
|
rb_define_method(pIter, "run", layout_iter_get_run, 0);
|
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
|
+
rbpangoversion.h -
|
5
|
+
|
6
|
+
This file was generated by mkmf-gnome2.rb.
|
7
|
+
|
8
|
+
************************************************/
|
9
|
+
|
10
|
+
#ifndef __RBPANGO_VERSION_H__
|
11
|
+
#define __RBPANGO_VERSION_H__
|
12
|
+
|
13
|
+
#define PANGO_MAJOR_VERSION (2)
|
14
|
+
#define PANGO_MINOR_VERSION (0)
|
15
|
+
#define PANGO_MICRO_VERSION (0)
|
16
|
+
#define PANGO_TAG_VERSION (b7)
|
17
|
+
|
18
|
+
#define PANGO_CHECK_VERSION(major,minor,micro) \
|
19
|
+
(PANGO_MAJOR_VERSION > (major) || \
|
20
|
+
(PANGO_MAJOR_VERSION == (major) && PANGO_MINOR_VERSION > (minor)) || \
|
21
|
+
(PANGO_MAJOR_VERSION == (major) && PANGO_MINOR_VERSION == (minor) && \
|
22
|
+
PANGO_MICRO_VERSION >= (micro)))
|
23
|
+
|
24
|
+
|
25
|
+
#endif /* __RBPANGO_VERSION_H__ */
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pango
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 379
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 90
|
9
|
-
-
|
10
|
-
version: 0.90.
|
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:
|
18
|
+
date: 2011-01-30 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:
|
45
|
+
hash: 379
|
46
46
|
segments:
|
47
47
|
- 0
|
48
48
|
- 90
|
49
|
-
-
|
50
|
-
version: 0.90.
|
49
|
+
- 6
|
50
|
+
version: 0.90.6
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
description: Ruby/Pango is a Ruby binding of pango-1.x.
|
@@ -64,62 +64,102 @@ files:
|
|
64
64
|
- Rakefile
|
65
65
|
- extconf.rb
|
66
66
|
- lib/pango.rb
|
67
|
-
- ext/pango/
|
67
|
+
- ext/pango/rbpangoglyphstring.o
|
68
|
+
- ext/pango/rbpangomatrix.o
|
68
69
|
- ext/pango/rbpangoglyphstring.c
|
69
|
-
- ext/pango/
|
70
|
-
- ext/pango/
|
70
|
+
- ext/pango/rbpango.c
|
71
|
+
- ext/pango/rbpangofontmetrics.c
|
72
|
+
- ext/pango/rbpangorenderer.o
|
73
|
+
- ext/pango/rbpangocoverage.o
|
74
|
+
- ext/pango/rbpangofont.o
|
75
|
+
- ext/pango/rbpangotabarray.o
|
76
|
+
- ext/pango/rbpangogravity.c
|
77
|
+
- ext/pango/rbpangoattribute.c
|
71
78
|
- ext/pango/rbpangoglyphinfo.c
|
79
|
+
- ext/pango/rbpangoanalysis.o
|
80
|
+
- ext/pango/rbpangoversion.h
|
81
|
+
- ext/pango/rbpangoglyphitem.c
|
82
|
+
- ext/pango/rbpangolayout.c
|
83
|
+
- ext/pango/rbpangolayoutline.o
|
84
|
+
- ext/pango/rbpangogravity.o
|
85
|
+
- ext/pango/rbpangorectangle.o
|
86
|
+
- ext/pango/rbpangoattriterator.c
|
87
|
+
- ext/pango/Makefile
|
88
|
+
- ext/pango/rbpangoinits.c
|
89
|
+
- ext/pango/rbpangofontset.o
|
90
|
+
- ext/pango/rbpangoglyphinfo.o
|
91
|
+
- ext/pango/rbpangoattrlist.c
|
92
|
+
- ext/pango/rbpangomain.c
|
93
|
+
- ext/pango/ruby-pango.pc
|
94
|
+
- ext/pango/rbpangoattriterator.o
|
95
|
+
- ext/pango/rbpangofontsetsimple.o
|
96
|
+
- ext/pango/rbpangocairo.o
|
97
|
+
- ext/pango/rbpangofontsetsimple.c
|
98
|
+
- ext/pango/rbpangoinits.o
|
99
|
+
- ext/pango/rbpangoscript.c
|
100
|
+
- ext/pango/rbpangolanguage.c
|
72
101
|
- ext/pango/rbpangofont.c
|
102
|
+
- ext/pango/extconf.rb
|
103
|
+
- ext/pango/rbpangocolor.o
|
104
|
+
- ext/pango/rbpangolanguage.o
|
73
105
|
- ext/pango/pango.def
|
74
|
-
- ext/pango/
|
75
|
-
- ext/pango/
|
106
|
+
- ext/pango/rbpangologattr.o
|
107
|
+
- ext/pango/rbpangofontdescription.c
|
108
|
+
- ext/pango/rbpangofontmap.c
|
76
109
|
- ext/pango/rbpangologattr.c
|
77
|
-
- ext/pango/
|
110
|
+
- ext/pango/pango.so
|
111
|
+
- ext/pango/rbpango.h
|
112
|
+
- ext/pango/rbpangoattribute.o
|
113
|
+
- ext/pango/rbpangolayout.o
|
114
|
+
- ext/pango/rbpangolayoutiter.c
|
115
|
+
- ext/pango/rbpangoglyphitem.o
|
116
|
+
- ext/pango/rbpangolayoutiter.o
|
117
|
+
- ext/pango/rbpangofontfamily.c
|
78
118
|
- ext/pango/rbpangofontface.c
|
79
|
-
- ext/pango/rbpangofontmap.
|
119
|
+
- ext/pango/rbpangofontmap.o
|
80
120
|
- ext/pango/rbpangotabarray.c
|
81
|
-
- ext/pango/
|
121
|
+
- ext/pango/rbpangoengine.c
|
122
|
+
- ext/pango/rbpangofontmetrics.o
|
123
|
+
- ext/pango/rbpangocolor.c
|
124
|
+
- ext/pango/rbpangoanalysis.c
|
82
125
|
- ext/pango/rbpangomatrix.c
|
83
|
-
- ext/pango/
|
84
|
-
- ext/pango/
|
85
|
-
- ext/pango/rbpangomain.c
|
86
|
-
- ext/pango/extconf.rb
|
87
|
-
- ext/pango/rbpangolayout.c
|
126
|
+
- ext/pango/rbpangocoverage.c
|
127
|
+
- ext/pango/rbpangomain.o
|
88
128
|
- ext/pango/rbpangorectangle.c
|
89
|
-
- ext/pango/
|
90
|
-
- ext/pango/
|
91
|
-
- ext/pango/rbpangoattriterator.c
|
92
|
-
- ext/pango/rbpangofontsetsimple.c
|
93
|
-
- ext/pango/rbpangolayoutiter.c
|
94
|
-
- ext/pango/rbpangofontfamily.c
|
129
|
+
- ext/pango/rbpangofontface.o
|
130
|
+
- ext/pango/rbpangoscriptiter.c
|
95
131
|
- ext/pango/rbpangorenderer.c
|
96
|
-
- ext/pango/
|
132
|
+
- ext/pango/rbpangoitem.o
|
133
|
+
- ext/pango/rbpangocairo.c
|
134
|
+
- ext/pango/depend
|
135
|
+
- ext/pango/rbpangoengine.o
|
136
|
+
- ext/pango/rbpangoattrlist.o
|
137
|
+
- ext/pango/rbpangoscript.o
|
97
138
|
- ext/pango/rbpangolayoutline.c
|
98
|
-
- ext/pango/rbpangofontset.c
|
99
|
-
- ext/pango/rbpangocolor.c
|
100
139
|
- ext/pango/rbpangocontext.c
|
140
|
+
- ext/pango/rbpangofontfamily.o
|
141
|
+
- ext/pango/rbpangofontset.c
|
142
|
+
- ext/pango/rbpangocontext.o
|
143
|
+
- ext/pango/rbpangofontdescription.o
|
144
|
+
- ext/pango/rbpango.o
|
101
145
|
- ext/pango/rbpangoitem.c
|
102
|
-
- ext/pango/
|
103
|
-
-
|
104
|
-
- ext/pango/rbpangocairo.c
|
105
|
-
- ext/pango/rbpangoscriptiter.c
|
106
|
-
- ext/pango/rbpangocoverage.c
|
146
|
+
- ext/pango/rbpangoscriptiter.o
|
147
|
+
- sample/attribute.rb
|
107
148
|
- sample/gdk_layout.rb
|
108
|
-
- sample/
|
149
|
+
- sample/parse.rb
|
150
|
+
- sample/label.rb
|
151
|
+
- sample/break.rb
|
109
152
|
- sample/pango_cairo.rb
|
110
153
|
- sample/sample.txt
|
111
|
-
- sample/script.rb
|
112
154
|
- sample/layout.rb
|
113
|
-
- sample/break.rb
|
114
|
-
- sample/label.rb
|
115
155
|
- sample/item.rb
|
116
|
-
- sample/
|
117
|
-
- sample/
|
118
|
-
- test/
|
156
|
+
- sample/glyphstring.rb
|
157
|
+
- sample/script.rb
|
158
|
+
- test/pango-test-utils.rb
|
119
159
|
- test/test_layout.rb
|
120
160
|
- test/test-attribute.rb
|
161
|
+
- test/run-test.rb
|
121
162
|
- test/test-language.rb
|
122
|
-
- test/pango-test-utils.rb
|
123
163
|
has_rdoc: true
|
124
164
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
125
165
|
licenses: []
|
@@ -134,10 +174,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
134
174
|
requirements:
|
135
175
|
- - ">="
|
136
176
|
- !ruby/object:Gem::Version
|
137
|
-
hash:
|
177
|
+
hash: 61
|
138
178
|
segments:
|
139
|
-
-
|
140
|
-
|
179
|
+
- 1
|
180
|
+
- 8
|
181
|
+
- 5
|
182
|
+
version: 1.8.5
|
141
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
184
|
none: false
|
143
185
|
requirements:
|