forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharmagetronad-0.2.9.1.0.ebuild
64 lines (53 loc) · 1.33 KB
/
armagetronad-0.2.9.1.0.ebuild
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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop
DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
HOMEPAGE="http://armagetronad.org/"
SRC_URI="https://launchpad.net/armagetronad/$(ver_cut 1-3)/${PV}/+download/armagetronad-${PV}.tbz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dedicated sound"
RDEPEND="
dev-libs/libxml2
!dedicated? (
media-libs/libpng:0=
media-libs/libsdl[X,opengl,video,sound?]
media-libs/sdl-image[jpeg,png]
virtual/glu
virtual/opengl
sound? ( media-libs/sdl-mixer )
)"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-AR.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
local econfargs=(
$(use_enable dedicated)
$(use_enable sound music)
# following options only mess with paths and users
--disable-games
--disable-sysinstall
--disable-uninstall
--disable-useradd
)
econf ${econfargs[@]}
}
src_install() {
# long history of being broken without -j1 (bug #330705,698020)
# do not remove (again) without a proper fix or extensive tests
emake -j1 DESTDIR="${D}" install
einstalldocs
# handle misplaced .desktop / icons
if ! use dedicated; then
rm -r "${ED}"/usr/share/${PN}/desktop || die
doicon desktop/icons/48x48/armagetronad.png
make_desktop_entry ${PN}
fi
}