public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/camato/
Date: Mon, 28 Jun 2021 16:49:26 +0000 (UTC)	[thread overview]
Message-ID: <1624898559.2a11a674f6bedb201add2d2d41391b5b0545e513.ionen@gentoo> (raw)

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	other threads:[~2021-06-28 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 16:49 Ionen Wolkens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-06-29 20:55 [gentoo-commits] repo/gentoo:master commit in: games-board/camato/ Ionen Wolkens
2016-11-13 10:32 Hans de Graaff
2016-09-14 17:26 Austin English

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1624898559.2a11a674f6bedb201add2d2d41391b5b0545e513.ionen@gentoo \
    --to=ionen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox