Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 214479 - ebuild request for Gambatte GB/GBC emulator
Summary: ebuild request for Gambatte GB/GBC emulator
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High enhancement with 1 vote (vote)
Assignee: Gentoo Games
URL: http://sourceforge.net/projects/gamba...
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2008-03-24 07:07 UTC by seraph@xs4all.nl
Modified: 2013-03-10 20:12 UTC (History)
2 users (show)

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


Attachments
gambatte-0.3.1.ebuild (gambatte-0.3.1.ebuild,944 bytes, text/plain)
2008-04-06 21:44 UTC, trefoil
Details
Ebuild for gambatte-0.4.1 (gambatte-0.4.1.ebuild,970 bytes, text/plain)
2009-06-27 08:56 UTC, seraph@xs4all.nl
Details
games-emulation/gambatte-0.5.0_alpha1.ebuild (gambatte-0.5.0_alpha1.ebuild,1.74 KB, text/plain)
2011-10-10 03:35 UTC, Jared B.
Details
games-emulation/gambatte-9999.ebuild (gambatte-9999.ebuild,1.83 KB, text/plain)
2011-10-17 02:34 UTC, Jared B.
Details
games-emulation/gambatte-0.5.0_alpha2.ebuild (gambatte-0.5.0_alpha2.ebuild,1.92 KB, text/plain)
2012-09-19 06:16 UTC, Jared B.
Details
games-emulation/gambatte-0.5.0_alpha2.ebuild (gambatte-0.5.0_alpha2.ebuild,1.92 KB, text/plain)
2013-03-10 17:27 UTC, Jared B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description seraph@xs4all.nl 2008-03-24 07:07:14 UTC
Gambatte is a Gameboy / Gameboy Color emulator focussed on accuracy. It's so far the only emulator where I can get games like Oracle of Seasons/Ages running without any issues.

Reproducible: Always
Comment 1 trefoil 2008-04-06 21:44:01 UTC
Created attachment 148925 [details]
gambatte-0.3.1.ebuild
Comment 2 trefoil 2008-04-06 21:49:48 UTC
I'm not sure how good this is stylistically, but it works! One thing it doesn't do is respect user's C/CXXFLAGS for building the emulation library (but it does seem to for building the GUI), and I know piss-all about Scons. The dependencies are according to the documentation, but they're likely off. It also probably depends on how QT4 is built.
Comment 3 seraph@xs4all.nl 2009-06-27 08:56:19 UTC
Created attachment 195859 [details]
Ebuild for gambatte-0.4.1
Comment 4 seraph@xs4all.nl 2009-06-27 09:00:24 UTC
I cobbled together an ebuild for version 0.4.1. This also makes gambatte compile with x11-libs/qt4 masked. Not sure how good it is since I have little experience with ebuilds, but it works for me, with or without the qt4 flag.
Comment 5 Jared B. 2011-10-10 03:35:20 UTC
Created attachment 289419 [details]
games-emulation/gambatte-0.5.0_alpha1.ebuild

Attaching an updated ebuild for 0.5.0-wip1.  The ebuild itself contains a few changes, aside from the version bump.  In no particular order:

1. Added amd64 keyword
2. Added alsa and sdl USE flags
3. Updated dependencies
4. Allow installing only SDL, only QT, or both SDL and QT binaries and documentation
Comment 6 Jared B. 2011-10-17 02:34:07 UTC
Created attachment 290019 [details]
games-emulation/gambatte-9999.ebuild

In case anyone's interested, here's a live ebuild for Gambette.  I'd recommend sticking with the WIP build instead of using the live ebuild, but a few features have been added in SVN since the last release that I really want (such as rapid fire), so I figured I'd share the live ebuild for anyone else interested.
Comment 7 Jared B. 2012-09-19 06:16:13 UTC
Created attachment 324276 [details]
games-emulation/gambatte-0.5.0_alpha2.ebuild

updated ebuild for 0.5.0-wip2.  Latest version includes support for GCC 4.6 as well as additional features, and my new ebuild fixes support for linking against latest versions of zlib.  Anyone installing a fresh copy should definitely be using this version, so I'm deprecating my previous versions.
Comment 8 Jared B. 2013-03-10 17:27:36 UTC
Created attachment 341578 [details]
games-emulation/gambatte-0.5.0_alpha2.ebuild

minor update for the QT category move
Comment 9 Julian Ospald 2013-03-10 18:12:23 UTC
- use EAPI=5
- inherit games.eclass last, call qt4-r2 phase functions explicitly if needed
- don't add stable keywords for any ebuild that is not in the tree
- use: REQUIRED_USE="^^ ( sdl qt4 )" instead of the pkg_setup stuff
- you don't call games_pkg_setup which can lead to games user/group not being created and the game not accessible. That is fixed if you just remove the whole pkg_setup phase
- use scons-utils.eclass, it might even make your hack on line 55 obsolete
- it is rare that media-libs/libsdl does not need any useflags, double check
- qt4 build pulls in media-libs/alsa-lib unconditionally?
- alsa useflag is invalid, cause it does not change build process, for optional dependencies add an elog in pkg_postinst
- "cd" should also "|| die"
Comment 10 Julian Ospald 2013-03-10 20:12:26 UTC
+*gambatte-0.5.0_p20130310 (10 Mar 2013)
+
+  10 Mar 2013; Julian Ospald <hasufell@gentoo.org>
+  +gambatte-0.5.0_p20130310.ebuild, +metadata.xml:
+  initial import wrt #214479 based on Jared Bs ebuild