diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2007-12-11 21:17:23 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2007-12-11 21:17:23 +0000 |
commit | 211266c81e572216f2cb066683f6b97d5a47dfdc (patch) | |
tree | 8e340f6cf8d15c922b42d29e71dd51ec71da270a /games-puzzle | |
parent | remove cstetex mask: its gone (diff) | |
download | historical-211266c81e572216f2cb066683f6b97d5a47dfdc.tar.gz historical-211266c81e572216f2cb066683f6b97d5a47dfdc.tar.bz2 historical-211266c81e572216f2cb066683f6b97d5a47dfdc.zip |
New package. Bug #197770
Package-Manager: portage-2.1.3.19
Diffstat (limited to 'games-puzzle')
-rw-r--r-- | games-puzzle/candycrisis/ChangeLog | 11 | ||||
-rw-r--r-- | games-puzzle/candycrisis/Manifest | 30 | ||||
-rw-r--r-- | games-puzzle/candycrisis/candycrisis-1.0.ebuild | 44 | ||||
-rw-r--r-- | games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch | 81 | ||||
-rw-r--r-- | games-puzzle/candycrisis/files/digest-candycrisis-1.0 | 3 | ||||
-rw-r--r-- | games-puzzle/candycrisis/metadata.xml | 15 |
6 files changed, 184 insertions, 0 deletions
diff --git a/games-puzzle/candycrisis/ChangeLog b/games-puzzle/candycrisis/ChangeLog new file mode 100644 index 000000000000..03fe854d8141 --- /dev/null +++ b/games-puzzle/candycrisis/ChangeLog @@ -0,0 +1,11 @@ +# 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.1 2007/12/11 21:17:22 tupone Exp $ + +*candycrisis-1.0 (11 Dec 2007) + + 11 Dec 2007; Tupone Alfredo <tupone@gentoo.org> + +files/candycrisis-1.0-gentoo.patch, +metadata.xml, + +candycrisis-1.0.ebuild: + New package. Bug #197770 by Marcel Unbehaun + diff --git a/games-puzzle/candycrisis/Manifest b/games-puzzle/candycrisis/Manifest new file mode 100644 index 000000000000..a66981c23ae3 --- /dev/null +++ b/games-puzzle/candycrisis/Manifest @@ -0,0 +1,30 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX candycrisis-1.0-gentoo.patch 2355 RMD160 7a7da6b9039afff1447424ba1068c1644d32cff7 SHA1 a327b288663cee3bb02ef7fd8ffcc2cba0725124 SHA256 df5dda223a9c3cf9b91560f6bf2d1b95d47c85fbbb79ded2a14ea6a994a5501b +MD5 9fc53e4bcd0042e95e7f3a423ff37683 files/candycrisis-1.0-gentoo.patch 2355 +RMD160 7a7da6b9039afff1447424ba1068c1644d32cff7 files/candycrisis-1.0-gentoo.patch 2355 +SHA256 df5dda223a9c3cf9b91560f6bf2d1b95d47c85fbbb79ded2a14ea6a994a5501b files/candycrisis-1.0-gentoo.patch 2355 +DIST candycrisis-1.0.zip 5910242 RMD160 180536a9cf262f7f07fc15150639c9b499967fc9 SHA1 41cff7e371219d8dc1fcf2aab2b65a1da2eeb855 SHA256 7044b56afae9ccae28c11dc58cfdce9c92b520f468641083bc461cdb5e14da8a +EBUILD candycrisis-1.0.ebuild 1341 RMD160 d63bbda21d7e148e40c410f60b6aebc6c72fd9bc SHA1 fc01cfa8b1fb96f8cbf71462d57337ad04ca7991 SHA256 a77411c39f8f44c3f94d886160f5c61e47155f0c2b2037bcb42ed76d1a00cd8e +MD5 e6594657e68579e90173f611e86bcd47 candycrisis-1.0.ebuild 1341 +RMD160 d63bbda21d7e148e40c410f60b6aebc6c72fd9bc candycrisis-1.0.ebuild 1341 +SHA256 a77411c39f8f44c3f94d886160f5c61e47155f0c2b2037bcb42ed76d1a00cd8e candycrisis-1.0.ebuild 1341 +MISC ChangeLog 431 RMD160 b12921d3553467ef945e25cc75f10eb0fdc77cda SHA1 e3fb7904d39703d712063fa6dbaa487bcd20cfc3 SHA256 e638fee2e8552b50c6da310a929982973ef20d34f8336bd409341cf152a8809b +MD5 cbaec62f751be7898772f21cc3604712 ChangeLog 431 +RMD160 b12921d3553467ef945e25cc75f10eb0fdc77cda ChangeLog 431 +SHA256 e638fee2e8552b50c6da310a929982973ef20d34f8336bd409341cf152a8809b ChangeLog 431 +MISC metadata.xml 761 RMD160 275afc69be6d287ff84ffda90bdff0e91c08ce8b SHA1 80f0d6f8fdbd8549140c890939ce1266ab8c95b0 SHA256 1f5c7fa688552d7cf3360a282684b77731d44cac753395aa02d58a76ca34362e +MD5 a6cb69207c217e27b597f532ba1dad92 metadata.xml 761 +RMD160 275afc69be6d287ff84ffda90bdff0e91c08ce8b metadata.xml 761 +SHA256 1f5c7fa688552d7cf3360a282684b77731d44cac753395aa02d58a76ca34362e metadata.xml 761 +MD5 773a1bf501e88fb0ac2b5b3768f33d71 files/digest-candycrisis-1.0 241 +RMD160 ae2967a759ee0b4fc3668aadb3dbac10908b002c files/digest-candycrisis-1.0 241 +SHA256 c97888e4069d7027cf6fe5cf3efeee947746d9bc16a3385a736e754459f2511e files/digest-candycrisis-1.0 241 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.7 (GNU/Linux) + +iD8DBQFHXv5p8qKy9+b2Hl0RAqWdAJ4rt7cc5p91S4nJOzdejPt8hecMewCg+FLf +VPuaT08Fig8lW+QUfd2jiX8= +=4zHX +-----END PGP SIGNATURE----- diff --git a/games-puzzle/candycrisis/candycrisis-1.0.ebuild b/games-puzzle/candycrisis/candycrisis-1.0.ebuild new file mode 100644 index 000000000000..84b133a08d29 --- /dev/null +++ b/games-puzzle/candycrisis/candycrisis-1.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 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.1 2007/12/11 21:17:22 tupone Exp $ + +inherit eutils games + +DESCRIPTION="An exciting combination of pure action and puzzle gaming" +HOMEPAGE="http://candycrisis.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.zip" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +DEPEND="" + +S=${WORKDIR}/CandyCrisis/Source + +src_unpack() { + unpack ${A} + cd "${S}" + 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" +} + +src_install() { + dogamesbin CandyCrisis || die "dogamesbin failed" + dodoc ../CandyCrisisReadMe.rtf + 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 + newicon ../CandyCrisisResources/PICT_10000.png ${PN}.png + make_desktop_entry "CandyCrisis" "CandyCrisis" ${PN}.png + prepgamesdirs +} diff --git a/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch b/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch new file mode 100644 index 000000000000..aae9cfe74fa9 --- /dev/null +++ b/games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch @@ -0,0 +1,81 @@ +--- 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 @@ + strcpy( candyCrisisResources, ":CandyCrisisResources:" ); + #endif + #ifdef linux +- strcpy( candyCrisisResources, "CandyCrisisResources/" ); ++ strcpy( candyCrisisResources, "@GENTOO_DATADIR@" ); + #endif + + if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_AUDIO ) < 0 ) +@@ -626,7 +626,6 @@ + } + #else + SDL_WM_IconifyWindow(); +- ShellExecute( NULL, "open", url, "", "c:\\", SW_SHOWNORMAL ); + WaitForRegainFocus(); + #endif + } +@@ -703,7 +703,7 @@ + + void InitRegistration() + { +- playerIsRegistered = ValidateCode( registeredName, registeredKey ); ++ playerIsRegistered = true; + } + + +--- Makefile.old 2007-12-10 22:38:42.000000000 +0100 ++++ Makefile 2007-12-10 22:39:59.000000000 +0100 +@@ -1,7 +1,7 @@ + + 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 + +@@ -18,7 +18,9 @@ + keyselect.o \ + level.o \ + main.o \ +- midi.o \ ++ fmodsoundfx.o \ ++ fmodmusic.o \ ++ RegAlgorithm.o \ + 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 +@@ -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" ); + + if( F != NULL ) + { +@@ -128,7 +128,7 @@ + short count, size; + unsigned char* dataAt; + +- F = fopen( QuickResourceName( "Preferences", 0, ".txt" ), "w" ); ++ F = fopen( "@GENTOO_STATEDIR@/Preferences.txt", "w" ); + + if( F != NULL ) + { diff --git a/games-puzzle/candycrisis/files/digest-candycrisis-1.0 b/games-puzzle/candycrisis/files/digest-candycrisis-1.0 new file mode 100644 index 000000000000..a47f4eb9a25f --- /dev/null +++ b/games-puzzle/candycrisis/files/digest-candycrisis-1.0 @@ -0,0 +1,3 @@ +MD5 ef91e4daa81a95b5d762bc47009d3003 candycrisis-1.0.zip 5910242 +RMD160 180536a9cf262f7f07fc15150639c9b499967fc9 candycrisis-1.0.zip 5910242 +SHA256 7044b56afae9ccae28c11dc58cfdce9c92b520f468641083bc461cdb5e14da8a candycrisis-1.0.zip 5910242 diff --git a/games-puzzle/candycrisis/metadata.xml b/games-puzzle/candycrisis/metadata.xml new file mode 100644 index 000000000000..e0edb7253887 --- /dev/null +++ b/games-puzzle/candycrisis/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>games</herd> +<longdescription lang="en"> + Candy Crisis is an exciting combination of pure action and puzzle gaming! The + game features twelve unique stages, complete with its own character and + individual technique. Also, you can pair off against a friend, and even + specify a handicap so that both players are evenly matched. And if you don't + want to play against an opponent, Solitaire Crisis mode allows you to practice + without having to compete against an opponent. A tutorial is included with the + game as well, so even puzzle novices can become Candy Crisis champions in no + time. +</longdescription> +</pkgmetadata> |