summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-15 17:20:08 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-15 17:20:08 +0000
commit1b1d89b2fd6194a7744ed5e06d7ccefef6def5b1 (patch)
tree6f3154f1287d3222f315c6a4844070972f5c689b /games-arcade/smclone
parentnew version (Manifest recommit) (diff)
downloadgentoo-2-1b1d89b2fd6194a7744ed5e06d7ccefef6def5b1.tar.gz
gentoo-2-1b1d89b2fd6194a7744ed5e06d7ccefef6def5b1.tar.bz2
gentoo-2-1b1d89b2fd6194a7744ed5e06d7ccefef6def5b1.zip
make sure we force automake-1.8
Diffstat (limited to 'games-arcade/smclone')
-rw-r--r--games-arcade/smclone/files/0.94.1-use-HOME.patch19
-rw-r--r--games-arcade/smclone/smclone-0.94.1.ebuild4
2 files changed, 16 insertions, 7 deletions
diff --git a/games-arcade/smclone/files/0.94.1-use-HOME.patch b/games-arcade/smclone/files/0.94.1-use-HOME.patch
index 0c4f21fa327b..9d6f7787209a 100644
--- a/games-arcade/smclone/files/0.94.1-use-HOME.patch
+++ b/games-arcade/smclone/files/0.94.1-use-HOME.patch
@@ -22,14 +22,17 @@
ifstream ifs( Full_Save_Name, ios::in );
-@@ -67,8 +67,8 @@
+@@ -67,8 +67,11 @@
++#include <sys/stat.h>
int Savegame_Save( unsigned int Save_file, Savegame Save_info )
{
- char Full_Save_Name[45];
- sprintf( Full_Save_Name, "%s/%d.sav", SAVE_DIR, Save_file );
-+ char Full_Save_Name[255];
-+ snprintf( Full_Save_Name, 254, "%s/%s/%d.sav", getenv("HOME"), SAVE_DIR, Save_file );
++ char Full_Save_Name[255];
++ snprintf( Full_Save_Name, 254, "%s/%s", getenv("HOME"), SAVE_DIR );
++ mkdir(Full_Save_Name, 0770);
++ snprintf( Full_Save_Name, 254, "%s/%s/%d.sav", getenv("HOME"), SAVE_DIR, Save_file );
ifstream ifs( Full_Save_Name, ios::in );
@@ -63,8 +66,9 @@
ifstream ifs( Full_Save_Name.c_str(), ios::in );
--- main.cpp.orig 2004-12-13 23:29:48.623416072 -0500
+++ main.cpp 2004-12-13 23:31:16.989982312 -0500
-@@ -554,14 +554,14 @@
+@@ -554,14 +554,17 @@
++#include <sys/stat.h>
void MakeScreenshot( void )
{
- char filename[20];
@@ -76,19 +80,24 @@
i++;
- sprintf( filename, "Screenshots/%03d.bmp" , i );
++ snprintf( filename, 254, "%s/.smclone/Screenshots" , getenv("HOME"));
++ mkdir(filename, 0770);
+ snprintf( filename, 254, "%s/.smclone/Screenshots/%03d.bmp" , getenv("HOME"), i );
FILE *fp = fopen( filename, "r" );
if( !fp )
--- preferences.cpp.orig 2004-12-13 23:31:36.006091424 -0500
+++ preferences.cpp 2004-12-13 23:33:28.611972728 -0500
-@@ -27,6 +27,12 @@
+@@ -27,6 +27,15 @@
{
//
}
++#include <sys/stat.h>
+char *get_PREF_NAME( void )
+{
+ static char ret[255];
++ snprintf(ret, 254, "%s/.smclone", getenv("HOME"));
++ mkdir(ret, 0770);
+ snprintf(ret, 254, "%s/.smclone/%s", getenv("HOME"), PREF_NAME);
+ return ret;
+}
diff --git a/games-arcade/smclone/smclone-0.94.1.ebuild b/games-arcade/smclone/smclone-0.94.1.ebuild
index 252d95a5aa7e..af027ec47da9 100644
--- a/games-arcade/smclone/smclone-0.94.1.ebuild
+++ b/games-arcade/smclone/smclone-0.94.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/smclone-0.94.1.ebuild,v 1.1 2004/12/14 04:57:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/smclone-0.94.1.ebuild,v 1.2 2004/12/15 17:20:08 vapier Exp $
inherit games eutils
@@ -36,7 +36,7 @@ src_unpack() {
configure.ac
sed -i 's:-Wmissing-prototypes:-Wno-deprecated:' Makefile.am
chmod a+x autogen.sh
- ./autogen.sh || die "autogen failed"
+ env WANT_AUTOMAKE=1.8 ./autogen.sh || die "autogen failed"
cd ..
sed -i '/define LEVEL_DIR/d' include/savegame.h
sed -i '/define VERSION/d' include/globals.h