games-action/clanbomber: Fix building with GCC-6 (bug #613332)
authorPeter-Levine <plevine457@gmail.com>
Wed, 5 Apr 2017 06:47:06 +0000 (02:47 -0400)
committerDavid Seifert <soap@gentoo.org>
Sun, 16 Apr 2017 18:57:32 +0000 (20:57 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4311

games-action/clanbomber/clanbomber-2.1.1-r1.ebuild
games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch [new file with mode: 0644]

index 7fbbd88aa00a50bc4f5f2c05603fe4ea26f8da8a..eee357249b52a0734284db654ac50a71c81994b4 100644 (file)
@@ -29,6 +29,7 @@ DOCS=( AUTHORS ChangeLog ChangeLog.hg IDEAS NEWS QUOTES README TODO )
 PATCHES=(
                "${FILESDIR}"/${P}-automake112.patch
                "${FILESDIR}"/${P}-boost150.patch
+               "${FILESDIR}"/${P}-gcc6.patch
 )
 
 src_prepare() {
diff --git a/games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch b/games-action/clanbomber/files/clanbomber-2.1.1-gcc6.patch
new file mode 100644 (file)
index 0000000..714e9de
--- /dev/null
@@ -0,0 +1,19 @@
+--- a/src/Credits.h
++++ b/src/Credits.h
+@@ -47,7 +47,7 @@
+       int   speed;
+       bool  stopped;
+  private:
+-      static const float yoffset_start = 50;
++      static const float yoffset_start;
+       static const int normal_speed = 40;
+       static const int text_height = 40;
+       
+--- a/src/Credits.cpp
++++ b/src/Credits.cpp
+@@ -273,3 +273,5 @@
+       (*draw_list_iter)->show();
+     }
+ }
++
++const float Credits::yoffset_start = 50;