1 |
commit: 4e48f39b336f9535c3bbf03e043f4a50370fbd1b |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 29 20:32:26 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 29 20:53:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e48f39b |
7 |
|
8 |
games-board/camato: fix crash on keyboard events |
9 |
|
10 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
11 |
|
12 |
.../camato/{camato-0.7.4-r1.ebuild => camato-0.7.4-r2.ebuild} | 4 ++++ |
13 |
games-board/camato/files/camato-0.7.4-implicit-string.patch | 8 ++++++++ |
14 |
2 files changed, 12 insertions(+) |
15 |
|
16 |
diff --git a/games-board/camato/camato-0.7.4-r1.ebuild b/games-board/camato/camato-0.7.4-r2.ebuild |
17 |
similarity index 93% |
18 |
rename from games-board/camato/camato-0.7.4-r1.ebuild |
19 |
rename to games-board/camato/camato-0.7.4-r2.ebuild |
20 |
index 92df74471f2..7dc2af19988 100644 |
21 |
--- a/games-board/camato/camato-0.7.4-r1.ebuild |
22 |
+++ b/games-board/camato/camato-0.7.4-r2.ebuild |
23 |
@@ -18,6 +18,10 @@ KEYWORDS="~amd64 ~x86" |
24 |
|
25 |
ruby_add_rdepend dev-ruby/ruby-gtk2 |
26 |
|
27 |
+PATCHES=( |
28 |
+ "${FILESDIR}"/${P}-implicit-string.patch |
29 |
+) |
30 |
+ |
31 |
all_ruby_prepare() { |
32 |
# this is really single target, but ruby-single is too limited |
33 |
local ruby=$(ruby_get_use_implementations) |
34 |
|
35 |
diff --git a/games-board/camato/files/camato-0.7.4-implicit-string.patch b/games-board/camato/files/camato-0.7.4-implicit-string.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..e631b07a87a |
38 |
--- /dev/null |
39 |
+++ b/games-board/camato/files/camato-0.7.4-implicit-string.patch |
40 |
@@ -0,0 +1,8 @@ |
41 |
+Crashes on keyboard events otherwise. |
42 |
+--- a/map.rb |
43 |
++++ b/map.rb |
44 |
+@@ -35,3 +35,3 @@ |
45 |
+ if i < 0 or i > 255 then i = 0 end |
46 |
+- my_str[0] = i |
47 |
++ my_str[0] = i.to_s |
48 |
+ set_resource(my_str) |