summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2010-11-28 19:47:03 +0000
committerAlfredo Tupone <tupone@gentoo.org>2010-11-28 19:47:03 +0000
commit39481697c17f2682d4eddbc3d95534b49580b09c (patch)
treeca1aac5a5ed0de602c088a333b93d09e72ae3d7a /games-puzzle
parentAdd ~alpha/~ia64/~sparc wrt #345605 (diff)
downloadgentoo-2-39481697c17f2682d4eddbc3d95534b49580b09c.tar.gz
gentoo-2-39481697c17f2682d4eddbc3d95534b49580b09c.tar.bz2
gentoo-2-39481697c17f2682d4eddbc3d95534b49580b09c.zip
Version bump to 0.61 Bug #329209
(Portage version: 2.1.9.24/cvs/Linux i686)
Diffstat (limited to 'games-puzzle')
-rw-r--r--games-puzzle/brainparty/ChangeLog8
-rw-r--r--games-puzzle/brainparty/brainparty-0.61.ebuild49
-rw-r--r--games-puzzle/brainparty/files/brainparty-0.61-savegame.patch27
3 files changed, 83 insertions, 1 deletions
diff --git a/games-puzzle/brainparty/ChangeLog b/games-puzzle/brainparty/ChangeLog
index dd2d07f8aac6..df6e984111fe 100644
--- a/games-puzzle/brainparty/ChangeLog
+++ b/games-puzzle/brainparty/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-puzzle/brainparty
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/ChangeLog,v 1.5 2010/05/31 18:39:42 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/ChangeLog,v 1.6 2010/11/28 19:47:02 tupone Exp $
+
+*brainparty-0.61 (28 Nov 2010)
+
+ 28 Nov 2010; Tupone Alfredo <tupone@gentoo.org> +brainparty-0.61.ebuild,
+ +files/brainparty-0.61-savegame.patch:
+ Version bump to 0.61 Bug #329209 by throw_away_2002@yahoo.com
31 May 2010; Markus Meier <maekke@gentoo.org> brainparty-0.5.ebuild:
x86 stable, bug #318351
diff --git a/games-puzzle/brainparty/brainparty-0.61.ebuild b/games-puzzle/brainparty/brainparty-0.61.ebuild
new file mode 100644
index 000000000000..bed628f6c016
--- /dev/null
+++ b/games-puzzle/brainparty/brainparty-0.61.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-puzzle/brainparty/brainparty-0.61.ebuild,v 1.1 2010/11/28 19:47:02 tupone Exp $
+
+EAPI=2
+inherit eutils games
+
+DESCRIPTION="A puzzle-solving, brain-stretching game for all ages"
+HOMEPAGE="http://www.tuxradar.com/brainparty"
+SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}${PV}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="media-libs/libsdl[audio,opengl,video]
+ media-libs/sdl-mixer[vorbis]
+ media-libs/sdl-ttf
+ media-libs/sdl-image[png]
+ media-libs/sdl-gfx"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ sed -i \
+ -e 's/$(LIBS) $(OSXCOMPAT) $(OBJFILES)/$(OSXCOMPAT) $(OBJFILES) $(LIBS)/' \
+ -e 's/CXXFLAGS = .*/CXXFLAGS+=-c/' \
+ -e '/^CXX =/d' \
+ -e '/-o brainparty/s/INCLUDES) /&$(LDFLAGS) /' \
+ Makefile \
+ || die "sed failed"
+ sed -i \
+ "/^int main(/ a\\\\tchdir(\"${GAMES_DATADIR}/${PN}\");\n" \
+ main.cpp \
+ || die "sed failed"
+ epatch "${FILESDIR}"/${P}-savegame.patch
+
+}
+
+src_install() {
+ dogamesbin brainparty || die
+ insinto "${GAMES_DATADIR}/${PN}/Content"
+ doins Content/* || die
+ newicon Content/icon.bmp ${PN}.bmp
+ make_desktop_entry brainparty "Brain Party" /usr/share/pixmaps/${PN}.bmp
+ prepgamesdirs
+}
diff --git a/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch b/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch
new file mode 100644
index 000000000000..1b7b437ab446
--- /dev/null
+++ b/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch
@@ -0,0 +1,27 @@
+--- a/BPGame.cpp 2010-03-11 00:15:34.000000000 +0000
++++ b/BPGame.cpp 2010-04-02 04:17:02.640735675 +0100
+@@ -1294,8 +1294,10 @@ void BPGame::LoadSettings() {
+ Secret1 = Secret2 = Secret3 = Secret4 = false;
+ NumUnlockedGames = 0;
+
++ string file = string("/.brainparty");
++ file.insert(0, getenv("HOME"));
+ ifstream ifs;
+- ifs.open(".brainparty");
++ ifs.open(file.c_str());
+
+ FirstRun = false;
+
+@@ -1425,8 +1428,11 @@ void BPGame::LoadSettings() {
+ }
+
+ void BPGame::SaveSettings() {
++ string file = string("/.brainparty");
++ file.insert(0, getenv("HOME"));
++
+ ofstream savefile;
+- savefile.open(".brainparty");
++ savefile.open(file.c_str());
+ savefile << EnableSound << endl;
+ savefile << EnableMusic << endl;
+ savefile << endl;