commit:     2a11a674f6bedb201add2d2d41391b5b0545e513
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 28 11:33:42 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun 28 16:42:39 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a11a674

games-board/camato: EAPI 6->7, versionator--, remove homepage

Also add some ruby targets awareness for ruby-gtk2, and a desktop file.

Closes: https://bugs.gentoo.org/680484
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-board/camato/camato-0.7.4-r1.ebuild | 37 ++++++++++++++++++-------------
 1 file changed, 21 insertions(+), 16 deletions(-)

diff --git a/games-board/camato/camato-0.7.4-r1.ebuild 
b/games-board/camato/camato-0.7.4-r1.ebuild
index 4a062b440be..a927932ef7c 100644
--- a/games-board/camato/camato-0.7.4-r1.ebuild
+++ b/games-board/camato/camato-0.7.4-r1.ebuild
@@ -1,31 +1,36 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
-inherit versionator
+EAPI=7
 
-MY_PV=$(replace_all_version_separators _)
-DESCRIPTION="A map editor for the game gnocatan"
-HOMEPAGE="http://yusei.ragondux.com/loisirs_jdp_catane_camato-en.html";
-SRC_URI="http://yusei.ragondux.com/files/gnocatan/${PN}-${MY_PV}.tar.gz";
+USE_RUBY="ruby25 ruby26 ruby27"
+inherit desktop ruby-ng
 
-LICENSE="GPL-2"
+DESCRIPTION="Map editor for the game gnocatan"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
+SRC_URI="mirror://gentoo/${PN}-$(ver_rs 1- _).tar.gz"
+
+LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
 
-DEPEND="dev-ruby/ruby-gtk2"
-RDEPEND=${DEPEND}
+ruby_add_rdepend dev-ruby/ruby-gtk2
 
-src_prepare() {
-       default
+all_ruby_prepare() {
+       # this is really single target, but ruby-single is too limited
+       local ruby=$(ruby_get_use_implementations)
+       sed -i "1c\\#!$(ruby_implementation_command ${ruby##* })" ${PN} || die
 
-       rm -f Makefile || die
+       rm Makefile || die
 }
 
-src_install() {
+all_ruby_install() {
        dobin ${PN}
+
        insinto /usr/share/${PN}
        doins -r *.rb img
-       dodoc ChangeLog README
+
+       einstalldocs
+
+       make_desktop_entry ${PN} Camato applications-games
 }

Reply via email to