Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add fixed fceux package until #406471 is fixed in the main tree.

  • Loading branch information...
commit a60507da4366939f9b7a6714d58c6cda23bf8fa0 1 parent 8145fad
Markus Rathgeb authored
View
59 games-emulation/fceux/ChangeLog
@@ -0,0 +1,59 @@
+# ChangeLog for games-emulation/fceux
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceux/ChangeLog,v 1.14 2011/08/01 19:15:07 maekke Exp $
+
+ 01 Aug 2011; Markus Meier <maekke@gentoo.org> fceux-2.1.5.ebuild:
+ amd64/x86 stable, bug #375715
+
+ 21 Jun 2011; Tupone Alfredo <tupone@gentoo.org>
+ files/fceux-2.1.4a-underlink.patch, files/fceux-2.1.5-underlink.patch:
+ Fix again underlink. Bug #367675 by Diego Elio Pettenò
+
+*fceux-2.1.5 (07 Jun 2011)
+
+ 07 Jun 2011; Tupone Alfredo <tupone@gentoo.org> +fceux-2.1.5.ebuild,
+ +files/fceux-2.1.5-underlink.patch:
+ Version bump to 2.1.5
+
+ 07 Jun 2011; Tupone Alfredo <tupone@gentoo.org> fceux-2.1.4a.ebuild,
+ +files/fceux-2.1.4a-underlink.patch:
+ Fix underlink. Bug #367675 by Diego Elio Pettenò
+
+ 29 Nov 2010; Tupone Alfredo <tupone@gentoo.org> fceux-2.1.4a.ebuild,
+ +files/fceux-2.1.4a-ovflfix.patch:
+ Overflow fix. Bug #329055 by SpanKY <vapier@gentoo.org>
+
+ 20 Nov 2010; Michael Sterrett <mr_bones_@gentoo.org> fceux-2.1.4a.ebuild:
+ use scons-utils
+
+ 22 Sep 2010; Markos Chandras <hwoarang@gentoo.org> fceux-2.1.4a.ebuild:
+ Stable on amd64 wrt bug #335836
+
+ 14 Sep 2010; Christian Faulhammer <fauli@gentoo.org> fceux-2.1.4a.ebuild:
+ stable x86, bug 335836
+
+ 13 Sep 2010; Michael Sterrett <mr_bones_@gentoo.org> fceux-2.1.4a.ebuild:
+ fix building with USE=-lua
+
+*fceux-2.1.4a (26 Jul 2010)
+
+ 26 Jul 2010; Michael Sterrett <mr_bones_@gentoo.org> +fceux-2.1.4a.ebuild:
+ version bump
+
+*fceux-2.1.4 (25 Jun 2010)
+
+ 25 Jun 2010; Michael Sterrett <mr_bones_@gentoo.org> +fceux-2.1.4.ebuild:
+ version bump
+
+ 02 Nov 2009; Markus Meier <maekke@gentoo.org> fceux-2.1.1.ebuild:
+ amd64/x86 stable, bug #291226
+
+ 29 Sep 2009; Michael Sterrett <mr_bones_@gentoo.org> fceux-2.1.1.ebuild:
+ upstream recommends opengl and lua
+
+*fceux-2.1.1 (29 Sep 2009)
+
+ 29 Sep 2009; Michael Sterrett <mr_bones_@gentoo.org> +fceux-2.1.1.ebuild,
+ +metadata.xml:
+ initial commit - ebuild submitted by Denilson via bug #235860
+
View
10 games-emulation/fceux/Manifest
@@ -0,0 +1,10 @@
+AUX fceux-2.1.4a-ovflfix.patch 618 RMD160 38db2f73ae9641f64559f4db6b5d0899f853a8d9 SHA1 9ad948318fd9b57cd409ba385ed3d7486dfcf838 SHA256 8284f8041d5b9a91cf54be2970df06b8568446a2b235cb16761326e9a3ff152c
+AUX fceux-2.1.4a-underlink.patch 427 RMD160 4d7b5faa5470cea3c239f49463210aa7eb7d0c3d SHA1 0c4f75bb0aea9ca93bac7a8aa8cb4b807ada0a8a SHA256 08a27728b7f836b612b944b2f305e479abd9553e9193515f430ea9c2b2dbb8d6
+AUX fceux-2.1.5-datatype-gz.patch 421 RMD160 688b2449c1b1a0e1a06dba3c4311a29a7ed68648 SHA1 4318f5d6c9539b2645fc3a0f8ca205f58d1dd601 SHA256 f068a6fbf66559e725894174fc6266e5840df3e2673f16c84047be9094c2e937
+AUX fceux-2.1.5-underlink.patch 475 RMD160 d8aa691406ef5a8dba6e65fa7b993a7c58433e4b SHA1 0a53bbc1def6ecf63e52e34f3420f866312c2ac2 SHA256 e8910db9095b8a988a4dea8babd746d9d3c9243cecbb7f9b029ef98058c3df7d
+DIST fceux-2.1.4a.src.tar.bz2 5083564 RMD160 c36723db343050f90a923869918596b7092cf1f5 SHA1 5297c873d8de397538869ea8b23816d457d13add SHA256 267aef2cf05c510f66eca8330060c495a3c18ad22c73bda42df73d8d8330df3a
+DIST fceux-2.1.5.src.tar.bz2 7322199 RMD160 9852e6f0958d0ec8d926257e78b34579ef10af85 SHA1 599ef6a261ab1bd24e58468886d7cc303e150feb SHA256 ee6b1ee6a0347e325032f6655a5caa289e2b0458f7fccddccd5137f1cd63bf9f
+EBUILD fceux-2.1.4a.ebuild 1423 RMD160 435d33f925fe37eb8b23a3f526f14eac9509588c SHA1 f110559dcf169a3fa507b65ad2230f4d56fab8a8 SHA256 4ad109aeab4f905cda1bca27d1f02cda432a9d5e915e5feef0c5422bc36d9afb
+EBUILD fceux-2.1.5.ebuild 1430 RMD160 b4526d815af9d409afe57e23fa5710eb691b8f45 SHA1 2d70c01a0d887128870e0c34eb56909c24655aa0 SHA256 923f7effe52295256c328c27fc1876e976fbbc1e28603413475dc6519e86265a
+MISC ChangeLog 2045 RMD160 5130591c5ca9c201784f63cb01c686560bf77f98 SHA1 c941e04491c2b419049354da5d189a95e96d4d0a SHA256 7747f315c2233492e73e13843d5fa917467b91ab669ff550c145ba2a90cb5e02
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
View
57 games-emulation/fceux/fceux-2.1.4a.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceux/fceux-2.1.4a.ebuild,v 1.7 2011/06/07 17:07:22 tupone Exp $
+
+EAPI=2
+inherit eutils scons-utils games
+
+DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra"
+HOMEPAGE="http://fceux.com/"
+SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+lua +opengl"
+
+RDEPEND="lua? ( dev-lang/lua )
+ media-libs/libsdl[opengl?,video]
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ sys-libs/zlib
+ gnome-extra/zenity"
+# Note: zenity is "almost" optional. It is possible to compile and run fceux
+# without zenity, but file dialogs will not work.
+
+S=${WORKDIR}/fceu${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-ovflfix.patch \
+ "${FILESDIR}"/${P}-underlink.patch
+ # mentioned in bug #335836
+ if ! use lua ; then
+ sed -i -e '/_S9XLUA_H/d' SConstruct || die
+ fi
+}
+
+src_compile() {
+ escons \
+ CREATE_AVI=1 \
+ $(use_scons opengl OPENGL) \
+ $(use_scons lua LUA) \
+ || die "scons failed"
+}
+
+src_install() {
+ dogamesbin bin/fceux || die
+
+ doman documentation/fceux.6 || die
+ dodoc Authors.txt changelog.txt TODO-PROJECT
+
+ # Extra documentation
+ insinto "/usr/share/doc/${PF}/"
+ doins -r bin/fceux.chm documentation
+ rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6"
+
+ prepgamesdirs
+}
View
57 games-emulation/fceux/fceux-2.1.5.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/fceux/fceux-2.1.5.ebuild,v 1.2 2011/08/01 19:15:07 maekke Exp $
+
+EAPI=2
+inherit eutils scons-utils games
+
+DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra"
+HOMEPAGE="http://fceux.com/"
+SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+lua +opengl"
+
+RDEPEND="lua? ( dev-lang/lua )
+ media-libs/libsdl[opengl?,video]
+ opengl? ( virtual/opengl )
+ x11-libs/gtk+:2
+ sys-libs/zlib
+ gnome-extra/zenity"
+# Note: zenity is "almost" optional. It is possible to compile and run fceux
+# without zenity, but file dialogs will not work.
+
+S=${WORKDIR}/fceu${PV}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-datatype-gz.patch
+ epatch "${FILESDIR}"/${P}-underlink.patch
+ # mentioned in bug #335836
+ if ! use lua ; then
+ sed -i -e '/_S9XLUA_H/d' SConstruct || die
+ fi
+}
+
+src_compile() {
+ escons \
+ CREATE_AVI=1 \
+ $(use_scons opengl OPENGL) \
+ $(use_scons lua LUA) \
+ || die "scons failed"
+}
+
+src_install() {
+ dogamesbin bin/fceux || die
+
+ doman documentation/fceux.6 || die
+ dodoc Authors.txt changelog.txt TODO-PROJECT
+
+ # Extra documentation
+ insinto "/usr/share/doc/${PF}/"
+ doins -r bin/fceux.chm documentation
+ rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6"
+
+ prepgamesdirs
+}
View
22 games-emulation/fceux/files/fceux-2.1.4a-ovflfix.patch
@@ -0,0 +1,22 @@
+--- src/input/bworld.cpp.old 2010-11-29 16:36:13.000000000 +0100
++++ src/input/bworld.cpp 2010-11-29 16:37:26.000000000 +0100
+@@ -22,7 +22,7 @@
+ #include "share.h"
+
+ static int seq,ptr,bit,cnt,have;
+-static uint8 bdata[20];
++static uint8 bdata[32];
+
+
+ static uint8 Read(int w, uint8 ret)
+--- src/drivers/common/cheat.cpp.old 2010-11-29 16:23:44.000000000 +0100
++++ src/drivers/common/cheat.cpp 2010-11-29 16:24:24.000000000 +0100
+@@ -404,7 +404,7 @@
+ clo:
+
+ printf("\nSelection [%d]> ",def+1);
+- fgets(tmp,256,stdin);
++ fgets(tmp,16,stdin);
+ if(tmp[0]=='\n')
+ return def;
+ c=tolower(tmp[0]);
View
12 games-emulation/fceux/files/fceux-2.1.4a-underlink.patch
@@ -0,0 +1,12 @@
+--- SConstruct.old 2011-06-07 18:37:31.324415039 +0200
++++ SConstruct 2011-06-07 18:42:04.804434870 +0200
+@@ -65,6 +65,9 @@
+ env.Append(CCFLAGS =["-D_GTK_LITE"])
+ if env['GTK_LITE']:
+ env.Append(CCFLAGS =["-D_GTK_LITE"])
++ env.Append(LIBS =["-lz"])
++ env.Append(LIBS =["-ldl"])
++ env.Append(LIBS =["-lX11"])
+
+ ### Lua platform defines
+ ### Applies to all files even though only lua needs it, but should be ok
View
12 games-emulation/fceux/files/fceux-2.1.5-datatype-gz.patch
@@ -0,0 +1,12 @@
+diff -Naur a/fceu2.1.5/src/file.cpp b/fceu2.1.5/src/file.cpp
+--- a/fceu2.1.5/src/file.cpp 2010-09-19 00:05:09.000000000 +0000
++++ b/fceu2.1.5/src/file.cpp 2012-03-01 19:21:25.856204727 +0000
+@@ -310,7 +310,7 @@
+ if(magic==0x088b1f) {
+ // maybe gzip...
+
+- void* gzfile = gzopen(fileToOpen.c_str(),"rb");
++ gzFile gzfile = gzopen(fileToOpen.c_str(),"rb");
+ if(gzfile) {
+ delete fp;
+
View
13 games-emulation/fceux/files/fceux-2.1.5-underlink.patch
@@ -0,0 +1,13 @@
+--- SConstruct.org 2011-06-07 21:33:28.876609681 +0200
++++ SConstruct 2011-06-07 21:34:11.420368249 +0200
+@@ -70,6 +70,10 @@
+ env.ParseConfig('pkg-config --cflags --libs gtk+-3.0')
+ env.Append(CPPDEFINES=["_GTK3"])
+ env.Append(CCFLAGS = ["-D_GTK"])
++ env.Append(LIBS =["-lz"])
++ env.Append(LIBS =["-ldl"])
++ env.Append(LIBS =["-lX11"])
++
+ ### Lua platform defines
+ ### Applies to all files even though only lua needs it, but should be ok
+ if env['LUA']:
View
5 games-emulation/fceux/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
Please sign in to comment.
Something went wrong with that request. Please try again.