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

Collapse All | Expand All

(-)vdrift-20060708.ebuild (-7 / +8 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: $
3
# $Header: $
4
4
5
inherit eutils python games
5
inherit eutils games
6
6
7
MY_P="${PN}-${PV:0:4}-${PV:4:2}-${PV:6}"
7
MY_P="${PN}-${PV:0:4}-${PV:4:2}-${PV:6}"
8
DESCRIPTION="A driving simulation made with drift racing in mind"
8
DESCRIPTION="A driving simulation made with drift racing in mind"
Lines 12-18 Link Here
12
12
13
LICENSE="GPL-2"
13
LICENSE="GPL-2"
14
SLOT="0"
14
SLOT="0"
15
KEYWORDS="~x86"
15
KEYWORDS="~amd64 ~x86"
16
IUSE="debug nls"
16
IUSE="debug nls"
17
17
18
RDEPEND="media-libs/openal
18
RDEPEND="media-libs/openal
Lines 37-50 Link Here
37
37
38
src_unpack() {
38
src_unpack() {
39
	unpack ${MY_P}-src.tar.bz2
39
	unpack ${MY_P}-src.tar.bz2
40
	cd ${S}
41
	unpack ${MY_P}-data-full.tar.bz2
40
	unpack ${MY_P}-data-full.tar.bz2
42
41
43
	# We need our CXXFLAGS
42
	# We need our CXXFLAGS
44
	sed -ri \
43
	sed -ri \
45
		-e "/env.Append\(CCFLAGS/s:-O2:${CXXFLAGS// /\' ,\'}:" \
44
		-e "/env.Append\(CCFLAGS/s:-O2:${CXXFLAGS// /\' ,\'}:" \
46
		SConstruct \
45
		${S}/SConstruct \
47
		|| die "sed SConstruct failed"
46
		|| die "sed SConstruct failed"
47
		
48
	sed -i "s:os.system:#os.system:g" ${S}/src/SConscript
48
}
49
}
49
50
50
src_compile() {
51
src_compile() {
Lines 55-60 Link Here
55
	scons ${MAKEOPTS/j/j } \
56
	scons ${MAKEOPTS/j/j } \
56
		${myconf} \
57
		${myconf} \
57
		prefix='' \
58
		prefix='' \
59
		destdir=${D} \
60
		bindir=${GAMES_BINDIR} \
58
		localedir=/usr/share/locale \
61
		localedir=/usr/share/locale \
59
		datadir=${GAMES_DATADIR}/vdrift \
62
		datadir=${GAMES_DATADIR}/vdrift \
60
		use_binreloc=0 \
63
		use_binreloc=0 \
Lines 62-72 Link Here
62
}
65
}
63
66
64
src_install() {
67
src_install() {
65
	dogamesbin build/${PN} || die "dogamesbin failed"
68
	scons install || die "scons install failed"
66
69
67
	dodoc docs/*
70
	dodoc docs/*
68
	insinto "${GAMES_DATADIR}"/${PN}
69
	doins -r data/* || die "doins failed"
70
	newicon data/textures/small/icons/vdrift-64x64.png ${PN}.png
71
	newicon data/textures/small/icons/vdrift-64x64.png ${PN}.png
71
72
72
	make_desktop_entry ${PN} "VDrift"
73
	make_desktop_entry ${PN} "VDrift"

Return to bug 98094