public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/warmux/files/, games-strategy/warmux/
Date: Sat, 17 Dec 2016 10:47:05 +0000 (UTC)	[thread overview]
Message-ID: <1481971027.0455ee01fd7b958c9a36ae568b7cac0725416b9e.soap@gentoo> (raw)

commit:     0455ee01fd7b958c9a36ae568b7cac0725416b9e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 17 10:36:47 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Dec 17 10:37:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0455ee01

games-strategy/warmux: Fix building with GCC 6

Gentoo-bug: 598639

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../warmux/files/warmux-11.04.1-fix-c++14.patch     | 14 ++++++++++++++
 games-strategy/warmux/warmux-11.04.1-r1.ebuild      | 21 ++++++++++++---------
 2 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch b/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch
new file mode 100644
index 00000000..223ee47
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch
@@ -0,0 +1,14 @@
+In C++14, bool -> T* implicit conversions are not allowed anymore.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=598639
+
+--- a/src/interface/weapon_menu.cpp
++++ b/src/interface/weapon_menu.cpp
+@@ -391,7 +391,7 @@
+ Weapon * WeaponsMenu::UpdateCurrentOverflyItem(const Polygon * poly)
+ {
+   if (!show)
+-    return false;
++    return NULL;
+   const std::vector<PolygonItem *>& items = poly->GetItem();
+   WeaponMenuItem * tmp;
+   Interface::GetInstance()->SetCurrentOverflyWeapon(NULL);

diff --git a/games-strategy/warmux/warmux-11.04.1-r1.ebuild b/games-strategy/warmux/warmux-11.04.1-r1.ebuild
index 6f265a9..17086e7 100644
--- a/games-strategy/warmux/warmux-11.04.1-r1.ebuild
+++ b/games-strategy/warmux/warmux-11.04.1-r1.ebuild
@@ -3,6 +3,7 @@
 # $Id$
 
 EAPI=6
+
 inherit autotools eutils
 
 DESCRIPTION="A free Worms clone"
@@ -14,15 +15,16 @@ SLOT="0"
 KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
 IUSE="debug nls unicode"
 
-RDEPEND="media-libs/libsdl[joystick,video,X]
+RDEPEND="
+	dev-libs/libxml2
+	media-libs/libsdl[joystick,video,X]
 	media-libs/sdl-image[jpeg,png]
 	media-libs/sdl-mixer[vorbis]
 	media-libs/sdl-ttf
 	media-libs/sdl-net
-	>=media-libs/sdl-gfx-2.0.22
-	net-misc/curl
+	media-libs/sdl-gfx
 	media-fonts/dejavu
-	dev-libs/libxml2
+	net-misc/curl
 	x11-libs/libX11
 	nls? ( virtual/libintl )
 	unicode? ( dev-libs/fribidi )"
@@ -38,19 +40,19 @@ PATCHES=(
 	"${FILESDIR}"/${P}-action.patch
 	"${FILESDIR}"/${P}-gcc47.patch
 	"${FILESDIR}"/${P}-stat.patch
+	"${FILESDIR}"/${P}-fix-c++14.patch
 )
 
 src_prepare() {
 	default
-
 	eautoreconf
 }
 
 src_configure() {
 	econf \
-		--with-localedir-name=/usr/share/locale \
-		--with-datadir-name=/usr/share/${PN} \
-		--with-font-path=/usr/share/fonts/dejavu/DejaVuSans.ttf \
+		--with-localedir-name="${EPREFIX}"/usr/share/locale \
+		--with-datadir-name="${EPREFIX}"/usr/share/${PN} \
+		--with-font-path="${EPREFIX}"/usr/share/fonts/dejavu/DejaVuSans.ttf \
 		$(use_enable debug) \
 		$(use_enable nls) \
 		$(use_enable unicode fribidi)
@@ -58,7 +60,8 @@ src_configure() {
 
 src_install() {
 	default
-	rm -f "${D}/usr/share/${PN}/font/DejaVuSans.ttf"
+
+	rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die
 	doicon data/icon/warmux.svg
 	make_desktop_entry warmux Warmux
 }


             reply	other threads:[~2016-12-17 10:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-17 10:47 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-10-04 23:58 [gentoo-commits] repo/gentoo:master commit in: games-strategy/warmux/files/, games-strategy/warmux/ Ionen Wolkens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1481971027.0455ee01fd7b958c9a36ae568b7cac0725416b9e.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox