diff options
author | Tristan Heaven <tristan@gentoo.org> | 2008-02-14 21:21:15 +0000 |
---|---|---|
committer | Tristan Heaven <tristan@gentoo.org> | 2008-02-14 21:21:15 +0000 |
commit | 0d2f3f10aae7f1080a3e4af2f6b3b0823cf573ae (patch) | |
tree | 0e61a5a1eddc079401e73bcb417027a05f487e9b /games-puzzle/candycrisis | |
parent | Version bump. (diff) | |
download | historical-0d2f3f10aae7f1080a3e4af2f6b3b0823cf573ae.tar.gz historical-0d2f3f10aae7f1080a3e4af2f6b3b0823cf573ae.tar.bz2 historical-0d2f3f10aae7f1080a3e4af2f6b3b0823cf573ae.zip |
Respect CXXFLAGS; Save prefs to HOME
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-puzzle/candycrisis')
-rw-r--r-- | games-puzzle/candycrisis/ChangeLog | 11 | ||||
-rw-r--r-- | games-puzzle/candycrisis/Manifest | 16 | ||||
-rw-r--r-- | games-puzzle/candycrisis/candycrisis-1.0-r1.ebuild (renamed from games-puzzle/candycrisis/candycrisis-1.0.ebuild) | 29 | ||||
-rw-r--r-- | games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch | 87 |
4 files changed, 94 insertions, 49 deletions
diff --git a/games-puzzle/candycrisis/ChangeLog b/games-puzzle/candycrisis/ChangeLog index 181fe346f8b1..e2c981215e42 100644 --- a/games-puzzle/candycrisis/ChangeLog +++ b/games-puzzle/candycrisis/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for games-puzzle/candycrisis -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/candycrisis/ChangeLog,v 1.2 2007/12/13 00:06:02 tupone Exp $ +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/candycrisis/ChangeLog,v 1.3 2008/02/14 21:21:15 nyhm Exp $ + +*candycrisis-1.0-r1 (14 Feb 2008) + + 14 Feb 2008; Tristan Heaven <nyhm@gentoo.org> + files/candycrisis-1.0-gentoo.patch, -candycrisis-1.0.ebuild, + +candycrisis-1.0-r1.ebuild: + Respect CXXFLAGS; Save prefs to HOME 13 Dec 2007; Tupone Alfredo <tupone@gentoo.org> candycrisis-1.0.ebuild: Adding dependency. Bug #202054 by Marcel Unbehaun diff --git a/games-puzzle/candycrisis/Manifest b/games-puzzle/candycrisis/Manifest index 03fc6d7b6a4f..f8089bd91b3b 100644 --- a/games-puzzle/candycrisis/Manifest +++ b/games-puzzle/candycrisis/Manifest @@ -1,5 +1,15 @@ -AUX candycrisis-1.0-gentoo.patch 2355 RMD160 7a7da6b9039afff1447424ba1068c1644d32cff7 SHA1 a327b288663cee3bb02ef7fd8ffcc2cba0725124 SHA256 df5dda223a9c3cf9b91560f6bf2d1b95d47c85fbbb79ded2a14ea6a994a5501b +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX candycrisis-1.0-gentoo.patch 2583 RMD160 955fa27a0a314a70268a6e0e49255e3e23073770 SHA1 ec2dbe26a7d0fd660cc1dfbe09214306d79b4f39 SHA256 edfac0bedd63e909bb8daada0d09e82688a0d2cd0590b801201bb4432ec3528d DIST candycrisis-1.0.zip 5910242 RMD160 180536a9cf262f7f07fc15150639c9b499967fc9 SHA1 41cff7e371219d8dc1fcf2aab2b65a1da2eeb855 SHA256 7044b56afae9ccae28c11dc58cfdce9c92b520f468641083bc461cdb5e14da8a -EBUILD candycrisis-1.0.ebuild 1382 RMD160 aa0aa0a8fcfdf11f398ecab30b992cb20a4b6d28 SHA1 9789980c36d5ac94f3b6d4a460069190f733b9bb SHA256 e960d133b2241d31fa72a79d8709753581c6580f69c0b95950dee2753ee0047e -MISC ChangeLog 558 RMD160 edd9749dd5c5d391bd62aa9a81e98ebae2e2b090 SHA1 acc8cfacbfe31c18bb2456d558c45fef36fb9901 SHA256 34f40c9196ffc73998d67ad83ea9c6908d77980d973d1a611883fde106c5d200 +EBUILD candycrisis-1.0-r1.ebuild 1074 RMD160 62e50cf590ac4a1d706a894408bbcd4b751a2e2e SHA1 b09101bc8d71248986a7b781a75d0f085a02574c SHA256 a78233acc8dd9119afb81043e1a663f2ade7b477c4eb12436c4a714a2d5c9ff7 +MISC ChangeLog 772 RMD160 1938c9a5ae463ba019b1039550ea745fa32b3f9c SHA1 814b87009401f0d2b63f47a48e87c690e3e58cfd SHA256 98d0875cf7afd3094a27b13f052346b8e831cd1af1bc7992340da35e180c9b69 MISC metadata.xml 761 RMD160 275afc69be6d287ff84ffda90bdff0e91c08ce8b SHA1 80f0d6f8fdbd8549140c890939ce1266ab8c95b0 SHA256 1f5c7fa688552d7cf3360a282684b77731d44cac753395aa02d58a76ca34362e +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFHtLDQdz7hIScOURERArVYAJ9X89mC8uD0/Or8lmgfYW2xcymfNgCg3P/H +PiQTc7Tf0TpcwNGJQAVXRg4= +=sKTd +-----END PGP SIGNATURE----- diff --git a/games-puzzle/candycrisis/candycrisis-1.0.ebuild b/games-puzzle/candycrisis/candycrisis-1.0-r1.ebuild index f1171328990d..907895ee0c33 100644 --- a/games-puzzle/candycrisis/candycrisis-1.0.ebuild +++ b/games-puzzle/candycrisis/candycrisis-1.0-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-puzzle/candycrisis/candycrisis-1.0.ebuild,v 1.2 2007/12/13 00:06:02 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-puzzle/candycrisis/candycrisis-1.0-r1.ebuild,v 1.1 2008/02/14 21:21:15 nyhm Exp $ inherit eutils games @@ -11,9 +11,13 @@ SRC_URI="mirror://gentoo/${P}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" +IUSE="" -DEPEND="=media-libs/fmod-3* +RDEPEND="=media-libs/fmod-3* + media-libs/libsdl media-libs/sdl-image" +DEPEND="${RDEPEND} + app-arch/unzip" S=${WORKDIR}/CandyCrisis/Source @@ -23,23 +27,16 @@ src_unpack() { epatch "${FILESDIR}"/${P}-gentoo.patch sed -i \ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}/:g" \ - -e "s:@GENTOO_STATEDIR@:${GAMES_STATEDIR}/${PN}/:g" \ - main.cpp prefs.cpp || die "sed failed" - mv ../CandyCrisisResources/Preferences.txt . \ - || die "Move of preference file failed" + main.cpp \ + || die "sed failed" } src_install() { - dogamesbin CandyCrisis || die "dogamesbin failed" - dodoc ../CandyCrisisReadMe.rtf + dogamesbin ${PN} || die "dogamesbin failed" insinto "${GAMES_DATADIR}"/${PN} - doins ../CandyCrisisResources/* || die "Installing data failed" - if [ ! -e "${GAMES_STATEDIR}"/${PN}/Preferences.txt ]; then - insinto "${GAMES_STATEDIR}"/${PN} - insopts -m0760 - doins Preferences.txt || die "Installing preference file failed" - fi + doins ../CandyCrisisResources/* || die "doins failed" newicon ../CandyCrisisResources/PICT_10000.png ${PN}.png - make_desktop_entry "CandyCrisis" "CandyCrisis" ${PN}.png + make_desktop_entry ${PN} CandyCrisis + dodoc ../CandyCrisisReadMe.rtf prepgamesdirs } diff --git a/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch b/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch index aae9cfe74fa9..235cab0fffcc 100644 --- a/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch +++ b/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch @@ -1,6 +1,33 @@ ---- main.cpp.old 2007-12-10 22:33:59.000000000 +0100 -+++ main.cpp 2007-12-10 22:34:30.000000000 +0100 -@@ -592,7 +592,7 @@ +--- fmodsoundfx.cpp ++++ fmodsoundfx.cpp +@@ -22,7 +22,7 @@ + + for( index=0; index<kNumSounds; index++ ) + { +- sound[index] = FSOUND_Sample_Load( FSOUND_UNMANAGED, QuickResourceName( "snd", index+128, ".wav" ), FSOUND_NORMAL | FSOUND_LOOP_OFF | FSOUND_2D, 0 ); ++ sound[index] = FSOUND_Sample_Load( FSOUND_UNMANAGED, QuickResourceName( "snd", index+128, ".wav" ), FSOUND_NORMAL | FSOUND_LOOP_OFF | FSOUND_2D, 0, 0 ); + if( sound[index] == NULL ) + { + Error( "InitSound: files are missing" ); +--- main.cpp ++++ main.cpp +@@ -232,6 +232,7 @@ + + #include <string.h> + #include <stdlib.h> ++#include <unistd.h> + + #include "hiscore.h" + #include "control.h" +@@ -283,6 +284,7 @@ + int main(int argc, char *argv[]) + { + argc, argv; ++ chdir(getenv("HOME")); + + Initialize( ); + if( IsRegistered( ) ) exit(0); +@@ -592,7 +594,7 @@ strcpy( candyCrisisResources, ":CandyCrisisResources:" ); #endif #ifdef linux @@ -9,7 +36,7 @@ #endif if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO ) < 0 ) -@@ -626,7 +626,6 @@ +@@ -626,7 +628,6 @@ } #else SDL_WM_IconifyWindow(); @@ -17,7 +44,7 @@ WaitForRegainFocus(); #endif } -@@ -703,7 +703,7 @@ +@@ -703,7 +704,7 @@ void InitRegistration() { @@ -26,18 +53,24 @@ } ---- Makefile.old 2007-12-10 22:38:42.000000000 +0100 -+++ Makefile 2007-12-10 22:39:59.000000000 +0100 -@@ -1,7 +1,7 @@ +--- Makefile ++++ Makefile +@@ -1,9 +1,10 @@ ++CXX ?= g++ ++CXXFLAGS ?= -O3 ++CXXFLAGS += $(shell sdl-config --cflags) ++LIBS := $(shell sdl-config --libs) -lSDL_image -lfmod - OPTIMIZE := -O3 - CXXFLAGS := $(shell sdl-config --cflags) -DHAVE_MIKMOD $(OPTIMIZE) +-OPTIMIZE := -O3 +-CXXFLAGS := $(shell sdl-config --cflags) -DHAVE_MIKMOD $(OPTIMIZE) -LIBS := $(shell sdl-config --libs) -lSDL_image -lmikmod -+LIBS := $(shell sdl-config --libs) -lSDL_image -lfmod - TARGET := CandyCrisis +-TARGET := CandyCrisis ++TARGET := candycrisis -@@ -18,7 +18,9 @@ + OBJECTS := \ + blitter.o \ +@@ -18,7 +19,9 @@ keyselect.o \ level.o \ main.o \ @@ -48,25 +81,23 @@ moving.o \ MTypes.o \ next.o \ ---- fmodsoundfx.cpp.old 2007-12-10 22:41:02.000000000 +0100 -+++ fmodsoundfx.cpp 2007-12-10 22:41:37.000000000 +0100 -@@ -22,7 +22,7 @@ - - for( index=0; index<kNumSounds; index++ ) - { -- sound[index] = FSOUND_Sample_Load( FSOUND_UNMANAGED, QuickResourceName( "snd", index+128, ".wav" ), FSOUND_NORMAL | FSOUND_LOOP_OFF | FSOUND_2D, 0 ); -+ sound[index] = FSOUND_Sample_Load( FSOUND_UNMANAGED, QuickResourceName( "snd", index+128, ".wav" ), FSOUND_NORMAL | FSOUND_LOOP_OFF | FSOUND_2D, 0, 0 ); - if( sound[index] == NULL ) - { - Error( "InitSound: files are missing" ); ---- prefs.cpp.old 2007-12-10 23:10:49.000000000 +0100 -+++ prefs.cpp 2007-12-10 23:18:45.000000000 +0100 +@@ -36,7 +39,7 @@ + zap.o + + $(TARGET): $(OBJECTS) +- $(CXX) -o $@ $^ $(LIBS) ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJECTS) -o $(TARGET) $(LIBS) + + clean: + $(RM) $(OBJECTS) +--- prefs.cpp ++++ prefs.cpp @@ -37,7 +37,7 @@ int fileSize, count, digitsLeft; unsigned char info, *infoAt, *dataAt, *fileData; - F = fopen( QuickResourceName( "Preferences", 0, ".txt" ), "r" ); -+ F = fopen( "@GENTOO_STATEDIR@/Preferences.txt", "r" ); ++ F = fopen( ".candycrisis", "r" ); if( F != NULL ) { @@ -75,7 +106,7 @@ unsigned char* dataAt; - F = fopen( QuickResourceName( "Preferences", 0, ".txt" ), "w" ); -+ F = fopen( "@GENTOO_STATEDIR@/Preferences.txt", "w" ); ++ F = fopen( ".candycrisis", "w" ); if( F != NULL ) { |