From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B3D50139085 for ; Mon, 19 Dec 2016 11:15:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1379921C0AB; Mon, 19 Dec 2016 11:15:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D81D921C0AB for ; Mon, 19 Dec 2016 11:15:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94898340C9F for ; Mon, 19 Dec 2016 11:15:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0C96E1F2F for ; Mon, 19 Dec 2016 11:15:09 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1482146101.1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-strategy/scorched3d/, games-strategy/scorched3d/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch games-strategy/scorched3d/files/scorched3d-44-freetype.patch games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch games-strategy/scorched3d/scorched3d-44-r2.ebuild X-VCS-Directories: games-strategy/scorched3d/ games-strategy/scorched3d/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d X-VCS-Branch: master Date: Mon, 19 Dec 2016 11:15:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 636a4e99-5e14-4060-9bb6-1cd46b1fe6d8 X-Archives-Hash: 2b3c9c1cea6773bf5edfc67df4cccc1d commit: 1bbcfc9ae3dfdfcbdd35151cb7b6050776215e4d Author: David Seifert gentoo org> AuthorDate: Mon Dec 19 11:11:21 2016 +0000 Commit: David Seifert gentoo org> CommitDate: Mon Dec 19 11:15:01 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1bbcfc9a games-strategy/scorched3d: Fix building with GCC 6 Gentoo-bug: 601890 * EAPI=6 * Remove games.eclass * Make PATCHES -p1 compliant Package-Manager: Portage-2.3.3, Repoman-2.3.1 .../scorched3d/files/scorched3d-44-fix-c++14.patch | 14 ++++ .../scorched3d/files/scorched3d-44-freetype.patch | 12 +-- .../scorched3d/files/scorched3d-44-jpeg9.patch | 4 +- .../scorched3d/files/scorched3d-44-wxgtk.patch | 12 +-- games-strategy/scorched3d/scorched3d-44-r2.ebuild | 97 ++++++++++++++++++++++ 5 files changed, 125 insertions(+), 14 deletions(-) diff --git a/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch b/games-strategy/scorched3d/files/scorched3d-44-fix-c++14.patch new file mode 100644 index 00000000..e3cba27 --- /dev/null +++ b/games-strategy/scorched3d/files/scorched3d-44-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=601890 + +--- a/src/common/weapons/AccessoryStore.cpp ++++ b/src/common/weapons/AccessoryStore.cpp +@@ -156,7 +156,7 @@ + Accessory *parent, XMLNode *currentNode) + { + XMLNode *typeNode = 0; +- if (!currentNode->getNamedParameter("type", typeNode)) return false; ++ if (!currentNode->getNamedParameter("type", typeNode)) return NULL; + + AccessoryPart *accessoryPart = + AccessoryMetaRegistration::getNewAccessory(typeNode->getContent(), this); diff --git a/games-strategy/scorched3d/files/scorched3d-44-freetype.patch b/games-strategy/scorched3d/files/scorched3d-44-freetype.patch index 93c8ca3..e471797 100644 --- a/games-strategy/scorched3d/files/scorched3d-44-freetype.patch +++ b/games-strategy/scorched3d/files/scorched3d-44-freetype.patch @@ -1,5 +1,5 @@ ---- acinclude.m4.orig -+++ acinclude.m4 +--- a/acinclude.m4 ++++ b/acinclude.m4 @@ -437,7 +437,7 @@ if test "$FT2_CONFIG" = "no" ; then no_ft=yes @@ -9,8 +9,8 @@ FT2_LIBS=`$FT2_CONFIG $ft_config_args --libs` ft_config_major_version=`$FT2_CONFIG $ft_config_args --version | \ sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` ---- src.orig/client/GLEXT/GLFont2dFreeType.h -+++ src/client/GLEXT/GLFont2dFreeType.h +--- a/src/client/GLEXT/GLFont2dFreeType.h ++++ b/src/client/GLEXT/GLFont2dFreeType.h @@ -23,10 +23,10 @@ #include @@ -26,8 +26,8 @@ #include class GLFont2dFreeType ---- src.orig/launcher/wxdialogs/TrueTypeFont.h -+++ src/launcher/wxdialogs/TrueTypeFont.h +--- a/src/launcher/wxdialogs/TrueTypeFont.h ++++ b/src/launcher/wxdialogs/TrueTypeFont.h @@ -25,10 +25,10 @@ #include #include diff --git a/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch b/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch index 8255dd3..1cebf3e 100644 --- a/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch +++ b/games-strategy/scorched3d/files/scorched3d-44-jpeg9.patch @@ -1,5 +1,5 @@ ---- src/common/image/ImageJpgFactory.cpp.old 2014-12-03 09:52:03.306552513 +0100 -+++ src/common/image/ImageJpgFactory.cpp 2014-12-03 09:53:22.117786304 +0100 +--- a/src/common/image/ImageJpgFactory.cpp.old 2014-12-03 09:52:03.306552513 +0100 ++++ b/src/common/image/ImageJpgFactory.cpp 2014-12-03 09:53:22.117786304 +0100 @@ -79,7 +79,7 @@ src->next_input_byte = FakeEOI; src->bytes_in_buffer = 2; diff --git a/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch b/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch index ef2e27a..ee8b975 100644 --- a/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch +++ b/games-strategy/scorched3d/files/scorched3d-44-wxgtk.patch @@ -2,8 +2,8 @@ Description: Fix to build with wxWidgets 3.0 Author: Olly Betts Last-Update: 2014-05-01 ---- src/launcher/wxdialogs/Display.cpp -+++ src/launcher/wxdialogs/Display.cpp +--- a/src/launcher/wxdialogs/Display.cpp ++++ b/src/launcher/wxdialogs/Display.cpp @@ -26,7 +26,7 @@ // Display settings wxStaticBox *displayBox = new wxStaticBox(parent, -1, wxT("&Display")); @@ -49,8 +49,8 @@ Last-Update: 2014-05-01 keyboardKeyList.clear(); if (!Keyboard::instance()->loadKeyFile()) ---- src/launcher/wxdialogs/SettingsDialog.cpp -+++ src/launcher/wxdialogs/SettingsDialog.cpp +--- a/src/launcher/wxdialogs/SettingsDialog.cpp ++++ b/src/launcher/wxdialogs/SettingsDialog.cpp @@ -105,7 +105,7 @@ mainPanel_ = new wxPanel(book_, -1); book_->AddPage(mainPanel_, wxT("Main")); @@ -114,8 +114,8 @@ Last-Update: 2014-05-01 playersPanelSizer->Add(sizer, 0, wxALL | wxALIGN_CENTER, 10); for (int i=0; i<24; i++) ---- src/launcher/wxdialogs/DisplayDialog.cpp -+++ src/launcher/wxdialogs/DisplayDialog.cpp +--- a/src/launcher/wxdialogs/DisplayDialog.cpp ++++ b/src/launcher/wxdialogs/DisplayDialog.cpp @@ -449,15 +449,15 @@ IDC_SLIDER1_CTRL->SetValue(OptionsDisplay::instance()->getBrightness()); IDC_SLIDER1_CTRL->SetToolTip(wxString(OptionsDisplay::instance()->getBrightnessEntry().getDescription(), wxConvUTF8)); diff --git a/games-strategy/scorched3d/scorched3d-44-r2.ebuild b/games-strategy/scorched3d/scorched3d-44-r2.ebuild new file mode 100644 index 00000000..2469bcc --- /dev/null +++ b/games-strategy/scorched3d/scorched3d-44-r2.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +WX_GTK_VER=3.0 + +inherit autotools eutils wxwidgets + +DESCRIPTION="Multi-player tank battle in 3D (OpenGL)" +HOMEPAGE="http://www.scorched3d.co.uk/" +SRC_URI="mirror://sourceforge/scorched3d/Scorched3D-${PV}-src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="dedicated mysql" + +RDEPEND=" + dev-libs/expat + media-fonts/dejavu + media-libs/libpng:0= + media-libs/libsdl[video] + media-libs/sdl-net + sys-libs/zlib + virtual/jpeg:0 + !dedicated? ( + virtual/opengl + virtual/glu + media-libs/glew:0= + media-libs/libogg + media-libs/libvorbis + media-libs/openal + media-libs/freealut + x11-libs/wxGTK:${WX_GTK_VER}[X] + media-libs/freetype:2 + sci-libs/fftw:3.0= + ) + mysql? ( virtual/mysql )" +DEPEND="${RDEPEND} + !dedicated? ( virtual/pkgconfig )" + +S=${WORKDIR}/scorched + +PATCHES=( + "${FILESDIR}"/${P}-fixups.patch + "${FILESDIR}"/${P}-gcc43.patch + "${FILESDIR}"/${P}-odbc.patch + "${FILESDIR}"/${P}-win32.patch + "${FILESDIR}"/${P}-freetype.patch + "${FILESDIR}"/${P}-jpeg9.patch + "${FILESDIR}"/${P}-wxgtk.patch + "${FILESDIR}"/${P}-fix-c++14.patch +) + +pkg_setup() { + setup-wxwidgets +} + +src_prepare() { + edos2unix \ + src/launcher/wxdialogs/SettingsDialog.cpp \ + src/launcher/wxdialogs/DisplayDialog.cpp \ + src/launcher/wxdialogs/Display.cpp \ + src/launcher/wxdialogs/KeyDialog.cpp + default + eautoreconf +} + +src_configure() { + econf \ + --datadir="${EPREFIX}"/usr/share/${PN} \ + --with-fftw="${EPREFIX}"/usr \ + --with-ogg="${EPREFIX}"/usr \ + --with-vorbis="${EPREFIX}"/usr \ + --with-docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-wx-config="${WX_CONFIG}" \ + --without-pgsql \ + $(use_with mysql) \ + $(use_enable dedicated serveronly) +} + +src_install() { + default + + # remove bundled fonts + rm "${ED%/}"/usr/share/${PN}/data/fonts/* || die + dosym /usr/share/fonts/dejavu/DejaVuSans.ttf /usr/share/${PN}/data/fonts/dejavusans.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf /usr/share/${PN}/data/fonts/dejavusconbd.ttf + dosym /usr/share/fonts/dejavu/DejaVuSansMono-Bold.ttf /usr/share/${PN}/data/fonts/dejavusmobd.ttf + + if ! use dedicated; then + newicon data/images/tank-old.bmp ${PN}.bmp + make_desktop_entry ${PN} "Scorched 3D" /usr/share/pixmaps/${PN}.bmp + fi +}