You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-board/camato/camato-0.7.4-r1.ebuild

37 lines
786 B

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby25 ruby26 ruby27"
inherit desktop ruby-ng
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"
ruby_add_rdepend dev-ruby/ruby-gtk2
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 Makefile || die
}
all_ruby_install() {
dobin ${PN}
insinto /usr/share/${PN}
doins -r *.rb img
einstalldocs
make_desktop_entry ${PN} Camato applications-games
}