1 |
commit: 2a11a674f6bedb201add2d2d41391b5b0545e513 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 28 11:33:42 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 28 16:42:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a11a674 |
7 |
|
8 |
games-board/camato: EAPI 6->7, versionator--, remove homepage |
9 |
|
10 |
Also add some ruby targets awareness for ruby-gtk2, and a desktop file. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/680484 |
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
games-board/camato/camato-0.7.4-r1.ebuild | 37 ++++++++++++++++++------------- |
16 |
1 file changed, 21 insertions(+), 16 deletions(-) |
17 |
|
18 |
diff --git a/games-board/camato/camato-0.7.4-r1.ebuild b/games-board/camato/camato-0.7.4-r1.ebuild |
19 |
index 4a062b440be..a927932ef7c 100644 |
20 |
--- a/games-board/camato/camato-0.7.4-r1.ebuild |
21 |
+++ b/games-board/camato/camato-0.7.4-r1.ebuild |
22 |
@@ -1,31 +1,36 @@ |
23 |
-# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Copyright 1999-2021 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
-inherit versionator |
29 |
+EAPI=7 |
30 |
|
31 |
-MY_PV=$(replace_all_version_separators _) |
32 |
-DESCRIPTION="A map editor for the game gnocatan" |
33 |
-HOMEPAGE="http://yusei.ragondux.com/loisirs_jdp_catane_camato-en.html" |
34 |
-SRC_URI="http://yusei.ragondux.com/files/gnocatan/${PN}-${MY_PV}.tar.gz" |
35 |
+USE_RUBY="ruby25 ruby26 ruby27" |
36 |
+inherit desktop ruby-ng |
37 |
|
38 |
-LICENSE="GPL-2" |
39 |
+DESCRIPTION="Map editor for the game gnocatan" |
40 |
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" |
41 |
+SRC_URI="mirror://gentoo/${PN}-$(ver_rs 1- _).tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2+" |
44 |
SLOT="0" |
45 |
KEYWORDS="~amd64 ~x86" |
46 |
-IUSE="" |
47 |
|
48 |
-DEPEND="dev-ruby/ruby-gtk2" |
49 |
-RDEPEND=${DEPEND} |
50 |
+ruby_add_rdepend dev-ruby/ruby-gtk2 |
51 |
|
52 |
-src_prepare() { |
53 |
- default |
54 |
+all_ruby_prepare() { |
55 |
+ # this is really single target, but ruby-single is too limited |
56 |
+ local ruby=$(ruby_get_use_implementations) |
57 |
+ sed -i "1c\\#!$(ruby_implementation_command ${ruby##* })" ${PN} || die |
58 |
|
59 |
- rm -f Makefile || die |
60 |
+ rm Makefile || die |
61 |
} |
62 |
|
63 |
-src_install() { |
64 |
+all_ruby_install() { |
65 |
dobin ${PN} |
66 |
+ |
67 |
insinto /usr/share/${PN} |
68 |
doins -r *.rb img |
69 |
- dodoc ChangeLog README |
70 |
+ |
71 |
+ einstalldocs |
72 |
+ |
73 |
+ make_desktop_entry ${PN} Camato applications-games |
74 |
} |