blob: f3d83ab7d5dc378cd54acb95f8c4eee78d146cce (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/trackballs/trackballs-1.1.4.ebuild,v 1.6 2009/11/07 18:39:22 mr_bones_ Exp $
EAPI=2
inherit eutils games
DESCRIPTION="simple game similar to the classical game Marble Madness"
HOMEPAGE="http://trackballs.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
mirror://sourceforge/${PN}/${PN}-music-1.4.tar.bz2"
LICENSE="GPL-2 FML-1"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="nls"
RDEPEND="virtual/opengl
virtual/glu
media-libs/libsdl[audio,joystick,video]
>=dev-scheme/guile-1.8
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf
nls? ( virtual/libintl )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_prepare() {
sed -i \
-e 's/icons //' share/Makefile.in \
|| die "sed failed"
sed -i \
-e '/^localedir/s:=.*:=/usr/share/locale:' \
src/Makefile.in \
po/Makefile.in.in \
|| die "sed failed"
}
src_configure() {
egamesconf \
--disable-dependency-tracking \
--with-highscores="${GAMES_STATEDIR}"/${PN}-highscores \
$(use_enable nls)
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
insinto "${GAMES_DATADIR}"/${PN}/music
doins "${WORKDIR}"/trackballs-music/*.ogg || die "doins failed"
newicon share/icons/${PN}-64x64.png ${PN}.png
make_desktop_entry ${PN} Trackballs
dodoc AUTHORS ChangeLog FAQ NEWS README TODO
prepgamesdirs
}
|