gtk4_layer_shell 1.0.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e5b166f0dc6208d0d6e4df69f00449902e5f3523c914a9b4b179f8a0c159314f
4
+ data.tar.gz: 4ebc846ce7581bfeb6b23ce61b81fc1facb4da65d6f831963c3b5f5e3f713900
5
+ SHA512:
6
+ metadata.gz: 30740289f07b2c9b03c7f410486e7b428d9e464636716174172cdaf6aaf5dcc86b83e6fc1ee777faf3e33f8fbbdaa1bc208eaec81b4aff34dd363689ac495a3d
7
+ data.tar.gz: d68b1f2d513c5846f7a28a0b95efc6444c5f417735883dd0346bf7fda9c78f9f7a408af2f07816a17a721e6c768a7905d0c44519bbdc7426d25830eeace9b6dd
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Michael Swiger
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Ruby GTK4 Layer Shell
2
+ This is a set of Ruby bindings for [Gtk4LayerShell](https://github.com/wmww/gtk4-layer-shell),
3
+ which is a library that enables using the Wayland layer shell protocol with GTK4 applications.
4
+
5
+ ## Usage
6
+ Due to [the way Gtk4LayerShell works](https://github.com/wmww/gtk4-layer-shell/blob/main/linking.md),
7
+ the Gtk4LayerShell libraries should be loaded before any Wayland libraries.
8
+ This can be achieved in Ruby by importing `gtk4_layer_shell/preload` before anything else.
9
+ See [examples](examples) in the repository for usage examples.
10
+
11
+ ## License
12
+ [MIT](LICENSE.md)
@@ -0,0 +1,6 @@
1
+ require "mkmf"
2
+
3
+ abort "Missing gtk4" unless pkg_config("gtk4")
4
+ abort "Missing gtk4-layer-shell library." unless have_library("gtk4-layer-shell")
5
+
6
+ create_makefile("gtk4_layer_shell/preload")
@@ -0,0 +1,8 @@
1
+ #include <ruby.h>
2
+ #include <gtk4-layer-shell/gtk4-layer-shell.h>
3
+
4
+ void
5
+ Init_preload(void) {
6
+ // prevent lazy linking/binding of gtk4-layer-shell shared object
7
+ gtk_layer_get_major_version();
8
+ }
@@ -0,0 +1,8 @@
1
+ require "glib2"
2
+ require "gobject-introspection"
3
+
4
+ module Gtk4LayerShell
5
+ NAMESPACE = "Gtk4LayerShell".freeze
6
+ GLib::Log.set_log_domain(NAMESPACE)
7
+ GObjectIntrospection::Loader.load(NAMESPACE, self)
8
+ end
metadata ADDED
@@ -0,0 +1,78 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gtk4_layer_shell
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Michael Swiger
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-05-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake-compiler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ description: |2
42
+ This is a set of Ruby bindings for Gtk4LayerShell, which is a library that enables using the Wayland layer shell
43
+ protocol with GTK4 applications.
44
+ email: michael@swiger.dev
45
+ executables: []
46
+ extensions:
47
+ - ext/gtk4_layer_shell/preload/extconf.rb
48
+ extra_rdoc_files: []
49
+ files:
50
+ - LICENSE
51
+ - README.md
52
+ - ext/gtk4_layer_shell/preload/extconf.rb
53
+ - ext/gtk4_layer_shell/preload/preload.c
54
+ - lib/gtk4_layer_shell.rb
55
+ homepage: https://github.com/mswiger/ruby-gtk4-layer-shell
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubygems_version: 3.3.25
75
+ signing_key:
76
+ specification_version: 4
77
+ summary: Ruby bindings for Gtk4LayerShell
78
+ test_files: []