clutter-gdk 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +57 -0
  3. data/lib/clutter-gdk.rb +64 -0
  4. metadata +73 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0fcf98eac9f37530fa800cd1b4af4e80bf8a17a8
4
+ data.tar.gz: 9f88c7dbf118f6547300c420d66b4deebf7c1abc
5
+ SHA512:
6
+ metadata.gz: d715c8fa1e9c76d681087100eaef0905c25789218971567113c3e7aca012c831475ff5c5f3b91c42c2e88b51fdbee49ce2b9b2ecd1451585d8ae8b27db28db04
7
+ data.tar.gz: 4c756a0e3efbdf61e3dea3e2b2fd1f62f22c9a22431427fdf0b81274c862469bb5002249d8ada060462e2af05c52c888afa3da4222b5163c9f462b3d83dc494e
@@ -0,0 +1,57 @@
1
+ # -*- ruby -*-
2
+ #
3
+ # Copyright (C) 2016 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/rake/package-task"
21
+
22
+ package_task = GNOME2::Rake::PackageTask.new do |package|
23
+ package.summary =
24
+ "Ruby/ClutterGDK is a Ruby binding of GDK specific API of Clutter."
25
+ package.description =
26
+ "Ruby/ClutterGDK is a Ruby binding of GDK specific API of Clutter."
27
+ package.dependency.gem.runtime = ["clutter", "gdk3"]
28
+ package.windows.packages = []
29
+ package.windows.dependencies = []
30
+ package.windows.build_dependencies = [
31
+ "glib2",
32
+ "atk",
33
+ "pango",
34
+ "gdk_pixbuf2",
35
+ "gobject-introspection",
36
+ "clutter",
37
+ "gdk3",
38
+ ]
39
+ package.windows.gobject_introspection_dependencies = [
40
+ "atk",
41
+ "pango",
42
+ "gdk_pixbuf2",
43
+ "clutter",
44
+ "gdk3",
45
+ ]
46
+ package.external_packages = [
47
+ ]
48
+ end
49
+ package_task.define
50
+
51
+ namespace :dependency do
52
+ desc "Install depenencies"
53
+ task :install do
54
+ end
55
+ end
56
+
57
+ task :build => "dependency:install"
@@ -0,0 +1,64 @@
1
+ # Copyright (C) 2016 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 "clutter"
18
+ require "gdk3"
19
+
20
+ module ClutterGdk
21
+ loader = GObjectIntrospection::Loader.new(self)
22
+ loader.load("ClutterGdk")
23
+ end
24
+
25
+ init_clutter = lambda do
26
+ module Clutter
27
+ class Stage
28
+ def gdk_window
29
+ ClutterGdk.get_stage_window(self)
30
+ end
31
+
32
+ def set_foreign_window(window)
33
+ ClutterGdk.set_stage_foreign(self, window)
34
+ end
35
+ alias_method :foreign_window=, :set_foreign_window
36
+ end
37
+ end
38
+ end
39
+
40
+ if Clutter.respond_to?(:init)
41
+ Clutter.on_init do
42
+ init_clutter.call
43
+ end
44
+ else
45
+ init_clutter.call
46
+ end
47
+
48
+ init_gdk = lambda do
49
+ module Gdk
50
+ class Window
51
+ def clutter_stage
52
+ ClutterGdk.get_stage_from_window(self)
53
+ end
54
+ end
55
+ end
56
+ end
57
+
58
+ if Gdk.respond_to?(:init)
59
+ Gdk.on_init do
60
+ init_gdk.call
61
+ end
62
+ else
63
+ init_gdk.call
64
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: clutter-gdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.0
5
+ platform: ruby
6
+ authors:
7
+ - The Ruby-GNOME2 Project Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: clutter
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: gdk3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ description: Ruby/ClutterGDK is a Ruby binding of GDK specific API of Clutter.
42
+ email: ruby-gnome2-devel-en@lists.sourceforge.net
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - Rakefile
48
+ - lib/clutter-gdk.rb
49
+ homepage: http://ruby-gnome2.sourceforge.jp/
50
+ licenses:
51
+ - LGPLv2.1+
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.0
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 2.5.1
70
+ signing_key:
71
+ specification_version: 4
72
+ summary: Ruby/ClutterGDK is a Ruby binding of GDK specific API of Clutter.
73
+ test_files: []