blob: 7dc2af19988326e840e0893e2359019f9692fcfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# 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
https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
ruby_add_rdepend dev-ruby/ruby-gtk2
PATCHES=(
"${FILESDIR}"/${P}-implicit-string.patch
)
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
doicon "${DISTDIR}"/${PN}.png
make_desktop_entry ${PN} Camato
}
|