Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82564 - [EBUILD] roadfighter
Summary: [EBUILD] roadfighter
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Games
URL: http://braingames.getput.com/roadf/de...
Whiteboard:
Keywords:
Depends on: 33296
Blocks:
  Show dependency tree
 
Reported: 2005-02-19 04:45 UTC by Christoph Brill (egore) (RESIGNED)
Modified: 2008-11-11 09:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
games-action/roadfighter-1.0 (roadfighter-1.0.ebuild,668 bytes, text/plain)
2005-02-19 04:46 UTC, Christoph Brill (egore) (RESIGNED)
Details
games-action/roadfighter-1.0 (roadfighter-1.0.ebuild,857 bytes, text/plain)
2005-02-19 08:23 UTC, Christoph Brill (egore) (RESIGNED)
Details
games-action/roadfighter-1.0 (roadfighter-1.0.ebuild,1.08 KB, text/plain)
2005-02-20 06:12 UTC, Christoph Brill (egore) (RESIGNED)
Details
roadfighter-homedir.patch (roadfighter-homedir.patch,1.80 KB, patch)
2005-02-20 06:12 UTC, Christoph Brill (egore) (RESIGNED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Brill (egore) (RESIGNED) 2005-02-19 04:45:04 UTC
A road fighter remake

Reproducible: Always
Steps to Reproduce:
Comment 1 Christoph Brill (egore) (RESIGNED) 2005-02-19 04:46:35 UTC
Created attachment 51585 [details]
games-action/roadfighter-1.0

The ebuild

need http://bugs.gentoo.org/show_bug.cgi?id=57087 or
http://bugs.gentoo.org/show_bug.cgi?id=33296 (I used the last one)
Comment 2 Christoph Brill (egore) (RESIGNED) 2005-02-19 04:48:52 UTC
Forgot to mention: It crashed immediately for me, but every SDL based application does that currently on my PC, so I can't tell if something is wrong with the game or with SGE.
Comment 3 Alexandru Toma 2005-02-19 07:01:51 UTC
From the ebuild:
DEPEND="media-libs/libsdl
		media-libs/sdl-mixer
		media-libs/sdl-sound
		media-libs/sdl-ttf
		media-libs/sdl-image
		media-libs/sge"
RDEPEND=""

Remove RDEPEND="" and also:
src_unpack() {
	mkdir ${S}
	cd ${S}
	unpack ${A}
}

Isn't that unneeded? You can just set S="${WORKDIR}" and be done with it.

src_compile() {
	make || die "make failed"
}
Doesn't the ebuild work if you omit src_compile?

And finally, and this is the most important... have you actually tested your ebuild? It will not work because it just installs the binary, not the game data as well, which is available here (in the win32 pack): http://www.braingames.getput.com/roadf/download/RoadFighter.zip
Comment 4 Christoph Brill (egore) (RESIGNED) 2005-02-19 08:23:38 UTC
Created attachment 51605 [details]
games-action/roadfighter-1.0

Changes:

1.) fixed RDEPEND
2.) changes to S=${WORKDIR}
3.) removed src_compile
4.) using data from windows binary

Outstanding issues: For some reason roadfighter can only be played as root. I
think it's because roadfighter stores a config file in it's basedir, but I
cannot verify it.
Comment 5 Alexandru Toma 2005-02-19 08:34:31 UTC
RDEPEND="${DEPEND}" -> just remove that

cp -r rf RoadFighter/fonts RoadFighter/graphics RoadFighter/maps RoadFighter/sound "${D}${GAMES_DATADIR}/${PN}"
You're copying the data, but does the game know where to find it... I think you have to sed or patch the source files.

echo "#!/bin/sh
cd ${GAMES_DATADIR}/${PN}
./rf" > ${PN}
Just use games_make_wrapper from the games eclass
Comment 6 Christoph Brill (egore) (RESIGNED) 2005-02-20 06:12:29 UTC
Created attachment 51658 [details]
games-action/roadfighter-1.0

Added changes requested (except games_make_wrapper, which I'm to stupid to use)
and made it possible to play the game without being root
Comment 7 Christoph Brill (egore) (RESIGNED) 2005-02-20 06:12:59 UTC
Created attachment 51659 [details, diff]
roadfighter-homedir.patch

The needed patch
Comment 8 Christoph Brill (egore) (RESIGNED) 2008-11-08 11:21:57 UTC
Website is down, seems no longer available so it is:
unsupported and unmaintained
Comment 9 Alexandru Toma 2008-11-11 09:36:02 UTC
It is available at http://www.braingames.getput.com/roadf/default.asp in case anyone is still interested.
Comment 10 Alexandru Toma 2008-11-11 09:36:46 UTC
note the www.