Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 446020 | Differences between
and this patch

Collapse All | Expand All

(-)warzone2100-2.3.9.ebuild (-8 / +25 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.3.9.ebuild,v 1.7 2012/07/29 21:18:01 hasufell Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.3.9.ebuild,v 1.7 2012/07/29 21:18:01 hasufell Exp $
4
4
5
EAPI=2
5
EAPI=4
6
inherit autotools eutils versionator games
6
inherit autotools eutils versionator games
7
7
8
MY_PV=$(get_version_component_range -2)
8
MY_PV=$(get_version_component_range -2)
Lines 10-38 Link Here
10
VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz
10
VIDEOS_P=${PN}-videos-${VIDEOS_PV}.wz
11
DESCRIPTION="3D real-time strategy game"
11
DESCRIPTION="3D real-time strategy game"
12
HOMEPAGE="http://wz2100.net/"
12
HOMEPAGE="http://wz2100.net/"
13
SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.gz
13
SRC_URI="mirror://sourceforge/warzone2100/${P}.tar.xz
14
	videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )"
14
	videos? ( mirror://sourceforge/warzone2100/warzone2100/Videos/${VIDEOS_PV}/high-quality-en/sequences.wz -> ${VIDEOS_P} )"
15
15
16
LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0 public-domain"
16
LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0 public-domain"
17
SLOT="0"
17
SLOT="0"
18
KEYWORDS="amd64 ~ppc x86"
18
KEYWORDS="~amd64 ~ppc ~x86"
19
# upstream requested debug support
19
# upstream requested debug support
20
IUSE="debug nls videos"
20
IUSE="debug nls videos +qt"
21
21
22
RDEPEND="dev-db/sqlite:3
22
RDEPEND="dev-db/sqlite:3
23
	>=dev-games/physfs-2[zip]
23
	>=dev-games/physfs-2[zip]
24
	dev-libs/popt
25
	media-libs/libogg
24
	media-libs/libogg
26
	media-libs/libpng
25
	media-libs/libpng
27
	media-libs/libsdl[opengl,video]
26
	!qt? ( media-libs/libsdl[opengl,video] )
28
	media-libs/libtheora
27
	media-libs/libtheora
29
	media-libs/libvorbis
28
	media-libs/libvorbis
30
	media-libs/openal
29
	media-libs/openal
31
	media-libs/sdl-net
30
	!qt? ( media-libs/sdl-net )
32
	media-libs/quesoglc
31
	media-libs/quesoglc
32
	media-libs/glew
33
	virtual/glu
33
	virtual/glu
34
	virtual/opengl
34
	virtual/opengl
35
	nls? ( virtual/libintl )"
35
	nls? ( virtual/libintl )
36
	x11-libs/libXrandr
37
	dev-libs/fribidi
38
	media-libs/freetype
39
	media-libs/fontconfig
40
	x11-libs/qt-core
41
	x11-libs/qt-script
42
	qt? (
43
		x11-libs/qt-gui
44
		x11-libs/qt-opengl
45
	)"
36
DEPEND="${RDEPEND}
46
DEPEND="${RDEPEND}
37
	sys-devel/bison
47
	sys-devel/bison
38
	app-arch/zip
48
	app-arch/zip
Lines 48-57 Link Here
48
58
49
	epatch "${FILESDIR}"/${P}-pkgconf.patch
59
	epatch "${FILESDIR}"/${P}-pkgconf.patch
50
60
61
	# http://developer.wz2100.net/ticket/3818
62
	epatch "${FILESDIR}/warzone2100-3.1_rc3-gl-save-state-crash.patch"
63
51
	eautoreconf
64
	eautoreconf
52
}
65
}
53
66
54
src_configure() {
67
src_configure() {
68
	local backend=sdl
69
	use qt && backend=qt
70
55
	egamesconf \
71
	egamesconf \
56
		--disable-motif \
72
		--disable-motif \
57
		--disable-dependency-tracking \
73
		--disable-dependency-tracking \
Lines 60-65 Link Here
60
		--with-distributor="Gentoo ${PF}" \
76
		--with-distributor="Gentoo ${PF}" \
61
		--with-icondir=/usr/share/pixmaps \
77
		--with-icondir=/usr/share/pixmaps \
62
		--with-applicationdir=/usr/share/applications \
78
		--with-applicationdir=/usr/share/applications \
79
		--with-backend=${backend}
63
		$(use_enable debug debug relaxed) \
80
		$(use_enable debug debug relaxed) \
64
		$(use_enable nls)
81
		$(use_enable nls)
65
}
82
}

Return to bug 446020