summaryrefslogtreecommitdiff
path: root/dev-ruby/ruby-gtk3
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-17 06:49:08 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-17 06:49:08 +0000
commit2bf68d7062b64d9f815f3b8ce6942a66afe53b0d (patch)
treeac1e773aaa4d3575d18d178ae260cab963bbf64c /dev-ruby/ruby-gtk3
parentcd356b722fd8d162f02a5059fae1a66e00be52e3 (diff)
gentoo auto-resync : 17:03:2024 - 06:49:08
Diffstat (limited to 'dev-ruby/ruby-gtk3')
-rw-r--r--dev-ruby/ruby-gtk3/Manifest2
-rw-r--r--dev-ruby/ruby-gtk3/files/ruby-gtk3-4.1.2-c99.patch29
-rw-r--r--dev-ruby/ruby-gtk3/ruby-gtk3-4.1.2-r1.ebuild34
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-ruby/ruby-gtk3/Manifest b/dev-ruby/ruby-gtk3/Manifest
index c3ceffdb49f3..58fffe1d6b37 100644
--- a/dev-ruby/ruby-gtk3/Manifest
+++ b/dev-ruby/ruby-gtk3/Manifest
@@ -1,3 +1,5 @@
+AUX ruby-gtk3-4.1.2-c99.patch 1529 BLAKE2B 3d7cc551a50699ab8e65fa812236c777b6cb77bb01bfce6bb57e8d7de985d86fc38ad194cd55d19a8d5352cf38924208d58c7efdbfdfa07e78837a0c41fa9d70 SHA512 b3417c9129f1ed9aadc1d68c1d0b17a52f756631e31134e741610c88852d1e259dd35f9424721708dec877626165ebd0044c44a3c586d541cee20fda801f7af6
DIST ruby-gnome2-4.1.2.tar.gz 2708791 BLAKE2B ef24788d8c65f96c76b43d8adc38af21dfb3bfe2f8ae2157f6978993fe65e9735030e9912e8eb1ff5ff90ab1c67701ae61ac3b0790cb285646f26b6193d74be5 SHA512 898ae5bcd7a6347d7392b7888c19493905f6e660afb61f17a60b1f22e4069329ef6ccc9277375a2c40b4d998a309b61de6797f50c4633c0f5de22d2e85252537
+EBUILD ruby-gtk3-4.1.2-r1.ebuild 735 BLAKE2B b15d20742584c5a78b7b9a22a6abc740088f088acea7a6d170d43c7f8ac2310561cab6885bb24295c9e3891f5705d05963269dd904898a033bccbf550d079f1b SHA512 b5e257e8fbcab5efd4b67d28fb0cc0a0f3ff6e2e19b7a51b4a7c740d0075ea730f819d71b5853eb875ca5487ba3075ba211e7e28decb53926da1e2b0dfb4e696
EBUILD ruby-gtk3-4.1.2.ebuild 681 BLAKE2B 563c9277332677939d2cf34df586b7858de9cb0fce42d464c37bd020443728a433c70be9bddf2ea509537f04c836fab1614a1f010dfc2c0241b549bc46750a86 SHA512 32333d673971a81dd10c6a834e3ed40dc497847f0390f79c9b58958eeb317288f42dc026bae49838ba791e27e51e6a8086a3de8e1731f2bd18530332b8291312
MISC metadata.xml 338 BLAKE2B 28afb4e4601ddbd918344e8ea4668d18b43122fd5db29849d806919be9da2889d21fa047bfc43cbad6c95ff0e0f1bcdba2c2ba0c5e0b8b27ac7a235f534cd163 SHA512 72c7dbc3d22142137d4017e7514cafc7c900b673a571b44b7c649dc8776550d504052cce7f48164594939f1cd01e0fa5034a1e8c3b9c4a5f7176f7760ba692da
diff --git a/dev-ruby/ruby-gtk3/files/ruby-gtk3-4.1.2-c99.patch b/dev-ruby/ruby-gtk3/files/ruby-gtk3-4.1.2-c99.patch
new file mode 100644
index 000000000000..0da13a4a6344
--- /dev/null
+++ b/dev-ruby/ruby-gtk3/files/ruby-gtk3-4.1.2-c99.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/921145
+https://github.com/ruby-gnome/ruby-gnome/commit/c196bf19a5d6a395011a90c3d1cb8f039d15824d
+
+From c196bf19a5d6a395011a90c3d1cb8f039d15824d Mon Sep 17 00:00:00 2001
+From: Sutou Kouhei <kou@clear-code.com>
+Date: Sat, 19 Aug 2023 15:45:46 +0900
+Subject: [PATCH] gtk3: fix a wrong type warning
+
+ compiling rb-gtk3-spin-button.c
+ rb-gtk3-spin-button.c:70:15: warning: incompatible function pointer types passing 'VALUE (VALUE)' (aka 'unsigned long (unsigned long)') to parameter of type 'VALUE (*)(VALUE, VALUE)' (aka 'unsigned long (*)(unsigned long, unsigned long)') [-Wincompatible-function-pointer-types]
+ rb_gtk3_spin_button_input_rescue, (VALUE)&input_data);
+ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ /Users/runner/hostedtoolcache/Ruby/3.2.2/x64/include/ruby-3.2.0/ruby/internal/iterator.h:364:62: note: passing argument to parameter 'r_proc' here
+ VALUE rb_rescue(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*r_proc)(VALUE, VALUE), VALUE data2);
+ ^
+
+Reported by MATSUMOTO Katsuyoshi. Thanks!!!
+--- a/ext/gtk3/rb-gtk3-spin-button.c
++++ b/ext/gtk3/rb-gtk3-spin-button.c
+@@ -46,7 +46,7 @@ rb_gtk3_spin_button_input_body(VALUE user_data)
+ }
+
+ static VALUE
+-rb_gtk3_spin_button_input_rescue(VALUE user_data)
++rb_gtk3_spin_button_input_rescue(VALUE user_data, VALUE error)
+ {
+ InputData *input_data = (InputData *)user_data;
+ g_value_set_int(input_data->data->return_value, GTK_INPUT_ERROR);
+
diff --git a/dev-ruby/ruby-gtk3/ruby-gtk3-4.1.2-r1.ebuild b/dev-ruby/ruby-gtk3/ruby-gtk3-4.1.2-r1.ebuild
new file mode 100644
index 000000000000..0410d6b9acb2
--- /dev/null
+++ b/dev-ruby/ruby-gtk3/ruby-gtk3-4.1.2-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+
+RUBY_GNOME2_NEED_VIRTX=yes
+
+inherit ruby-ng-gnome2
+
+DESCRIPTION="Ruby Gtk2 bindings"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+IUSE=""
+
+DEPEND+=" dev-libs/glib
+ dev-libs/gobject-introspection
+ x11-base/xorg-proto
+ x11-libs/gtk+:3"
+RDEPEND+=" dev-libs/glib
+ dev-libs/gobject-introspection
+ x11-libs/gtk+:3"
+
+ruby_add_rdepend "
+ ~dev-ruby/ruby-atk-${PV}
+ ~dev-ruby/ruby-gdk3-${PV}"
+ruby_add_bdepend "
+ ~dev-ruby/ruby-cairo-gobject-${PV}
+ ~dev-ruby/ruby-glib2-${PV}
+ ~dev-ruby/ruby-gobject-introspection-${PV}
+ ~dev-ruby/ruby-pango-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/ruby-gtk3-4.1.2-c99.patch
+)