blob: ebbcff2f2c90913e194f0d169e658f520bb1cb9d (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/armagetronad/armagetronad-0.2.8.3.1.ebuild,v 1.4 2010/04/27 15:32:43 phajdan.jr Exp $
EAPI=2
inherit autotools eutils gnome2-utils games
DESCRIPTION="3d tron lightcycles, just like the movie"
HOMEPAGE="http://armagetronad.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.src.tar.bz2
!dedicated? (
http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
http://armagetron.sourceforge.net/addons/moviepack.zip
)"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE="dedicated"
RDEPEND="dev-libs/libxml2
!dedicated? (
virtual/opengl
virtual/glu
media-libs/libsdl[X,audio,opengl,video]
media-libs/sdl-image[jpeg,png]
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2.40
)"
DEPEND="${RDEPEND}
!dedicated? ( app-arch/unzip )"
src_prepare() {
sed -i \
-e 's/png_check_sig/png_sig_cmp/' \
configure.ac || die
sed -i \
-e '/^SUBDIRS/s/desktop//' \
Makefile.am || die
eautoreconf
}
src_configure() {
local myconf
use dedicated && myconf="--disable-glout"
egamesconf \
--enable-initscripts=/usr/share/doc/${PF}/examples \
${myconf}
}
src_install() {
emake DESTDIR="${D}" armadocdir="/usr/share/doc/${PF}" install || die
dodoc AUTHORS ChangeLog NEWS README*
rm -f "${D}/${GAMES_BINDIR}"/${PN}{,-dedicated}-uninstall
if ! use dedicated; then
local hidir="/usr/share/icons/hicolor"
insinto ${hidir}/48x48/apps
doins desktop/icons/large/${PN}.png || die
insinto ${hidir}/32x32/apps
doins desktop/icons/medium/${PN}.png || die
insinto ${hidir}/16x16/apps
doins desktop/icons/small/${PN}.png || die
make_desktop_entry armagetronad "Armagetron Advanced"
insinto "${GAMES_DATADIR}"/${PN}
doins -r ../moviepack ../moviesounds || die
fi
prepgamesdirs
}
pkg_preinst() {
games_pkg_preinst
gnome2_icon_savelist
}
pkg_postinst() {
games_pkg_postinst
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|