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

Collapse All | Expand All

(-)file_not_specified_in_diff (-21 / +15 lines)
Line  Link Here
0
-- vdrift-20090615.ebuild
0
++ vdrift-20111022.ebuild
Lines 1-52 Link Here
1
# Copyright 1999-2010 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
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-sports/vdrift/vdrift-20090615.ebuild,v 1.6 2010/10/14 01:59:17 mr_bones_ Exp $
3
# $Header: /var/cvsroot/gentoo-x86/games-sports/vdrift/vdrift-20090615.ebuild,v 1.6 2010/10/14 01:59:17 mr_bones_ Exp $
4
4
5
EAPI=2
5
EAPI=2
6
inherit eutils scons-utils games
6
inherit eutils scons-utils games
7
7
8
MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6}
8
MY_P=${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}
9
DESCRIPTION="A driving simulation made with drift racing in mind"
9
DESCRIPTION="A driving simulation made with drift racing in mind"
10
HOMEPAGE="http://vdrift.net/"
10
HOMEPAGE="http://vdrift.net/"
11
SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.bz2"
11
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
12
12
13
LICENSE="GPL-2 ZLIB"
13
LICENSE="GPL-2 ZLIB"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="amd64 x86"
15
KEYWORDS="amd64 ~x86"
16
IUSE="nls"
16
IUSE=""
17
17
18
RDEPEND="virtual/opengl
18
RDEPEND="app-arch/libarchive
19
	virtual/glu
20
	media-libs/glew
19
	media-libs/glew
21
	media-libs/libsdl[opengl,video]
20
	media-libs/libsdl[opengl,video]
22
	media-libs/openal
23
	media-libs/sdl-gfx
21
	media-libs/sdl-gfx
24
	media-libs/sdl-image[png]
22
	media-libs/sdl-image[png]
25
	media-libs/sdl-net
26
	media-libs/libvorbis
23
	media-libs/libvorbis
27
	nls? ( virtual/libintl )"
24
	net-misc/curl
25
	sci-physics/bullet
26
	virtual/opengl
27
	virtual/glu"
28
DEPEND="${RDEPEND}
28
DEPEND="${RDEPEND}
29
	dev-cpp/asio
29
	dev-cpp/asio
30
	nls? ( sys-devel/gettext )"
30
	dev-libs/boost
31
	dev-util/pkgconfig"
31
32
32
S=${WORKDIR}/${PN}-${PV:0:4}-${PV:4:2}-${PV:6:2}
33
S=${WORKDIR}/${MY_P}
33
34
34
src_prepare() {
35
src_prepare() {
35
	sed -i \
36
	epatch "${FILESDIR}"/${P}-build.patch
36
		-e "s/'-O1',\?//" \
37
		SConstruct \
38
		|| die "sed failed"
39
	epatch "${FILESDIR}"/${P}-ldflags.patch
40
}
37
}
41
38
42
src_compile() {
39
src_compile() {
43
	escons \
40
	escons \
44
		force_feedback=1 \
41
		force_feedback=1 \
45
		$(use_scons nls NLS) \
46
		destdir="${D}" \
42
		destdir="${D}" \
47
		bindir="${GAMES_BINDIR}" \
43
		bindir="${GAMES_BINDIR}" \
48
		datadir="${GAMES_DATADIR}"/${PN} \
44
		datadir="${GAMES_DATADIR}"/${PN} \
49
		localedir=/usr/share/locale \
50
		prefix= \
45
		prefix= \
51
		use_binreloc=0 \
46
		use_binreloc=0 \
52
		release=1 \
47
		release=1 \
Lines 62-68 Link Here
62
	doins -r data/* || die "doins failed"
57
	doins -r data/* || die "doins failed"
63
	newicon data/textures/icons/vdrift-64x64.png ${PN}.png
58
	newicon data/textures/icons/vdrift-64x64.png ${PN}.png
64
	make_desktop_entry ${PN} VDrift
59
	make_desktop_entry ${PN} VDrift
65
	dodoc docs/*
66
	find "${D}" -name "SCon*" -exec rm \{\} +
60
	find "${D}" -name "SCon*" -exec rm \{\} +
67
	cd "${D}"
61
	cd "${D}"
68
	keepdir $(find "${GAMES_DATADIR/\//}/${PN}" -type d -empty)
62
	keepdir $(find "${GAMES_DATADIR/\//}/${PN}" -type d -empty)

Return to bug 351409