Commits

Kristian Fiskerstrand  committed 41c3692

Add sks-1.1.15

  • Participants
  • Parent commits 12e4ec8

Comments (0)

Files changed (5)

File games-emulation/gens/files/gens-2.15.5-as-needed.patch

+--- 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

File games-emulation/gens/files/gens-2.15.5-ovflfix.patch

+--- 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;

File games-emulation/gens/files/gens-2.15.5-romsdir.patch

+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)
+     {

File games-emulation/gens/gens-2.15.5.ebuild

+# 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
+}

File net-misc/sks/sks-1.1.5.ebuild

 	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."