blob: 331208e2dc9375e71b56995f4e68e54ae464b30d (
plain)
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-sports/racer-bin/racer-bin-0.5.0-r1.ebuild,v 1.5 2004/06/24 23:25:00 agriffis Exp $
inherit games
DESCRIPTION="A car simulation game focusing on realism, in the style of Grand Prix Legends"
HOMEPAGE="http://www.racer.nl/"
SRC_URI="http://download.tdconline.dk/pub/boomtown/racesimcentral/rr_data${PV}.tgz
http://download.tdconline.dk/pub/boomtown/racesimcentral/rr_bin_linux${PV}.tgz"
LICENSE="Racer"
SLOT="0"
KEYWORDS="-* x86"
IUSE=""
RDEPEND="virtual/opengl
media-libs/libsdl
sys-libs/lib-compat
>=media-libs/fmod-3.61"
S="${WORKDIR}/racer${PV}"
src_compile() {
einfo "Binary package. Nothing to compile"
}
src_install( ) {
local dir=${GAMES_PREFIX_OPT}/${PN}
local f
dodir ${dir} || die "dodir failed"
dodoc *.txt || die "dodoc failed"
rm -f *.txt
cp -R ${S}/* "${D}/${dir}/" || die "cp failed"
sed -e "s:GENTOO_DIR:${dir}:" "${FILESDIR}/racer-skel" > racer-skel \
|| die "sed failed"
for f in carlab gplex modeler pacejka racer tracked
do
newgamesbin racer-skel ${f} || \
die "newgamesbin ${f} failed"
dosed "s:GENTOO_BIN:${f}:" ${GAMES_BINDIR}/${f} || \
die "dosed ${f} failed"
done
local libfmod=`find /usr/lib/ -name 'libfmod-*so' -maxdepth 1 -type f -printf '%f'`
dosym /usr/lib/${libfmod} ${dir}/bin/libfmod-3.61.so
dosym /usr/lib/${libfmod} ${dir}/bin/libfmod-3.5.so
# Fix up some permissions for bug 31694
for f in racer.ini data/drivers/default/driver.ini data/tracks/carlswood_nt/bestlaps.ini
do
fperms 664 ${dir}/${f} || \
die "fperms ${f} failed"
done
prepgamesdirs
}
|