From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-puzzle/brainparty/Manifest | 6 +++ games-puzzle/brainparty/brainparty-0.61-r1.ebuild | 55 ++++++++++++++++++++++ .../brainparty/files/brainparty-0.61-gcc49.patch | 20 ++++++++ .../files/brainparty-0.61-gnu_cxx-hash.patch | 11 +++++ .../files/brainparty-0.61-savegame.patch | 27 +++++++++++ games-puzzle/brainparty/metadata.xml | 11 +++++ 6 files changed, 130 insertions(+) create mode 100644 games-puzzle/brainparty/Manifest create mode 100644 games-puzzle/brainparty/brainparty-0.61-r1.ebuild create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch create mode 100644 games-puzzle/brainparty/files/brainparty-0.61-savegame.patch create mode 100644 games-puzzle/brainparty/metadata.xml (limited to 'games-puzzle/brainparty') diff --git a/games-puzzle/brainparty/Manifest b/games-puzzle/brainparty/Manifest new file mode 100644 index 000000000000..84e8324bb1d8 --- /dev/null +++ b/games-puzzle/brainparty/Manifest @@ -0,0 +1,6 @@ +AUX brainparty-0.61-gcc49.patch 489 BLAKE2B f4f317679669fca33429e19a967945691e8baa24ec7ccea2d7a943e1ea4eed0108ea13c30208ac75b80d253b7166540556b20a7b47443e644bf8af8eeee78a82 SHA512 9859614d97c9fe8efd8cefedd8ef935cbdf4344154f2e272e0624268e48533b620a55654c9d0097e3726579ce1a7028ad44eb705c2e86bbc983cb490faec6295 +AUX brainparty-0.61-gnu_cxx-hash.patch 219 BLAKE2B 8a0570732bc55c2a0fe5b703e947650fe92200582581bc39857eb5a4898bdd9925ebd5e8568efc0e0c1765db26b4c9d5c15afab7fba49aa2a2016573e56be539 SHA512 d42cb49d0c320d91fc9c31706e2fb3e8cffcd0b08803b1a016ff30e283f35f86bbbdaae98a1f0ee3cece82d027dd767ce0a30ca8565887a2d2d619789ce51e30 +AUX brainparty-0.61-savegame.patch 674 BLAKE2B 051698e4fde8dab50ff591657705c32e5926d74ca83833ed0e901c6cc11bf82c66a6b7b5ef201d3e0ec2e27be0e8e0991c41216cfe34ece92ad21933606aaf0e SHA512 9e158b97ff15cfb4b6b8e4f6eb8006335841c48ff94b5da8bbb0cba03868b8ead92d2520bc8adae887d4baabac93c8104e44b46d87b6c4258792ab64376ce34a +DIST brainparty0.61.tar.gz 40676905 BLAKE2B cfa1a408a66438491e6053be0e76ca64d1d78724be86379cb06e750fc842e9835b624af7b98163c232ee6e205a4c2f9478f9d42fe0eaa28d18b45e218db75971 SHA512 bc8578a551ce4b7f40e212d9ab9910b2435b88d8b7b7e90a1c088e37d5f26b5c6126fcb9ffee7e39981eff34c13144c8f3204e020532b5abf1c4815cc8074eb9 +EBUILD brainparty-0.61-r1.ebuild 1223 BLAKE2B eab12dfb377265408a9192c02ff20a0308d780acd7beee685dddfbec805aa4635e22f1cb09777f4b092cfdd4ecb58cd0f3f8f12993d4d25fa401add2a76dee11 SHA512 2dd1e3071749fe87480d37c3d4e8eebf0c24479cdbb624c28e0960b9dfd08eb830c5fe5dc25f3d987a02adbc141c2b3cc75fdc785ee40c734ca4bdb56dc99e4b +MISC metadata.xml 331 BLAKE2B e2ed6c3f26c4637f2ca40dd55ecda347ffd596dc9c55db194668bd546f362bf37e41e52ba94a6777da6bcfa4d53513b865a6acb615b60b2a6ce8f6e6634087ac SHA512 bcea1853cf01102eb88c58723e585f81c55b4208be24b46bc421b62afa84405539116b33289e94c7b1da5c259ca91d0fc6553e6441e59ec5d41326525742a404 diff --git a/games-puzzle/brainparty/brainparty-0.61-r1.ebuild b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild new file mode 100644 index 000000000000..97d4b35c28aa --- /dev/null +++ b/games-puzzle/brainparty/brainparty-0.61-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="A puzzle-solving, brain-stretching game for all ages" +HOMEPAGE="http://www.tuxradar.com/brainparty" +SRC_URI="https://launchpad.net/brainparty/trunk/${PV}/+download/${PN}${PV}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + media-libs/libsdl[sound,opengl,video] + media-libs/sdl-gfx + media-libs/sdl-image[png] + media-libs/sdl-mixer[vorbis] + media-libs/sdl-ttf" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${PN} + +PATCHES=( + "${FILESDIR}"/${P}-savegame.patch + "${FILESDIR}"/${P}-gcc49.patch + "${FILESDIR}"/${P}-gnu_cxx-hash.patch +) + +src_prepare() { + default + + 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 -i \ + "/^int main(/ a\\\\tchdir(\"/usr/share/${PN}\");\n" \ + main.cpp || die +} + +src_install() { + dobin brainparty + + insinto /usr/share/${PN}/Content + doins -r Content/. + + newicon Content/icon.bmp ${PN}.bmp + make_desktop_entry brainparty "Brain Party" /usr/share/pixmaps/${PN}.bmp +} diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch b/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch new file mode 100644 index 000000000000..7147cd460be6 --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-gcc49.patch @@ -0,0 +1,20 @@ +--- a/BPList.h ++++ a/BPList.h +@@ -138,7 +138,7 @@ + ~BPPList(); + void Add(T item); + bool Contains(T item); +- void Clear(bool safe_delete); ++ void Clear(bool safe_delete = true); + int IndexOf(T item); + void Insert(int pos, T item); + void Remove(T item); +@@ -171,7 +171,7 @@ + } + + template +-void BPPList::Clear(bool safe_delete = true) { ++void BPPList::Clear(bool safe_delete) { + if (safe_delete) { + for (int i = data.size() - 1; i >= 0; --i) { + T item = data[i]; diff --git a/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch b/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch new file mode 100644 index 000000000000..8d933462673b --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-gnu_cxx-hash.patch @@ -0,0 +1,11 @@ +--- a/WordList.h ++++ b/WordList.h +@@ -35,7 +35,7 @@ + }; + } + +-typedef hash_set > string_hash_set; ++typedef hash_set > string_hash_set; + + class WordList { + private: 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..08526d345100 --- /dev/null +++ b/games-puzzle/brainparty/files/brainparty-0.61-savegame.patch @@ -0,0 +1,27 @@ +--- a/BPGame.cpp ++++ b/BPGame.cpp +@@ -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; diff --git a/games-puzzle/brainparty/metadata.xml b/games-puzzle/brainparty/metadata.xml new file mode 100644 index 000000000000..441580ff56b3 --- /dev/null +++ b/games-puzzle/brainparty/metadata.xml @@ -0,0 +1,11 @@ + + + + + games@gentoo.org + Gentoo Games Project + + + brainparty + + -- cgit v1.2.3