Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 121473
Collapse All | Expand All

(-)/usr/portage/games-action/armagetronad/armagetronad-0.2.7.1.ebuild (-17 / +13 lines)
Lines 8-14 Link Here
8
DESCRIPTION="3d tron lightcycles, just like the movie"
8
DESCRIPTION="3d tron lightcycles, just like the movie"
9
HOMEPAGE="http://armagetronad.sourceforge.net/"
9
HOMEPAGE="http://armagetronad.sourceforge.net/"
10
SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2
10
SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2
11
	opengl? (
11
	!dedicated? (
12
		http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
12
		http://armagetron.sourceforge.net/addons/moviesounds_fq.zip
13
		http://armagetron.sourceforge.net/addons/moviepack.zip
13
		http://armagetron.sourceforge.net/addons/moviepack.zip
14
	)"
14
	)"
Lines 16-40 Link Here
16
LICENSE="GPL-2"
16
LICENSE="GPL-2"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="amd64 ~ppc x86"
18
KEYWORDS="amd64 ~ppc x86"
19
IUSE="dedicated opengl"
19
IUSE="dedicated"
20
20
21
RDEPEND="sys-libs/zlib
21
RDEPEND="
22
	opengl? (
22
	!dedicated? (
23
		sys-libs/zlib
23
		virtual/opengl
24
		virtual/opengl
25
		virtual/glu
24
		media-libs/libsdl
26
		media-libs/libsdl
25
		media-libs/sdl-image
27
		media-libs/sdl-image
26
		media-libs/sdl-mixer
27
		media-libs/jpeg
28
		media-libs/jpeg
28
		media-libs/libpng )"
29
		media-libs/libpng )"
29
DEPEND="${RDEPEND}
30
DEPEND="${RDEPEND}
30
	app-arch/unzip
31
	!dedicated? ( app-arch/unzip )"
31
	|| (
32
		x11-libs/libX1
33
		virtual/x11 )"
34
32
35
src_compile() {
33
src_compile() {
36
	filter-flags -fno-exceptions
34
	filter-flags -fno-exceptions
37
	if use dedicated && ! use opengl; then
35
	if use dedicated; then
38
		egamesconf --disable-glout || die "egamesconf failed"
36
		egamesconf --disable-glout || die "egamesconf failed"
39
	else
37
	else
40
		egamesconf || die "egamesconf failed"
38
		egamesconf || die "egamesconf failed"
Lines 49-66 Link Here
49
	dohtml doc/net/*.html
47
	dohtml doc/net/*.html
50
	newicon tron.ico ${PN}.ico
48
	newicon tron.ico ${PN}.ico
51
	exeinto "${GAMES_LIBDIR}/${PN}"
49
	exeinto "${GAMES_LIBDIR}/${PN}"
52
	if use dedicated && ! use opengl; then
50
	if use dedicated; then
53
		doexe src/tron/${PN}-dedicated || die "copying files"
51
		doexe src/tron/${PN}-dedicated || die "copying files"
54
	else
52
	else
55
		doexe src/tron/${PN} || die "copying files"
53
		doexe src/tron/${PN} || die "copying files"
56
	fi
54
	fi
57
	doexe src/network/armagetronad-* || die "copying files"
55
	doexe src/network/armagetronad-* || die "copying files"
58
	insinto "${GAMES_DATADIR}/${PN}"
56
	insinto "${GAMES_DATADIR}/${PN}"
59
	if use dedicated && ! use opengl; then
57
	doins -r log language || die "copying files"
60
		doins -r log language || die "copying files"
58
	if ! use dedicated; then
61
	else
59
		doins -r arenas models sound textures music || die "copying files"
62
		doins -r arenas models sound textures language log music \
63
			|| die "copying files"
64
	fi
60
	fi
65
	insinto "${GAMES_SYSCONFDIR}/${PN}"
61
	insinto "${GAMES_SYSCONFDIR}/${PN}"
66
	doins -r config/* || die "copying files"
62
	doins -r config/* || die "copying files"
Lines 69-75 Link Here
69
	fi
65
	fi
70
	cd "${S}"
66
	cd "${S}"
71
	insinto "${GAMES_DATADIR}/${PN}"
67
	insinto "${GAMES_DATADIR}/${PN}"
72
	if use opengl; then
68
	if ! use dedicated; then
73
		dogamesbin "${FILESDIR}/${PN}"
69
		dogamesbin "${FILESDIR}/${PN}"
74
		insinto "${GAMES_DATADIR}/${PN}"
70
		insinto "${GAMES_DATADIR}/${PN}"
75
		doins -r ../moviepack ../moviesounds || die "copying movies"
71
		doins -r ../moviepack ../moviesounds || die "copying movies"

Return to bug 121473