summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2007-12-11 21:17:23 +0000
committerAlfredo Tupone <tupone@gentoo.org>2007-12-11 21:17:23 +0000
commit28969a714a42114e280cb3ea77677292bc572f92 (patch)
tree5fb80f586ba3c84d1e5bc82c60b49878bdba2228 /games-puzzle/candycrisis
parentremove cstetex mask: its gone (diff)
downloadgentoo-2-28969a714a42114e280cb3ea77677292bc572f92.tar.gz
gentoo-2-28969a714a42114e280cb3ea77677292bc572f92.tar.bz2
gentoo-2-28969a714a42114e280cb3ea77677292bc572f92.zip
New package. Bug #197770
(Portage version: 2.1.3.19)
Diffstat (limited to 'games-puzzle/candycrisis')
-rw-r--r--games-puzzle/candycrisis/ChangeLog11
-rw-r--r--games-puzzle/candycrisis/Manifest20
-rw-r--r--games-puzzle/candycrisis/candycrisis-1.0.ebuild44
-rw-r--r--games-puzzle/candycrisis/files/candycrisis-1.0-gentoo.patch81
-rw-r--r--games-puzzle/candycrisis/files/digest-candycrisis-1.03
-rw-r--r--games-puzzle/candycrisis/metadata.xml15
6 files changed, 174 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..6695a0dff3d0
--- /dev/null
+++ b/games-puzzle/candycrisis/Manifest
@@ -0,0 +1,20 @@
+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 1232 RMD160 8e4a70e809a59d92e7c1202364c9489d7a919c8d SHA1 347a2ac0a6064c302543c7309026274f4642ade8 SHA256 fdfa83e93e66f76cea4bd856eb99eaaa99da995368f9226d9a8bc65aaa7e022d
+MD5 f1bd2004b3b27d66985df88012a14032 candycrisis-1.0.ebuild 1232
+RMD160 8e4a70e809a59d92e7c1202364c9489d7a919c8d candycrisis-1.0.ebuild 1232
+SHA256 fdfa83e93e66f76cea4bd856eb99eaaa99da995368f9226d9a8bc65aaa7e022d candycrisis-1.0.ebuild 1232
+MISC ChangeLog 335 RMD160 b57ed991fc0a3a925e043acf6e984a29fc86fbe1 SHA1 41f48e1f503ed204ff9a4d52c394184538939bdb SHA256 05ff028db1131bccb08cf75aa2f69983e4c81aa30f109dd27ebc6cc727db9c68
+MD5 cc4d91ad6913ae7dc45e98eb09faa253 ChangeLog 335
+RMD160 b57ed991fc0a3a925e043acf6e984a29fc86fbe1 ChangeLog 335
+SHA256 05ff028db1131bccb08cf75aa2f69983e4c81aa30f109dd27ebc6cc727db9c68 ChangeLog 335
+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
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>