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

Bug 158901

Summary: games-emulation/mednafen-0.7.0 version bump req (w/ebuild)
Product: Gentoo Linux Reporter: trefoil <gentoo>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mednafen-0.7.0.ebuild
mednafen-0.7.0.ebuild

Description trefoil 2006-12-23 04:15:18 UTC
Apologies for disregarding the 7-day rule, but otherwise I would probably forget to file this. Note that -jack fails during the configure phase, and I've no idea why. It could be removed; I'm unable to test jack functionality anyhow. I haven't tried all use flag combinations, but will report back after the holidays with further testing.

0.7.0 now allows you to configure without emulation cores (e.g. --disable-nes; --disable-gb). I'm not sure if you want to expose this through use flags or not, but my ebuild doesn't.
Comment 1 trefoil 2006-12-23 04:19:24 UTC
Created attachment 104629 [details]
mednafen-0.7.0.ebuild

--- /usr/portage/games-emulation/mednafen/mednafen-0.6.5.ebuild	2006-09-29 11:35:49.000000000 -0400
+++ mednafen-0.7.0.ebuild	2006-12-23 07:18:06.000000000 -0500
@@ -4,21 +4,23 @@
 
 inherit games
 
-DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, and Lynx emulator"
+DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC, and Lynx emulator"
 HOMEPAGE="http://mednafen.com/"
-SRC_URI="http://mednafen.com/releases/${P}.tar.bz2"
+SRC_URI="mirror://sourceforge/mednafen/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="nls"
+IUSE="alsa cjk debugger nls"
 
 RDEPEND="virtual/opengl
 	media-libs/libsndfile
 	dev-libs/libcdio
 	>=media-libs/libsdl-1.2.0
 	media-libs/sdl-net
-	nls? ( virtual/libintl )"
+	nls? ( virtual/libintl )
+	alsa? ( media-libs/alsa-lib )
+#	jack? ( media-sound/jack-audio-connection-kit )"
 DEPEND="${RDEPEND}
 	nls? ( sys-devel/gettext )"
 
@@ -35,6 +37,10 @@
 
 src_compile() {
 	egamesconf \
+		$(use_enable alsa) \
+#		$(use_enable jack) \
+		$(use_enable cjk cjk-fonts) \
+		$(use_enable debugger) \
 		$(use_enable nls) \
 		--disable-dependency-tracking || die
 	emake || die "emake failed"
@@ -43,6 +49,7 @@
 src_install() {
 	emake DESTDIR="${D}" install || die "emake install failed"
 	dodoc AUTHORS ChangeLog TODO
+	dodoc Documentation/cheats.txt
 	dohtml Documentation/*
 	prepgamesdirs
 }
Comment 2 trefoil 2006-12-23 04:26:58 UTC
Created attachment 104632 [details]
mednafen-0.7.0.ebuild

Kindly disregard that last diff and ebuild =)

--- /usr/portage/games-emulation/mednafen/mednafen-0.6.5.ebuild	2006-09-29 11:35:49.000000000 -0400
+++ mednafen-0.7.0.ebuild	2006-12-23 07:23:57.000000000 -0500
@@ -4,21 +4,22 @@
 
 inherit games
 
-DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, and Lynx emulator"
+DESCRIPTION="An advanced NES, GB/GBC/GBA, TurboGrafx 16/CD, NGPC, and Lynx emulator"
 HOMEPAGE="http://mednafen.com/"
-SRC_URI="http://mednafen.com/releases/${P}.tar.bz2"
+SRC_URI="mirror://sourceforge/mednafen/${P}.tar.bz2"
 
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="nls"
+IUSE="alsa cjk debugger nls"
 
 RDEPEND="virtual/opengl
 	media-libs/libsndfile
 	dev-libs/libcdio
 	>=media-libs/libsdl-1.2.0
 	media-libs/sdl-net
-	nls? ( virtual/libintl )"
+	nls? ( virtual/libintl )
+	alsa? ( media-libs/alsa-lib )"
 DEPEND="${RDEPEND}
 	nls? ( sys-devel/gettext )"
 
@@ -33,8 +34,12 @@
 		|| die "sed failed"
 }
 
+#test/fix jack
 src_compile() {
 	egamesconf \
+		$(use_enable alsa) \
+		$(use_enable cjk cjk-fonts) \
+		$(use_enable debugger) \
 		$(use_enable nls) \
 		--disable-dependency-tracking || die
 	emake || die "emake failed"
@@ -43,6 +48,7 @@
 src_install() {
 	emake DESTDIR="${D}" install || die "emake install failed"
 	dodoc AUTHORS ChangeLog TODO
+	dodoc Documentation/cheats.txt
 	dohtml Documentation/*
 	prepgamesdirs
 }
Comment 3 Tristan Heaven (RETIRED) gentoo-dev 2006-12-25 03:45:31 UTC
Thanks.
Comment 4 trefoil 2006-12-25 08:30:51 UTC
Thanks, Tristan, but why did you remove $(use_enable debugger)? The debugger is something most users will never use; it reduces the size of the binary by a bit, and probably marginally increases emulation speed as well. Happy holidays :)
Comment 5 Tristan Heaven (RETIRED) gentoo-dev 2006-12-25 08:47:06 UTC
1 bit? Hmm, okay... I'll probably make it "debug" instead though.
Comment 6 trefoil 2006-12-25 13:39:23 UTC
Hehe, funny :) Saves ~380KB w/gcc-3.4.6.