[gentoo-commits] repo/gentoo:master commit in: games-arcade/tuxdash/

2017-09-29 Thread Michael Palimaka
commit: c37651d072b2d0b9075b87ca092a28098b5db4a2
Author: Michael Palimaka  gentoo  org>
AuthorDate: Sat Sep 30 02:38:47 2017 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Sat Sep 30 02:40:13 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c37651d0

games-arcade/tuxdash: stabilise 0.8-r1 for amd64/x86

Closes: https://bugs.gentoo.org/632448
Package-Manager: Portage-2.3.8, Repoman-2.3.3

 games-arcade/tuxdash/tuxdash-0.8-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/games-arcade/tuxdash/tuxdash-0.8-r1.ebuild 
b/games-arcade/tuxdash/tuxdash-0.8-r1.ebuild
index 30ba43fef25..07b0d869588 100644
--- a/games-arcade/tuxdash/tuxdash-0.8-r1.ebuild
+++ b/games-arcade/tuxdash/tuxdash-0.8-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -11,7 +11,7 @@ 
SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2;
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+KEYWORDS="amd64 x86 ~x86-fbsd"
 IUSE=""
 
 RDEPEND="



[gentoo-commits] repo/gentoo:master commit in: games-arcade/tuxdash/files/, games-arcade/tuxdash/

2017-09-29 Thread Michael Palimaka
commit: 28146357de0d11952317fb221d43cffd4ef24d31
Author: Michael Palimaka  gentoo  org>
AuthorDate: Sat Sep 30 02:39:50 2017 +
Commit: Michael Palimaka  gentoo  org>
CommitDate: Sat Sep 30 02:40:14 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28146357

games-arcade/tuxdash: remove 0.8-r0

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../tuxdash/files/tuxdash-0.8-ldflags.patch|  8 
 games-arcade/tuxdash/tuxdash-0.8.ebuild| 50 --
 2 files changed, 58 deletions(-)

diff --git a/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch 
b/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch
deleted file mode 100644
index 00d2afb5530..000
--- a/games-arcade/tuxdash/files/tuxdash-0.8-ldflags.patch
+++ /dev/null
@@ -1,8 +0,0 @@
 src/Makefile.old   2010-09-30 06:24:36.0 +0200
-+++ src/Makefile   2010-09-30 06:25:02.0 +0200
-@@ -1,4 +1,4 @@
- all:
--  g++ main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --libs --cflags` 
-lSDL_ttf  -o ../tuxdash
-+  $(CXX) main.cpp $(LDFLAGS) $(E_CXXFLAGS) `/usr/bin/sdl-config --libs 
--cflags` -lSDL_ttf  -o ../tuxdash
- static:
-   g++ -static main.cpp $(E_CXXFLAGS) `/usr/bin/sdl-config --cflags 
--static-libs` -lSDL_ttf -lfreetype -lz -o ../tuxdash

diff --git a/games-arcade/tuxdash/tuxdash-0.8.ebuild 
b/games-arcade/tuxdash/tuxdash-0.8.ebuild
deleted file mode 100644
index 314e95c2b8b..000
--- a/games-arcade/tuxdash/tuxdash-0.8.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-inherit eutils games
-
-DESCRIPTION="A simple BoulderDash clone"
-HOMEPAGE="http://www.tuxdash.de/index.php?language=EN;
-SRC_URI="http://www.tuxdash.de/ressources/downloads/${PN}_src_${PV}.tar.bz2;
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 x86 ~x86-fbsd"
-IUSE=""
-
-DEPEND="media-libs/libsdl[video]
-   media-libs/sdl-ttf"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-   rm -f GPL TuxDash
-   sed -i \
-   -e '/^Fullscreen/ s/0/1/' \
-   -e "/^theme/ s:themes:${GAMES_DATADIR}/${PN}/themes:" \
-   config || die "sed failed"
-   sed -i \
-   -e '/PWD/d' \
-   -e '/CurrentDirectory;/d' \
-   -e "s:CurrentDirectory:\"${GAMES_DATADIR}/${PN}\":" \
-   src/main.cpp || die "sed failed"
-   sed -i \
-   -e 's/-Wall/$(E_CXXFLAGS)/' \
-   -e 's/TuxDash/tuxdash/g' \
-   src/Makefile || die "sed failed"
-   epatch "${FILESDIR}"/${P}-ldflags.patch
-   find . -type f -print0 | xargs -0 chmod a-x
-}
-
-src_compile() {
-   emake E_CXXFLAGS="${CXXFLAGS}" -C src
-}
-
-src_install() {
-   dogamesbin tuxdash
-   dodir "${GAMES_DATADIR}/${PN}"
-   cp -r themes maps fonts savegames config "${D}/${GAMES_DATADIR}/${PN}" \
-   || die "cp failed"
-   dodoc README*
-   prepgamesdirs
-}



[gentoo-commits] repo/gentoo:master commit in: games-arcade/tuxdash/, games-arcade/tuxdash/files/

2016-12-30 Thread David Seifert
commit: 9a523f187eb159ba514ac94ade360f25b7e68225
Author: David Seifert  gentoo  org>
AuthorDate: Fri Dec 30 07:33:50 2016 +
Commit: David Seifert  gentoo  org>
CommitDate: Fri Dec 30 07:35:23 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a523f18

games-arcade/tuxdash: Fix building with GCC 6

Gentoo-bug: 600084
* EAPI=6
* Remove games.eclass

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../files/tuxdash-0.8-fix-build-system.patch   |  11 +++
 .../tuxdash/files/tuxdash-0.8-fix-c++14.patch  | 101 +
 .../tuxdash/files/tuxdash-0.8-fix-paths.patch  |  45 +
 games-arcade/tuxdash/tuxdash-0.8-r1.ebuild |  48 ++
 4 files changed, 205 insertions(+)

diff --git a/games-arcade/tuxdash/files/tuxdash-0.8-fix-build-system.patch 
b/games-arcade/tuxdash/files/tuxdash-0.8-fix-build-system.patch
new file mode 100644
index ..9f861d9
--- /dev/null
+++ b/games-arcade/tuxdash/files/tuxdash-0.8-fix-build-system.patch
@@ -0,0 +1,11 @@
+Fix build system to honour all user variables.
+
+--- a/src/Makefile
 b/src/Makefile
+@@ -1,4 +1,4 @@
+ all:
+-  g++ main.cpp -Wall `/usr/bin/sdl-config --libs --cflags` -lSDL_ttf  -o 
../TuxDash
++  $(CXX) main.cpp $(LDFLAGS) $(CXXFLAGS) $(CPPFLAGS) `/usr/bin/sdl-config 
--libs --cflags` -lSDL_ttf  -o ../tuxdash
+ static:
+-  g++ -static main.cpp -Wall `/usr/bin/sdl-config --cflags --static-libs` 
-lSDL_ttf -lfreetype -lz -o ../TuxDash
++  $(CXX) -static main.cpp $(LDFLAGS) $(CXXFLAGS) $(CPPFLAGS) 
`/usr/bin/sdl-config --cflags --static-libs` -lSDL_ttf -lfreetype -lz -o 
../tuxdash

diff --git a/games-arcade/tuxdash/files/tuxdash-0.8-fix-c++14.patch 
b/games-arcade/tuxdash/files/tuxdash-0.8-fix-c++14.patch
new file mode 100644
index ..b37f456
--- /dev/null
+++ b/games-arcade/tuxdash/files/tuxdash-0.8-fix-c++14.patch
@@ -0,0 +1,101 @@
+Modernise C++ to avoid errors in C++14 mode.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=600084
+
+--- a/src/main.cpp
 b/src/main.cpp
+@@ -66,7 +66,7 @@
+ 
+ void writeconfig(const map& game_map) {
+   ofstream config((ostring)TuxHomeDirectory + "/config"); // open config 
file
+-  if(config == NULL) {// error check
++  if(!config) {   // error check
+   cout << "Warning: Couldn't write to file " << 
(ostring)TuxHomeDirectory + "/config" << endl;
+   return;
+   }
+@@ -124,7 +124,7 @@
+ 
+ void readconfig(class map& game_map) {
+   ifstream config((ostring)TuxHomeDirectory + "/config"); // open config 
file
+-  if(config==0) { // error check
++  if(!config) {   // error check
+   cout << "Warning: Couldn't find configuration file " << 
(ostring)TuxHomeDirectory + "/config" << ". Using default values." << endl;
+   return;
+   }
+--- a/src/map.cpp
 b/src/map.cpp
+@@ -346,13 +346,13 @@
+   cout << "-- copy map --" << endl;   // print status message
+   ifstream in_file(path); // open source file
+ 
+-  if(in_file == 0) {  // error checking
++  if(!in_file) {  // error checking
+   cout << "Couldn't open sourcefile \"" << filename << "\"" << 
endl;
+   cout << endl << "-- error in copymap --" << endl;
+   return 1;
+   }
+ 
+-  if(out_file == 0) { // error checking
++  if(!out_file) { // error checking
+   cout << "Couldn't open target file \"" << temp_path << "\" for 
writing " << endl;
+   cout << endl << "-- error in copymap --" << endl;
+   return 1;
+@@ -390,7 +390,7 @@
+   path = mapfolder;
+   path += filename;
+   file.open(path);// open file
+-  if(file == NULL) {
++  if(!file) {
+   cout << "map::savemap :  error while saving map to file 
'" << path << "'" << endl;
+   return 1;
+   }
+@@ -402,7 +402,7 @@
+   path = savefolder;
+   path += filename;
+   file.open(path);// open file
+-  if(file == NULL) {
++  if(!file) {
+   cout << "map::savemap : error while saving game to file 
'" << path << "'" << endl;
+   return 1;
+   }
+--- a/src/menu.cpp
 b/src/menu.cpp
+@@ -119,7 +119,7 @@
+ 
+ // add a selection box
+ 
+-class element* menu_mgm::add_box(int x, int y, const ostring& text, const 
ostring& value, bool selectable, int size, int xgroup, int ygroup, int max, int 
width, int height, unsigned char r, unsigned char g, unsigned char b, int 
value_type, bool dependency, char* depend) {
++class element* menu_mgm::add_box(int x, int y, const ostring& text, const 
ostring& value, bool selectable, int size, int xgroup, int ygroup, int max, int 
width, int height, unsigned char r, unsigned char g, unsigned char b, int 
value_type, bool dependency, const char* depend) {
+