gtk_webkit_pdf 0.0.2.1 → 0.0.2.2
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/README +17 -0
- data/ext/gtk_webkit_pdf/extconf.rb +23 -2
- data/gtk_webkit_pdf.gemspec +1 -1
- data/lib/gtk_webkit_pdf.rb +1 -1
- metadata +2 -2
data/README
CHANGED
@@ -52,4 +52,21 @@ MIDDLEWARE SUPPORT
|
|
52
52
|
You can enable middleware by adding following line to config/application.rb
|
53
53
|
config.middleware.use GTK::Middleware
|
54
54
|
|
55
|
+
INSTALLATION
|
56
|
+
============
|
57
|
+
1.You need to install the following development packages,
|
58
|
+
1 . gtk
|
59
|
+
2 . libsoup
|
60
|
+
3 . webkitgtk
|
61
|
+
4 . atk
|
62
|
+
5 . gdk-pixbuf
|
63
|
+
6 . glib
|
64
|
+
7 . cario
|
65
|
+
8 . pango
|
66
|
+
2.And the following the libs
|
67
|
+
1 . libgtk
|
68
|
+
2 . libwebkitgtk
|
69
|
+
3.NOTE: minimum gtk2 and webkitgtk2 is required.
|
70
|
+
4.Then you can install the gem whether directly or by using bundler.
|
71
|
+
|
55
72
|
Thanks to GTK WEBKIT community.
|
@@ -1,6 +1,27 @@
|
|
1
1
|
require 'mkmf'
|
2
2
|
|
3
|
-
|
3
|
+
dir_config('gtk', '/usr/include/gtk-3.0', '/usr/lib/i386-linux-gnu/')
|
4
|
+
dir_config('gtklinux', '/usr/lib/i386-linux-gnu/gtk-2.0/include', '')
|
5
|
+
dir_config('glib', '/usr/include/glib-2.0', '')
|
6
|
+
|
7
|
+
dir_config('gliblinux', '/usr/lib/i386-linux-gnu/glib-2.0/include/', '')
|
8
|
+
dir_config('cairo', '/usr/include/cairo', '')
|
9
|
+
dir_config('gdkpixbuf', '/usr/include/gdk-pixbuf-2.0/', '')
|
10
|
+
|
11
|
+
dir_config('atk', '/usr/include/atk-1.0', '/usr/lib')
|
12
|
+
dir_config('webkitgtk', '/usr/include/webkitgtk-1.0', '/usr/lib/webkitgtk-1.0-0')
|
13
|
+
dir_config('libsoup', '/usr/include/libsoup-2.4/', '')
|
14
|
+
|
15
|
+
dir_config('pango', '/usr/include/pango-1.0', '')
|
16
|
+
|
17
|
+
have_header('gtk/gtk.h')
|
18
|
+
have_header('webkit/webkit.h')
|
19
|
+
|
20
|
+
have_library('gtk-3')
|
21
|
+
have_library('webkitgtk-3.0')
|
22
|
+
|
23
|
+
$CFLAGS << ' -Wall' unless $CFLAGS.split.include?('-Wall')
|
24
|
+
$CFLAGS << ' -Werror' unless $CFLAGS.split.include?('-Werror')
|
25
|
+
$CFLAGS << ' -fpic' unless $CFLAGS.split.include?('-fpic')
|
4
26
|
|
5
|
-
$LIBS << " -L /usr/lib/i386-linux-gnu/ -lgtk-3 -lwebkitgtk-3.0"
|
6
27
|
create_makefile("gtk_webkit_pdf/webkit")
|
data/gtk_webkit_pdf.gemspec
CHANGED
data/lib/gtk_webkit_pdf.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtk_webkit_pdf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|