blob: efe886cb6c1a2af19af917783f19f7d203e8507e (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/gtkballs/gtkballs-3.1.5-r1.ebuild,v 1.5 2012/05/04 04:45:28 jdhore Exp $
EAPI=2
inherit eutils games
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 ppc x86"
IUSE="nls"
RDEPEND="x11-libs/gtk+:2
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( >=sys-devel/gettext-0.10.38 )"
src_prepare() {
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() {
egamesconf $(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die
dodoc ChangeLog AUTHORS README* TODO NEWS || die "dodoc failed"
newicon gnome-gtkballs.png ${PN}.png
make_desktop_entry gtkballs "GTK Balls"
prepgamesdirs
}
|