Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 11147

Summary: Raine MC680x0 Emualtor's ebuild
Product: Gentoo Linux Reporter: Javier Marcet <javier-ml-gentoo>
Component: [OLD] GamesAssignee: SpanKY <vapier>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.rainemu.com/
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: raine-0.36.2.ebuild
raine-allegro_4.1.5_fix.patch
Raine.desktop

Description Javier Marcet 2002-11-23 22:39:51 UTC
Following the updated advance MAME and MENU ebuilds, here it is the Raine 
ebuild. 
This is an even nicer arcade roms emulator, which although targets a smaller set 
of games, those emulated bring faster emulation and/or other extras compared to 
MAME. 
Together with it, I'll just post an updated allegro ebuild, version 4.1.5, which 
supposedly is a development version. Yet, as explained on allegro's home page, it 
doesn't mean it is not stable. 
 
This ebuild (raine's) includes a couple patches to allow compilation with this newer 
allegro. You might think why the development allegro if it is not a requirement for 
Raine. The answer is that ALSA support in allegro is for 0.5 versions, which are 
way outdated in our Gentoo systems, and 4.1.x include arts support, which for 
those using KDE is a more than decent substitute for ALSA. 
 
Try it both in console and X. For some modes (the faster ones) root privileges are 
needed, read the doc for more info. 
I've some problems with full screen modes and with sound which I haven't solved 
yet. They belong to Raine and bugs/fixes should be probably sent to Raine's 
author.
Comment 1 Javier Marcet 2002-11-23 22:40:51 UTC
Created attachment 5905 [details]
raine-0.36.2.ebuild

To go under app-emulation
Comment 2 SpanKY gentoo-dev 2002-11-24 13:31:07 UTC
you forgot to include the patches 
Comment 3 Javier Marcet 2002-11-24 13:39:25 UTC
Created attachment 5916 [details]
raine-allegro_4.1.5_fix.patch

You're right, here you have it.
Place in $FILESDIR/
Comment 4 Javier Marcet 2002-11-24 13:41:44 UTC
Created attachment 5917 [details]
Raine.desktop

Put this on $FILESDIR/ too, it is a menu entry for KDE.
If anyone can provide one for Gnome, it would fit well.
Comment 5 Javier Marcet 2002-11-24 14:04:03 UTC
By the way, if you look closely at the ebuild you'll see a line which says:  RESTRICT=nostrip  I added that to avoid the stripping of 'raine' which emerge does automatically. I didn't see that documented anywhere, but found it in ebuild.py Is there any other way to do it?  Oh, the reason to do that is that after installing I add 'raine.dat' to 'raine', with 'exedat' from allegro, as explained in some installation tips on the web - they were for DOS, but apply here as well-. The install, by default, puts raine in /usr/bin and raine.dat in /usr/share/raine - actually, those are the places I put in the makefile. The problem is that to make raine work you have to be in /usr/share/raine, or it will claim it can't find raine.dat Thus merging both is a cleaner solution. When emerge strips the binary, it breaks this merge. 
Comment 6 SpanKY gentoo-dev 2002-11-24 14:11:11 UTC
actually if you look in the man page for ebuild (section 5), all the options for the 
RESTRICT variable are explained 
Comment 7 Javier Marcet 2002-11-24 14:51:46 UTC
Yes, you are right. 
I had only read man(1) and the html guides which AFAIR - I could be wronng 
again, of course - don't mention it. 
Interesting the fetch and nomirror options too. 
It seems not everybody is aware of those features or I bet there would be 
more ebuilds with RESTRICT used. I just 'grepped' the entire portage tree and 
did not find a single RESTRICT reference. 
 
Comment 8 SpanKY gentoo-dev 2002-11-24 22:08:44 UTC
root@vapier root # grep RESTRICT /usr/portage/*-* -R | wc -l 
     80 
Comment 9 Javier Marcet 2002-11-25 09:02:23 UTC
There are days one should be stay in bed...  I'm ashamed.  I just realized what my problem was, I omitted an 'xargs'  root# find /portage/ -name '*.ebuild' | grep -n 'RESTRICT'  when I should have put:  root# find /portage/ -name '*.ebuild' | xargs grep -n 'RESTRICT'  If I don't use find, grep goes through all my built packages on. I'll probably move /portage/packages somewhere else...  So SpanKY, is Raine working for you? I don't know if I should write to the author about the problems I have. I'd like to hear other people's sucess/failure before doing so.