mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-09 06:35:19 +02:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/31644 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
42 lines
830 B
Bash
42 lines
830 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit desktop
|
|
|
|
DESCRIPTION="An entertaining game based on the old DOS game lines"
|
|
HOMEPAGE="http://gtkballs.antex.ru/"
|
|
SRC_URI="http://gtkballs.antex.ru/dist/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="nls"
|
|
|
|
RDEPEND="
|
|
x11-libs/gtk+:2
|
|
nls? ( virtual/libintl )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="virtual/pkgconfig
|
|
nls? ( >=sys-devel/gettext-0.10.38 )
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
sed -i \
|
|
-e '/^nlsdir=/s:=.*:=/usr/share/locale:' \
|
|
-e '/^localedir/s:=.*:=/usr/share/locale:' \
|
|
configure po/Makefile.in.in || die "sed locale failed"
|
|
}
|
|
|
|
src_configure() {
|
|
econf $(use_enable nls)
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
newicon gnome-gtkballs.png ${PN}.png
|
|
make_desktop_entry gtkballs "GTK Balls"
|
|
}
|