webkit-gtk 1.2.1

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.
@@ -0,0 +1,41 @@
1
+ # -*- ruby -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ $LOAD_PATH.unshift("./../glib2/lib")
20
+ require "gnome2-raketask"
21
+
22
+ package = GNOME2Package.new do |_package|
23
+ _package.summary = "Ruby/WebKitGTK is a Ruby binding of WebKitGTK+."
24
+ _package.description = "Ruby/WebKitGTK is a Ruby binding of WebKitGTK+."
25
+ _package.dependency.gem.runtime = ["gobject-introspection", "gtk3"]
26
+ _package.dependency.gem.development = ["test-unit-notify"]
27
+ _package.win32.packages = []
28
+ _package.win32.dependencies = []
29
+ _package.win32.build_dependencies = ["glib2", "gobject-introspection"]
30
+ _package.win32.build_packages = []
31
+ end
32
+ package.define_tasks
33
+
34
+ namespace :dependency do
35
+ desc "Install depenencies"
36
+ task :install do
37
+ # TODO: Install gir1.2-webkit-3.0 on Debian.
38
+ end
39
+ end
40
+
41
+ task :build => "dependency:install"
@@ -0,0 +1,38 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "gobject-introspection"
18
+ require "gtk3"
19
+
20
+ base_dir = Pathname.new(__FILE__).dirname.dirname.dirname.expand_path
21
+ vendor_dir = base_dir + "vendor" + "local"
22
+ vendor_bin_dir = vendor_dir + "bin"
23
+ GLib.prepend_environment_path(vendor_bin_dir)
24
+
25
+ module WebKitGtk
26
+ class << self
27
+ @initialized = false
28
+ def init
29
+ return if @initialized
30
+ @initialized = true
31
+ loader = Loader.new(self)
32
+ loader.load("WebKit")
33
+ end
34
+ end
35
+
36
+ class Loader < GObjectIntrospection::Loader
37
+ end
38
+ end
@@ -0,0 +1,32 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "webkit-gtk"
18
+
19
+ WebKitGtk.init
20
+
21
+ window = Gtk::Window.new
22
+ window.signal_connect("destroy") do
23
+ Gtk.main_quit
24
+ end
25
+
26
+ view = WebKitGtk::WebView.new
27
+ view.load_uri("http://webkitgtk.org/")
28
+
29
+ window.add(view)
30
+ window.show_all
31
+
32
+ Gtk.main
@@ -0,0 +1,58 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
+ ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
+
22
+ glib_base = File.join(ruby_gnome2_base, "glib2")
23
+ gio_base = File.join(ruby_gnome2_base, "gio2")
24
+ atk_base = File.join(ruby_gnome2_base, "atk")
25
+ pango_base = File.join(ruby_gnome2_base, "pango")
26
+ gdk3_base = File.join(ruby_gnome2_base, "gdk3")
27
+ gtk3_base = File.join(ruby_gnome2_base, "gtk3")
28
+ gobject_introspection_base = File.join(ruby_gnome2_base, "gobject-introspection")
29
+
30
+ modules = [
31
+ [glib_base, "glib2"],
32
+ [gio_base, "gio2"],
33
+ [atk_base, "atk"],
34
+ [pango_base, "pango"],
35
+ [gdk3_base, "gdk3"],
36
+ [gtk3_base, "gtk3"],
37
+ [gobject_introspection_base, "gobject-introspection"],
38
+ ]
39
+ modules.each do |target, module_name|
40
+ if system("which make > /dev/null")
41
+ `make -C #{target.dump} > /dev/null` or exit(false)
42
+ end
43
+ $LOAD_PATH.unshift(File.join(target, "ext", module_name))
44
+ $LOAD_PATH.unshift(File.join(target, "lib"))
45
+ end
46
+
47
+ $LOAD_PATH.unshift(File.join(glib_base, "test"))
48
+ require "glib-test-init"
49
+
50
+ $LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
51
+ require "gobject-introspection-test-utils"
52
+
53
+ $LOAD_PATH.unshift(File.join(clutter_base, "test"))
54
+ require "webkit-gtk-test-utils"
55
+
56
+ require "webkit-gtk"
57
+
58
+ exit Test::Unit::AutoRunner.run(true)
@@ -0,0 +1,21 @@
1
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
2
+ #
3
+ # This library is free software; you can redistribute it and/or
4
+ # modify it under the terms of the GNU Lesser General Public
5
+ # License as published by the Free Software Foundation; either
6
+ # version 2.1 of the License, or (at your option) any later version.
7
+ #
8
+ # This library is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
+ # Lesser General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU Lesser General Public
14
+ # License along with this library; if not, write to the Free Software
15
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
+
17
+ require "test-unit"
18
+ require "test/unit/notify"
19
+
20
+ module WebKitGtkTestUtils
21
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: webkit-gtk
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 1
10
+ version: 1.2.1
11
+ platform: ruby
12
+ authors:
13
+ - The Ruby-GNOME2 Project Team
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2013-01-30 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: gobject-introspection
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 29
29
+ segments:
30
+ - 1
31
+ - 2
32
+ - 1
33
+ version: 1.2.1
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: gtk3
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ hash: 29
45
+ segments:
46
+ - 1
47
+ - 2
48
+ - 1
49
+ version: 1.2.1
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: test-unit-notify
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
63
+ version: "0"
64
+ type: :development
65
+ version_requirements: *id003
66
+ description: Ruby/WebKitGTK is a Ruby binding of WebKitGTK+.
67
+ email: ruby-gnome2-devel-en@lists.sourceforge.net
68
+ executables: []
69
+
70
+ extensions: []
71
+
72
+ extra_rdoc_files: []
73
+
74
+ files:
75
+ - Rakefile
76
+ - lib/webkit-gtk.rb
77
+ - sample/brower.rb
78
+ - test/run-test.rb
79
+ - test/webkit-gtk-test-utils.rb
80
+ homepage: http://ruby-gnome2.sourceforge.jp/
81
+ licenses: []
82
+
83
+ post_install_message:
84
+ rdoc_options: []
85
+
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ hash: 61
94
+ segments:
95
+ - 1
96
+ - 8
97
+ - 5
98
+ version: 1.8.5
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ none: false
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ hash: 3
105
+ segments:
106
+ - 0
107
+ version: "0"
108
+ requirements: []
109
+
110
+ rubyforge_project:
111
+ rubygems_version: 1.8.24
112
+ signing_key:
113
+ specification_version: 3
114
+ summary: Ruby/WebKitGTK is a Ruby binding of WebKitGTK+.
115
+ test_files: []
116
+