diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2007-09-12 21:04:08 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2007-09-12 21:04:08 +0000 |
commit | 8b3e0abdf4437a36b5bd20437b85a75dbc2a8099 (patch) | |
tree | f89cc1d1539a7d15d81335df4551179a16285b76 /games-arcade | |
parent | Add doc and source use flags and patch Makefile.am to support JAVACFLAGS. (diff) | |
download | gentoo-2-8b3e0abdf4437a36b5bd20437b85a75dbc2a8099.tar.gz gentoo-2-8b3e0abdf4437a36b5bd20437b85a75dbc2a8099.tar.bz2 gentoo-2-8b3e0abdf4437a36b5bd20437b85a75dbc2a8099.zip |
rm old version
(Portage version: 2.1.3.9)
Diffstat (limited to 'games-arcade')
-rw-r--r-- | games-arcade/smclone/files/digest-smclone-0.97 | 9 | ||||
-rw-r--r-- | games-arcade/smclone/files/smclone-0.97-gentoo-paths.patch | 41 | ||||
-rw-r--r-- | games-arcade/smclone/files/smclone-0.97-use-HOME.patch | 96 | ||||
-rw-r--r-- | games-arcade/smclone/smclone-0.97.ebuild | 63 |
4 files changed, 0 insertions, 209 deletions
diff --git a/games-arcade/smclone/files/digest-smclone-0.97 b/games-arcade/smclone/files/digest-smclone-0.97 deleted file mode 100644 index 8269bb6f5c9b..000000000000 --- a/games-arcade/smclone/files/digest-smclone-0.97 +++ /dev/null @@ -1,9 +0,0 @@ -MD5 8c989056502de67c5cdaad797ba9722c SMC_0.97_game.zip 5313784 -RMD160 fc3a49ae21f170909c5f0778b0d3d63f7093d84a SMC_0.97_game.zip 5313784 -SHA256 856c7a696aa890e71517ac185ca4b55deca738a0ffa00a1a8a5d4e2b67812c9b SMC_0.97_game.zip 5313784 -MD5 04541c935a3aeb9f90dcdd3c1940d0ca SMC_0.97_source.zip 233670 -RMD160 41dd6d77132092eb5966382bd7e22747c80ebd5d SMC_0.97_source.zip 233670 -SHA256 07f503a4628f83accac917099c790b124704eaae0c0706d5b498b31c60bd56f9 SMC_0.97_source.zip 233670 -MD5 eb4f325dedb9da34049fd727bbf2a1e2 music_2.0_RC_1.zip 17954786 -RMD160 722a0d09f749327a76f24c91b44fd0c48f578381 music_2.0_RC_1.zip 17954786 -SHA256 a0ccac677fb9bd4475aeb75137517eee5c67a53c79a2a52216c993b244e764b1 music_2.0_RC_1.zip 17954786 diff --git a/games-arcade/smclone/files/smclone-0.97-gentoo-paths.patch b/games-arcade/smclone/files/smclone-0.97-gentoo-paths.patch deleted file mode 100644 index 245dd3966842..000000000000 --- a/games-arcade/smclone/files/smclone-0.97-gentoo-paths.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- configure.ac.orig 2005-08-19 00:03:15.000000000 +0200 -+++ configure.ac 2005-08-19 00:05:27.000000000 +0200 -@@ -2,7 +2,7 @@ - - AC_INIT(src/main.cpp) - --PACKAGE=smc -+PACKAGE=smclone - VERSION=0.96 - - AC_PREREQ(2.50) -@@ -83,12 +83,12 @@ - packagedocdir=doc/${PACKAGE} - - AC_DEFINE_UNQUOTED(SAVE_DIR, "savegames", [Directory for savegames]) --AC_DEFINE_UNQUOTED(LEVEL_DIR, "${packageprefix}/${packagedatadir}/levels/", [Directory for level files]) --AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "${packageprefix}/${packagedatadir}/world", [Directory for word data]) --AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "${packageprefix}/${packagedatadir}/pixmaps", [Directory for pixmap data]) --AC_DEFINE_UNQUOTED(SOUNDS_DIR, "${packageprefix}/${packagedatadir}/sounds", [Directory for sound data]) --AC_DEFINE_UNQUOTED(MUSIC_DIR, "${packageprefix}/${packagedatadir}/music", [Directory for music data]) --AC_DEFINE_UNQUOTED(FONT_DIR, "${packageprefix}/${packagedatadir}/font", [Directory for font data]) -+AC_DEFINE_UNQUOTED(LEVEL_DIR, "@GENTOO_DATADIR@/levels", [Directory for level files]) -+AC_DEFINE_UNQUOTED(OVERWORLD_DIR, "@GENTOO_DATADIR@/world", [Directory for word data]) -+AC_DEFINE_UNQUOTED(PIXMAPS_DIR, "@GENTOO_DATADIR@/pixmaps", [Directory for pixmap data]) -+AC_DEFINE_UNQUOTED(SOUNDS_DIR, "@GENTOO_DATADIR@/sounds", [Directory for sound data]) -+AC_DEFINE_UNQUOTED(MUSIC_DIR, "@GENTOO_DATADIR@/music", [Directory for music data]) -+AC_DEFINE_UNQUOTED(FONT_DIR, "@GENTOO_DATADIR@/font", [Directory for font data]) - - - AC_OUTPUT([Makefile src/Makefile data/Makefile docs/Makefile]) ---- src/preferences.cpp.orig 2005-08-19 07:38:52.000000000 +0200 -+++ src/preferences.cpp 2005-08-19 07:39:19.000000000 +0200 -@@ -208,7 +208,7 @@ - Lvleditor_automousehide = 0; - Backgroundimages_disabled = 0; - -- level_dir = "data/levels"; -+ level_dir = "@GENTOO_DATADIR@/levels"; - } - - void cPreferences :: Update( void ) diff --git a/games-arcade/smclone/files/smclone-0.97-use-HOME.patch b/games-arcade/smclone/files/smclone-0.97-use-HOME.patch deleted file mode 100644 index ee6a32371a6e..000000000000 --- a/games-arcade/smclone/files/smclone-0.97-use-HOME.patch +++ /dev/null @@ -1,96 +0,0 @@ ---- savegame.cpp.orig 2005-08-18 23:41:39.000000000 +0200 -+++ savegame.cpp 2005-08-18 23:44:10.000000000 +0200 -@@ -45,8 +45,9 @@ - loaded_save_info.OW_world = 0; - loaded_save_info.itembox_item = 0; - -- char Full_Save_Name[40]; -- sprintf( Full_Save_Name, "%s/%d.sav", SAVE_DIR, Save_file ); -+ char Full_Save_Name[255]; -+ snprintf( Full_Save_Name, sizeof(Full_Save_Name) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); -+ - - ifstream ifs( Full_Save_Name, ios::in ); - -@@ -79,8 +80,9 @@ - - int cSavegame :: 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, sizeof(Full_Save_Name) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); -+ - - ifstream ifs( Full_Save_Name, ios::in ); - -@@ -181,10 +183,13 @@ - char buffer[10]; - char desc_tmp[150]; - -- Full_Save_Name = SAVE_DIR "/.sav"; -+ Full_Save_Name = "/.smclone/.sav"; -+ - - sprintf( buffer, "%d", Save_file ); -- Full_Save_Name.insert( strlen( SAVE_DIR ) + 1, buffer ); -+ Full_Save_Name.insert( strlen( "/.smclone/" ) + 1, buffer ); -+ Full_Save_Name.insert( 0, getenv("HOME") ); -+ - - if( !valid_file( Full_Save_Name ) ) - { -@@ -235,9 +240,9 @@ - - bool cSavegame :: is_valid( unsigned int Save_file ) - { -- char savename[50]; -+ char savename[255]; - -- sprintf( savename, "%s/%d.sav", SAVE_DIR, Save_file ); -+ snprintf( savename, sizeof(savename) - 1, "%s/.smclone/%d.sav", getenv("HOME"), Save_file ); - - return valid_file( savename ); - } ---- preferences.cpp.orig 2005-08-19 07:47:31.000000000 +0200 -+++ preferences.cpp 2005-08-19 07:53:39.000000000 +0200 -@@ -31,18 +31,22 @@ - bool cPreferences :: Load( void ) - { - Default(); -+ -+ char Full_Pref_Name[255]; -+ -+ snprintf(Full_Pref_Name, sizeof(Full_Pref_Name) - 1, "%s/.smclone/%s", getenv("HOME"), PREF_NAME ); - -- if( !valid_file( PREF_NAME ) ) -+ if( !valid_file( Full_Pref_Name ) ) - { - printf( "No Preferences found\n" ); - return 0; - } - -- ifstream ifs( PREF_NAME, ios::in ); -+ ifstream ifs( Full_Pref_Name, ios::in ); - - if( !ifs ) - { -- printf( "Couldn't open preferences file : %s\n", PREF_NAME ); -+ printf( "Couldn't open preferences file : %s\n", Full_Pref_Name ); - return 0; - } - else -@@ -63,8 +67,12 @@ - void cPreferences :: Save( void ) - { - Update(); -+ -+ char Full_Pref_Name[255]; -+ -+ snprintf(Full_Pref_Name, sizeof(Full_Pref_Name) - 1, "%s/.smclone/%s", getenv("HOME"), PREF_NAME ); - -- ofstream ofs( PREF_NAME, ios::out | ios::trunc ); -+ ofstream ofs( Full_Pref_Name, ios::out | ios::trunc ); - - char row[300]; - diff --git a/games-arcade/smclone/smclone-0.97.ebuild b/games-arcade/smclone/smclone-0.97.ebuild deleted file mode 100644 index 23f060fee63f..000000000000 --- a/games-arcade/smclone/smclone-0.97.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/smclone/smclone-0.97.ebuild,v 1.4 2007/03/26 14:58:16 wolf31o2 Exp $ - -inherit eutils games - -MUSIC_V=2.0_RC_1 -DESCRIPTION="clone of Super Mario World" -HOMEPAGE="http://smclone.sourceforge.net/" -SRC_URI="mirror://sourceforge/smclone/SMC_${PV}_source.zip - mirror://sourceforge/smclone/SMC_${PV}_game.zip - mirror://sourceforge/smclone/music_${MUSIC_V}.zip" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" -IUSE="" - -RDEPEND="media-libs/libsdl - media-libs/sdl-image - media-libs/sdl-mixer - media-libs/sdl-ttf - media-libs/sdl-gfx" -DEPEND="${RDEPEND} - app-arch/unzip" - -S="${WORKDIR}/${PVR}" - -src_unpack() { - unpack SMC_${PV}_source.zip SMC_${PV}_game.zip - cd "${S}" - unpack music_${MUSIC_V}.zip - - find . '(' -name '*.dll' -o -name '*.exe' ')' -exec rm {} \; - edos2unix Makefile.am autogen.sh configure.ac src/preferences.cpp src/savegame.cpp - chmod a+x autogen.sh - epatch "${FILESDIR}"/${P}-gentoo-paths.patch - sed -i \ - -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:g" \ - configure.ac src/preferences.cpp - - #Bump VERSION to the correct one for this release - sed -i \ - -e "s/VERSION=0.96/VERSION=0.97/" \ - configure.ac \ - || die "sed failed" - ./autogen.sh || die "autogen failed" - chmod a+x configure - cd src - epatch "${FILESDIR}"/${P}-use-HOME.patch -} - -src_install() { - dogamesbin src/smc || die "dogamesbin failed" - insinto "${GAMES_DATADIR}/${PN}" - doins -r data/* || die "doins" - # Clean up data directory - rm -f "${D}${GAMES_DATADIR}"/${PN}/{data/,}Makefile* - dodoc *.txt ../readme-linux.txt - cd .. - dohtml *.html *.css - prepgamesdirs -} |