clutter 1.2.6 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +99 -11
- data/lib/clutter.rb +10 -2
- metadata +6 -6
data/Rakefile
CHANGED
@@ -17,19 +17,107 @@
|
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
19
|
$LOAD_PATH.unshift("./../glib2/lib")
|
20
|
-
require "gnome2-
|
20
|
+
require "gnome2/rake/package-task"
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
22
|
+
package_task = GNOME2::Rake::PackageTask.new do |package|
|
23
|
+
package.summary = "Ruby/Clutter is a Ruby binding of Clutter."
|
24
|
+
package.description = "Ruby/Clutter is a Ruby binding of Clutter."
|
25
|
+
package.dependency.gem.runtime = ["cairo-gobject", "gobject-introspection"]
|
26
|
+
package.dependency.gem.development = ["test-unit-notify"]
|
27
|
+
package.windows.packages = []
|
28
|
+
package.windows.dependencies = []
|
29
|
+
package.windows.build_dependencies = [
|
30
|
+
"glib2",
|
31
|
+
"atk",
|
32
|
+
"pango",
|
33
|
+
"gdk_pixbuf2",
|
34
|
+
"gobject-introspection",
|
35
|
+
]
|
36
|
+
package.windows.gobject_introspection_dependencies = [
|
37
|
+
"atk",
|
38
|
+
"pango",
|
39
|
+
]
|
40
|
+
package.external_packages = [
|
41
|
+
# Build note:
|
42
|
+
# We need to modify /usr/i686-w64-mingw32/include/GL/ directory because
|
43
|
+
# MinGW w64 bundles old OpenGL headers. Here are changes to build Cogl:
|
44
|
+
#
|
45
|
+
# (1) Put the latest glext.h that can be downloaded from
|
46
|
+
# http://www.opengl.org/registry/api/glext.h into
|
47
|
+
# /usr/i686-w64-mingw32/include/GL/ directory:
|
48
|
+
#
|
49
|
+
# % wget http://www.opengl.org/registry/api/glext.h
|
50
|
+
# % sudo cp glext.h /usr/i686-w64-mingw32/include/GL/
|
51
|
+
# % sudo chown root:root /usr/i686-w64-mingw32/include/GL/glext.h
|
52
|
+
#
|
53
|
+
# (2) Add missing declarations and includes to
|
54
|
+
# /usr/i686-w64-mingw32/include/GL/gl.h:
|
55
|
+
#
|
56
|
+
# Before:
|
57
|
+
# ...
|
58
|
+
# typedef double GLdouble;
|
59
|
+
# typedef double GLclampd;
|
60
|
+
# typedef void GLvoid;
|
61
|
+
#
|
62
|
+
# #define GL_VERSION_1_1 1
|
63
|
+
# ...
|
64
|
+
#
|
65
|
+
# After
|
66
|
+
# ...
|
67
|
+
# typedef double GLdouble;
|
68
|
+
# typedef double GLclampd;
|
69
|
+
# typedef void GLvoid;
|
70
|
+
#
|
71
|
+
# typedef ptrdiff_t GLintptr;
|
72
|
+
# typedef ptrdiff_t GLsizeiptr;
|
73
|
+
# typedef char GLchar;
|
74
|
+
# #include <GL/glext.h>
|
75
|
+
#
|
76
|
+
# #define GL_VERSION_1_1 1
|
77
|
+
# ...
|
78
|
+
{
|
79
|
+
:name => "cogl",
|
80
|
+
:download_site => :gnome,
|
81
|
+
:label => "Cogl",
|
82
|
+
:version => "1.14.0",
|
83
|
+
:compression_method => "xz",
|
84
|
+
:windows => {
|
85
|
+
:configure_args => [
|
86
|
+
"--disable-glibtest",
|
87
|
+
"--enable-introspection",
|
88
|
+
],
|
89
|
+
},
|
90
|
+
},
|
91
|
+
{
|
92
|
+
:name => "json-glib",
|
93
|
+
:download_site => :gnome,
|
94
|
+
:label => "JSON-GLib",
|
95
|
+
:version => "0.14.2",
|
96
|
+
:compression_method => "xz",
|
97
|
+
:windows => {
|
98
|
+
:configure_args => [
|
99
|
+
"--enable-introspection",
|
100
|
+
],
|
101
|
+
},
|
102
|
+
},
|
103
|
+
{
|
104
|
+
:name => "clutter",
|
105
|
+
:download_site => :gnome,
|
106
|
+
:label => "Clutter",
|
107
|
+
:version => "1.14.0",
|
108
|
+
:compression_method => "xz",
|
109
|
+
:windows => {
|
110
|
+
:configure_args => [
|
111
|
+
"--enable-introspection",
|
112
|
+
],
|
113
|
+
:build_concurrently => false,
|
114
|
+
},
|
115
|
+
}
|
116
|
+
]
|
31
117
|
end
|
32
|
-
|
118
|
+
package_task.define
|
119
|
+
|
120
|
+
Rake::Task["native:clutter:i386-mingw32"].prerequisites.clear
|
33
121
|
|
34
122
|
namespace :dependency do
|
35
123
|
desc "Install depenencies"
|
data/lib/clutter.rb
CHANGED
@@ -17,10 +17,18 @@
|
|
17
17
|
require "gobject-introspection"
|
18
18
|
require "cairo-gobject"
|
19
19
|
|
20
|
-
base_dir = Pathname.new(__FILE__).dirname.dirname.
|
20
|
+
base_dir = Pathname.new(__FILE__).dirname.dirname.expand_path
|
21
21
|
vendor_dir = base_dir + "vendor" + "local"
|
22
22
|
vendor_bin_dir = vendor_dir + "bin"
|
23
|
-
GLib.
|
23
|
+
GLib.prepend_dll_path(vendor_bin_dir)
|
24
|
+
vendor_girepository_dir = vendor_dir + "lib" + "girepository-1.0"
|
25
|
+
GObjectIntrospection.prepend_typelib_path(vendor_girepository_dir)
|
26
|
+
|
27
|
+
if vendor_dir.exist?
|
28
|
+
require "atk"
|
29
|
+
require "pango"
|
30
|
+
require "gdk_pixbuf2"
|
31
|
+
end
|
24
32
|
|
25
33
|
module Clutter
|
26
34
|
LOG_DOMAIN = "Clutter"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clutter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
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-04-
|
12
|
+
date: 2013-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cairo-gobject
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 2.0.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: gobject-introspection
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 2.0.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 2.0.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: test-unit-notify
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|