games-board/camato: fix crash on keyboard events

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2021-06-29 16:32:26 -04:00
parent 671d467371
commit 4e48f39b33
2 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ KEYWORDS="~amd64 ~x86"
ruby_add_rdepend dev-ruby/ruby-gtk2
PATCHES=(
"${FILESDIR}"/${P}-implicit-string.patch
)
all_ruby_prepare() {
# this is really single target, but ruby-single is too limited
local ruby=$(ruby_get_use_implementations)

View File

@@ -0,0 +1,8 @@
Crashes on keyboard events otherwise.
--- a/map.rb
+++ b/map.rb
@@ -35,3 +35,3 @@
if i < 0 or i > 255 then i = 0 end
- my_str[0] = i
+ my_str[0] = i.to_s
set_resource(my_str)