Add sks-1.1.15
authorkristianf <devnull@localhost>
Mon, 5 May 2014 17:27:11 +0000 (19:27 +0200)
committerkristianf <devnull@localhost>
Mon, 5 May 2014 17:27:11 +0000 (19:27 +0200)
games-emulation/gens/files/gens-2.15.5-as-needed.patch [new file with mode: 0644]
games-emulation/gens/files/gens-2.15.5-ovflfix.patch [new file with mode: 0644]
games-emulation/gens/files/gens-2.15.5-romsdir.patch [new file with mode: 0644]
games-emulation/gens/gens-2.15.5.ebuild [new file with mode: 0644]
net-misc/sks/sks-1.1.5.ebuild

diff --git a/games-emulation/gens/files/gens-2.15.5-as-needed.patch b/games-emulation/gens/files/gens-2.15.5-as-needed.patch
new file mode 100644 (file)
index 0000000..02aed32
--- /dev/null
@@ -0,0 +1,11 @@
+--- configure.old       2009-02-04 14:41:40.000000000 +0100
++++ configure   2009-02-04 14:48:52.000000000 +0100
+@@ -4929,7 +4929,7 @@
+        { echo "$as_me:$LINENO: result: $with_opengl" >&5
+ echo "${ECHO_T}$with_opengl" >&6; }
+        if test x$with_opengl = xyes; then
+-               LDFLAGS="$LDFLAGS -lGL"
++               LIBS="$LIBS -lGL"
+        fi
+ fi
diff --git a/games-emulation/gens/files/gens-2.15.5-ovflfix.patch b/games-emulation/gens/files/gens-2.15.5-ovflfix.patch
new file mode 100644 (file)
index 0000000..f5b98a5
--- /dev/null
@@ -0,0 +1,13 @@
+--- src/gens/gens_core/cpu/68k/cpu_68k.c.old   2010-10-28 09:34:52.000000000 +0200
++++ src/gens/gens_core/cpu/68k/cpu_68k.c       2010-10-28 09:35:53.000000000 +0200
+@@ -239,8 +239,8 @@
+   memset (Ram_Word_2M, 0, 256 * 1024);
+   memset (Ram_Word_1M, 0, 256 * 1024);
+-  memset (COMM.Command, 0, 8 * 5);
+-  memset (COMM.Status, 0, 8 * 5);
++  memset (COMM.Command, 0, sizeof (COMM.Command));
++  memset (COMM.Status, 0, sizeof (COMM.Status));
+   LED_Status = S68K_State = S68K_Mem_WP = S68K_Mem_PM = Ram_Word_State = 0;
+   COMM.Flag = Init_Timer_INT3 = Timer_INT3 = Int_Mask_S68K = 0;
diff --git a/games-emulation/gens/files/gens-2.15.5-romsdir.patch b/games-emulation/gens/files/gens-2.15.5-romsdir.patch
new file mode 100644 (file)
index 0000000..606efe2
--- /dev/null
@@ -0,0 +1,13 @@
+diff -ruN gens-rc3.5-opengl/src/gens/util/rom.c gens-rc3.5-opengl-patched/src/gens/util/rom.c
+--- src/gens/util/file/rom.c   2005-01-10 22:24:01.000000000 +0100
++++ src/gens/util/file/rom.c   2006-10-29 14:58:14.000000000 +0100
+@@ -411,6 +411,9 @@
+     create_file_chooser_dialog ("Open Rom", GTK_FILE_CHOOSER_ACTION_OPEN);
+ //      fileselection_set_dir (fd.filesel, Rom_Dir);
+   addRomsFilter (widget);
++  
++  gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (widget), Rom_Dir);
++  
+   res = gtk_dialog_run (GTK_DIALOG (widget));
+   if (res == GTK_RESPONSE_OK)
+     {
diff --git a/games-emulation/gens/gens-2.15.5.ebuild b/games-emulation/gens/gens-2.15.5.ebuild
new file mode 100644 (file)
index 0000000..2974e79
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/gens/gens-2.15.5.ebuild,v 1.7 2011/09/21 21:17:48 mr_bones_ Exp $
+
+EAPI=2
+inherit eutils flag-o-matic games
+
+DESCRIPTION="A Sega Genesis/CD/32X emulator"
+HOMEPAGE="http://sourceforge.net/projects/gens/"
+SRC_URI="mirror://sourceforge/gens/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE=""
+
+RDEPEND="virtual/opengl
+       >=media-libs/libsdl-1.2[joystick,video]
+       x11-libs/gtk+:2"
+DEPEND="${RDEPEND}
+       >=dev-lang/nasm-0.98"
+
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-romsdir.patch \
+               "${FILESDIR}"/${P}-as-needed.patch \
+               "${FILESDIR}"/${P}-ovflfix.patch
+       sed -i -e '1i#define OF(x) x' src/gens/util/file/unzip.h || die
+       append-ldflags -Wl,-z,noexecstack
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+       dodoc AUTHORS BUGS README
+       prepgamesdirs
+}
index 859d610..89f7ea7 100644 (file)
@@ -104,7 +104,7 @@ pkg_postinst() {
        readme.gentoo_print_elog
 
        if [[ -n ${REPLACING_VERSIONS} ]]; then
-               einfo "Note when upgrading from earlier versions of SKS"
+               einfo "Note when upgrading from versions of SKS earlier than 1.1.4"
                einfo "The default values for pagesize settings have changed. To continue"
                einfo "using an existing DB without rebuilding, explicit settings have to be"
                einfo "added to the sksconf file."