poppler 0.90.4 → 0.90.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -3
- data/ext/poppler/extconf.rb +8 -0
- metadata +27 -29
- data/ext/poppler/Makefile +0 -155
- data/ext/poppler/rbpopplerversion.h +0 -24
data/Rakefile
CHANGED
@@ -72,9 +72,8 @@ namespace :win32 do
|
|
72
72
|
task :download do
|
73
73
|
$LOAD_PATH.unshift((@rb_glib2_dir + "lib").to_s)
|
74
74
|
require 'gnome2-win32-binary-downloader'
|
75
|
-
packages = ["
|
76
|
-
dependencies = ["
|
77
|
-
"fontconfig", "cairo", "libpng", "poppler", "jpeg"]
|
75
|
+
packages = ["gtk+"]
|
76
|
+
dependencies = ["poppler", "jpeg"]
|
78
77
|
GNOME2Win32BinaryDownloader.download(:packages => packages,
|
79
78
|
:dependencies => dependencies)
|
80
79
|
end
|
data/ext/poppler/extconf.rb
CHANGED
@@ -60,3 +60,11 @@ end
|
|
60
60
|
create_pkg_config_file("Ruby/Poppler", package_id)
|
61
61
|
$defs << " -DRUBY_POPPLER_COMPILATION"
|
62
62
|
create_makefile(module_name)
|
63
|
+
|
64
|
+
pkg_config_dir = with_config("pkg-config-dir")
|
65
|
+
if pkg_config_dir.is_a?(String)
|
66
|
+
File.open("Makefile", "ab") do |makefile|
|
67
|
+
makefile.puts
|
68
|
+
makefile.puts("pkgconfigdir=#{pkg_config_dir}")
|
69
|
+
end
|
70
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poppler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 381
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 90
|
9
|
-
-
|
10
|
-
version: 0.90.
|
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-
|
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:
|
45
|
+
hash: 381
|
46
46
|
segments:
|
47
47
|
- 0
|
48
48
|
- 90
|
49
|
-
-
|
50
|
-
version: 0.90.
|
49
|
+
- 5
|
50
|
+
version: 0.90.5
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|
@@ -58,12 +58,12 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
hash:
|
61
|
+
hash: 381
|
62
62
|
segments:
|
63
63
|
- 0
|
64
64
|
- 90
|
65
|
-
-
|
66
|
-
version: 0.90.
|
65
|
+
- 5
|
66
|
+
version: 0.90.5
|
67
67
|
type: :runtime
|
68
68
|
version_requirements: *id003
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -74,12 +74,12 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
hash:
|
77
|
+
hash: 381
|
78
78
|
segments:
|
79
79
|
- 0
|
80
80
|
- 90
|
81
|
-
-
|
82
|
-
version: 0.90.
|
81
|
+
- 5
|
82
|
+
version: 0.90.5
|
83
83
|
type: :runtime
|
84
84
|
version_requirements: *id004
|
85
85
|
description: Ruby/Poppler is a Ruby binding of poppler-glib.
|
@@ -96,33 +96,31 @@ files:
|
|
96
96
|
- Rakefile
|
97
97
|
- extconf.rb
|
98
98
|
- lib/poppler.rb
|
99
|
-
- ext/poppler/rbpoppler-attachment.c
|
100
|
-
- ext/poppler/rbpoppler.h
|
101
|
-
- ext/poppler/rbpoppler.c
|
102
|
-
- ext/poppler/Makefile
|
103
|
-
- ext/poppler/rbpoppler-page.c
|
104
|
-
- ext/poppler/extconf.rb
|
105
99
|
- ext/poppler/rbpoppler-form-field.c
|
106
|
-
- ext/poppler/rbpopplerversion.h
|
107
|
-
- ext/poppler/rbpoppler-action.c
|
108
|
-
- ext/poppler/rbpoppler-annotation.c
|
109
100
|
- ext/poppler/rbpoppler-private.h
|
110
|
-
- ext/poppler/
|
101
|
+
- ext/poppler/extconf.rb
|
111
102
|
- ext/poppler/depend
|
103
|
+
- ext/poppler/rbpoppler-page.c
|
112
104
|
- ext/poppler/rbpoppler-document.c
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
105
|
+
- ext/poppler/rbpoppler-action.c
|
106
|
+
- ext/poppler/rbpoppler.h
|
107
|
+
- ext/poppler/rbpoppler-attachment.c
|
108
|
+
- ext/poppler/rbpoppler.c
|
109
|
+
- ext/poppler/rbpoppler-annotation.c
|
110
|
+
- ext/poppler/poppler.def
|
116
111
|
- sample/number-pdf.rb
|
112
|
+
- sample/pdf2text.rb
|
113
|
+
- sample/pdf2svg.rb
|
117
114
|
- sample/pdfdiv.rb
|
118
|
-
-
|
119
|
-
- test/poppler-test-utils.rb
|
115
|
+
- sample/pdf2.rb
|
120
116
|
- test/test_page.rb
|
121
117
|
- test/run-test.rb
|
122
118
|
- test/fixtures/image.pdf
|
123
119
|
- test/test_color.rb
|
124
|
-
- test/
|
120
|
+
- test/test_document.rb
|
125
121
|
- test/test_annotation.rb
|
122
|
+
- test/test_constants.rb
|
123
|
+
- test/poppler-test-utils.rb
|
126
124
|
has_rdoc: true
|
127
125
|
homepage: http://ruby-gnome2.sourceforge.jp/
|
128
126
|
licenses: []
|
data/ext/poppler/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/poppler/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 -DPNG_NO_MMX_CODE -I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12 -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/poppler
|
46
|
-
CPPFLAGS = -DHAVE_RB_DEFINE_ALLOC_FUNC -DHAVE_RB_BLOCK_PROC -DHAVE_OBJECT_ALLOCATE -DHAVE_NODE_ATTRASGN -DHAVE_RB_CAIRO_H -DHAVE_POPPLER_PAGE_RENDER_SELECTION_TO_PIXBUF -DRUBY_POPPLER_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 = rbpopplerversion.h
|
77
|
-
|
78
|
-
extout =
|
79
|
-
extout_prefix =
|
80
|
-
target_prefix =
|
81
|
-
LOCAL_LIBS =
|
82
|
-
LIBS = $(LIBRUBYARG_SHARED) -lpoppler-glib -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lcairo -lpthread -ldl -lcrypt -lm -lc
|
83
|
-
SRCS = rbpoppler-document.c rbpoppler-page.c rbpoppler-action.c rbpoppler.c rbpoppler-attachment.c
|
84
|
-
OBJS = rbpoppler-document.o rbpoppler-page.o rbpoppler-action.o rbpoppler.o rbpoppler-attachment.o
|
85
|
-
TARGET = poppler
|
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)/poppler.rb
|
121
|
-
$(RUBYLIBDIR)/poppler.rb: /home/kou/work/ruby/ruby-gnome2/poppler/src/lib/poppler.rb
|
122
|
-
$(INSTALL_DATA) /home/kou/work/ruby/ruby-gnome2/poppler/src/lib/poppler.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
|
@@ -1,24 +0,0 @@
|
|
1
|
-
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
-
/************************************************
|
3
|
-
|
4
|
-
rbpopplerversion.h -
|
5
|
-
|
6
|
-
This file was generated by mkmf-gnome2.rb.
|
7
|
-
|
8
|
-
************************************************/
|
9
|
-
|
10
|
-
#ifndef __RBPOPPLER_VERSION_H__
|
11
|
-
#define __RBPOPPLER_VERSION_H__
|
12
|
-
|
13
|
-
#define POPPLER_MAJOR_VERSION (0)
|
14
|
-
#define POPPLER_MINOR_VERSION (6)
|
15
|
-
#define POPPLER_MICRO_VERSION (2)
|
16
|
-
|
17
|
-
#define POPPLER_CHECK_VERSION(major,minor,micro) \
|
18
|
-
(POPPLER_MAJOR_VERSION > (major) || \
|
19
|
-
(POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION > (minor)) || \
|
20
|
-
(POPPLER_MAJOR_VERSION == (major) && POPPLER_MINOR_VERSION == (minor) && \
|
21
|
-
POPPLER_MICRO_VERSION >= (micro)))
|
22
|
-
|
23
|
-
|
24
|
-
#endif /* __RBPOPPLER_VERSION_H__ */
|