summaryrefslogtreecommitdiff
path: root/games-strategy/warmux
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-strategy/warmux
reinit the tree, so we can have metadata
Diffstat (limited to 'games-strategy/warmux')
-rw-r--r--games-strategy/warmux/Manifest11
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-action.patch12
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-fix-c++14.patch14
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-gcc47.patch11
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-gentoo.patch40
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-stat.patch61
-rw-r--r--games-strategy/warmux/files/warmux-11.04.1-zlib.patch11
-rw-r--r--games-strategy/warmux/metadata.xml8
-rw-r--r--games-strategy/warmux/warmux-11.04.1-r1.ebuild66
9 files changed, 234 insertions, 0 deletions
diff --git a/games-strategy/warmux/Manifest b/games-strategy/warmux/Manifest
new file mode 100644
index 000000000000..24cfa516d88b
--- /dev/null
+++ b/games-strategy/warmux/Manifest
@@ -0,0 +1,11 @@
+AUX warmux-11.04.1-action.patch 549 SHA256 a2b7bc4bfd84bc49dea5ef76a3386b414568c5b889f7ecad7d551e1f8f0cdc2e SHA512 c31ac142b43e593f4c7b9fff36a8dd0bb34b371a63935cf55627660d96eda8fe68af721254bd72a2168045a27b32a407df494eb6b216115a0bb0516478187ec9 WHIRLPOOL 91f7ff962204a22b09fb2f10a1b024cdd0ec0cd4739ef826643ca4692decf8808675772a123718993677dc175ed1844cd637e37d2f44428db40999c41be4e2f2
+AUX warmux-11.04.1-fix-c++14.patch 488 SHA256 3cd6bc564e8b5c30b3df742a72ef4f8d799dfed0a213f169aa4044586833a402 SHA512 c8c6d5d070e926f7ffd03766c95481c0db8b43a8a0f3fad301e7e7210013098696ad5af0c5ab8c70f0081711b6b50847d8873af0ea79315c4c45c760e915eb88 WHIRLPOOL 449871ce038cac93b2c1570fbfe068e6e0c797de207e65725e540ddb9e8f5428bc9150c6fb4a8068a75007aadc703a83a6495ff48c58ffa80fb29afcaeeb44a8
+AUX warmux-11.04.1-gcc47.patch 335 SHA256 e4445d745994ced951a1811d9298d6f864846b8dec04453955362530cbc963db SHA512 33e403ce0dd69ae782ca3696838bfaf8126520b92b3b813ac491559dafd429ae3379131965a49e2c7ca2955a384ce41989f89db611696f999edf41c4abdd1270 WHIRLPOOL 158139353e7efe8517de2bd82183a02395c044870d4bd922d672ba22f4ffaa18f1eb306dd92faea2e3002e4b37d9b52f2c68dd892a0948dd278ef01e9a967844
+AUX warmux-11.04.1-gentoo.patch 1543 SHA256 ddaf2c688f58cf8fb9d0baddd4016ebbf04c974ab533ebc0c3532ee87799d643 SHA512 30e565a3b212a3b54c29267b29a43343d21a3fbadf2bc70552fb074b0f174f08cf66a6565f19de4f0187dbfe68e9124fda42a0cd85d592f1d596f217f5c3c4f9 WHIRLPOOL 29e82ad7e85914a9115b16cbd7a7337e01da5bf2da3eefc38124af56d76627eaccfcfc2684a397d9ab35f6467634db00b6ea35f4aa5fa5ed73a0d3d77feb6e56
+AUX warmux-11.04.1-stat.patch 1746 SHA256 6c19ec72214bf44649a8ed3183aa35da1d45871d4ad6d41eabc16f355818dcdc SHA512 f0af67d2109585e6cc02621a9ff249cfe5154783216d46d2c7641ec825a8e30d34767122d12ced8bfd916c3c966cadad49eeb43b44aa1954905950272c0c9902 WHIRLPOOL 7d2ef4c199a8fdfdad4f7d6718c1283d112622285f08d8bbcf7b954213208c15af4e7975ad44ae321c743ff6431b5cb4616a06b2ad3c457a0df04248045e2974
+AUX warmux-11.04.1-zlib.patch 416 SHA256 665c4a64e54478491284f6cb6251bd58f96ba81671a7c439cffe175b86462852 SHA512 09ccc426514cf96d07fc3b05b7f248b0b77d2e61991afe530cb61b9c5ebf5c9222d2d4716861beed95607653ca4c617c03f244a957c4c6369925bd531ab73d3c WHIRLPOOL 352c569b75679cbcd881236541d2564fb6487850be2eb0e01a8a6796bec1f52b4156cc5c6f937b29b700aa97632588a5ed1d0debe4c0c7a2deb73061811af0ff
+DIST warmux-11.04.1.tar.bz2 110083622 SHA256 789c4f353e4c5ce0a2aba2e82861d3fd0e5218bc76d8da1a332f2c7b1b27e4ee SHA512 99501ea186e091b55a6e45935de83440be02ae4fc12ee6def5ec24e213c829230b4f6017043be6afbc7188e442b0e1128cfd27c290fbe0e49b6597f927fd1e2d WHIRLPOOL 2cce871fe330452c2f807ec4a9d99ff39de81a9f52c040e48f68a3478ce0a7407003159f9687c4d321c09fbdff7503e92cf47c64a5970666777e8b5d5536b220
+EBUILD warmux-11.04.1-r1.ebuild 1463 SHA256 d0090b7fd29ebba5c7973da294cf3cf76a4836db226c104c1fac24a96ea243fd SHA512 1d8735f742a7066d0f05b5a1e993d26b1f4a1e3e5fc231126e1b473e0182a0c3a299adb788a03207a441e68d7f90b4b2e5ea25aeb607cea9763316b32af976ea WHIRLPOOL 957b2ad9c93ed0e15c6b9fdf91c91e750d34d41ad1957e5c2851553ea7c941c632a438fa7803235a719bc4d25fd694aef449e704285482521ae2585d76a87d23
+MISC ChangeLog 3235 SHA256 dbec4da08ae9fa91fde75385749fa02ce4475093b82b7c926b13bb33015e0e77 SHA512 79f7142d62b08cdba1954ecaa0916037cc2e090594cba5715ac393f8a18132d0bbbf58ea317e7587386e506537936627fc61331b71c5e3083cb81f27361fc57d WHIRLPOOL 0763d2e3c880f8c1d283207d1edcfa03e71d277464eb8978842d907f623282c502c20fd3363f8c3ad46b9b864111ad113321b9bfd69e59054c8507194b054371
+MISC ChangeLog-2015 9038 SHA256 1bd7e17eaaac94cdecf6dbaa14b9495c4e3c44c388780cdc14e237bbd1e52fc6 SHA512 16f1c56164905a411eeb4c39b791e570622ff4ddcf1893b5b104f13071f90b871708805d41e6f8532ec4789cbb645ec8b909afc1bbf4eab8fb9a52b6f422ccf5 WHIRLPOOL 18daac8274e5aef23b1b997274eb1c126f5d99ba7e4da5c2d5fa2d8fd964966e20555e227d6a36ce2f5c8ef024013c207e5cfbf6d0b66fa89ab6b22ef07c65af
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-strategy/warmux/files/warmux-11.04.1-action.patch b/games-strategy/warmux/files/warmux-11.04.1-action.patch
new file mode 100644
index 000000000000..e1530337a259
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-action.patch
@@ -0,0 +1,12 @@
+diff -uNr warmux-11.04.orig/lib/warmux/action/action.cpp warmux-11.04/lib/warmux/action/action.cpp
+--- warmux-11.04.orig/lib/warmux/action/action.cpp 2012-03-27 15:18:08.440709875 +0200
++++ warmux-11.04/lib/warmux/action/action.cpp 2012-03-27 15:17:44.871711354 +0200
+@@ -85,7 +85,7 @@
+ {
+ m_creator = _creator;
+
+- m_header.len = SDLNet_Read32(buffer);
++ m_header.len = SDLNet_Read32((void *)buffer);
+ ASSERT(m_header.len >= sizeof(Header));
+ buffer += 4;
+ // All of the following could be skipped for the actions we now, \ No newline at end of file
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 000000000000..223ee47ab5a2
--- /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/files/warmux-11.04.1-gcc47.patch b/games-strategy/warmux/files/warmux-11.04.1-gcc47.patch
new file mode 100644
index 000000000000..8460bcbd0b1c
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-gcc47.patch
@@ -0,0 +1,11 @@
+Description: Fix FTBFS with gcc 4.7.
+Author: Felix Geyer <debfx-pkg@fobos.de>
+
+--- warmux-11.04.1+repack.orig/tools/list_games/main.cpp
++++ warmux-11.04.1+repack/tools/list_games/main.cpp
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <unistd.h>
+ #include <WARMUX_types.h>
+ #include <WARMUX_network.h>
+ #include <WARMUX_index_server.h>
diff --git a/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch b/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch
new file mode 100644
index 000000000000..62d22f84c82d
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-gentoo.patch
@@ -0,0 +1,40 @@
+diff -ru warmux-11.04.orig/configure.ac warmux-11.04/configure.ac
+--- warmux-11.04.orig/configure.ac 2011-04-18 16:46:12.000000000 -0400
++++ warmux-11.04/configure.ac 2011-04-19 11:17:27.380256500 -0400
+@@ -43,8 +43,6 @@
+ AC_MSG_ERROR([*** No C++ compiler can be found!])
+ fi
+
+-AX_CFLAGS_WARN_ALL([CXXFLAGS])
+-
+ # ==========================================================================
+ # == Set flags for various environments =
+ # ==========================================================================
+@@ -348,14 +346,9 @@
+ exit 1
+ fi
+
+-dnl === Add Werror flag for gcc/g++ if debug mode is enabled, ==============
+-dnl === but allow RTTI (ie dynamic_cast, typeid/typeinfo unavailable) ======
+-if test "x${debug}" = "xyes"; then
++if test "x${debug}" != "xyes"; then
+- CFLAGS="$CFLAGS -Werror"
+- CXXFLAGS="$CXXFLAGS -Werror"
+-else
+ CXXFLAGS="$CXXFLAGS -fno-rtti"
+ fi
+
+ dnl === Forbid exceptions (Android platform requirement) ===================
+ CXXFLAGS="$CXXFLAGS -fno-exceptions"
+diff -ru warmux-11.04.orig/data/Makefile.am warmux-11.04/data/Makefile.am
+--- warmux-11.04.orig/data/Makefile.am 2011-04-18 16:46:11.000000000 -0400
++++ warmux-11.04/data/Makefile.am 2011-04-19 11:17:45.134724536 -0400
+@@ -1,8 +1,2 @@
+-xdg_appsdir = $(prefix)/share/applications
+-xdg_apps_DATA = warmux.desktop warmux_files.desktop
+-pixmapsdir = $(prefix)/share/pixmaps
+-pixmaps_DATA = icon/warmux_128x128.png
+-
+ nobase_dist_pkgdata_DATA = @DATA_FILES@
+ pkgdatadir = @DATADIR@
+-EXTRA_DIST = $(pixmaps_DATA)
diff --git a/games-strategy/warmux/files/warmux-11.04.1-stat.patch b/games-strategy/warmux/files/warmux-11.04.1-stat.patch
new file mode 100644
index 000000000000..487b3805ba6f
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-stat.patch
@@ -0,0 +1,61 @@
+diff -ur warmux-11.04.orig/lib/warmux/tools/file_tools.cpp warmux-11.04/lib/warmux/tools/file_tools.cpp
+--- warmux-11.04.orig/lib/warmux/tools/file_tools.cpp 2011-04-28 21:03:13.000000000 +0200
++++ warmux-11.04/lib/warmux/tools/file_tools.cpp 2013-03-05 16:58:42.040443845 +0100
+@@ -33,6 +33,8 @@
+ # include <direct.h>
+ # undef DeleteFile // windows.h defines it I think
+ #else
++# include <sys/types.h>
++# include <sys/stat.h>
+ # include <stdlib.h> // getenv
+ # include <unistd.h> // not needed by mingw
+ #endif
+@@ -275,18 +277,14 @@
+ {
+ DIR *dir;
+ struct dirent *file;
+-#ifdef __SYMBIAN32__
+ std::string dname;
+-#endif
+ };
+
+ FolderSearch* OpenFolder(const std::string& dirname)
+ {
+ FolderSearch *f = new FolderSearch;
+ f->dir = opendir(dirname.c_str());
+-#ifdef __SYMBIAN32__
+ f->dname = dirname;
+-#endif
+
+ if (!f->dir) {
+ delete f;
+@@ -300,11 +298,11 @@
+ {
+ while ((f->file = readdir(f->dir)) != NULL) {
+
++ if (
+ #ifdef __SYMBIAN32__
+- if (f->file->d_namlen && DoesFolderExist(f->dname+"/"+std::string(f->file->d_name))) {
+-#else
+- if (f->file->d_type == DT_DIR) {
++ f->file->d_namlen &&
+ #endif
++ DoesFolderExist(f->dname+"/"+std::string(f->file->d_name))) {
+ // If we are also looking for files, report it isn't one
+ if (file)
+ file = false;
+@@ -316,11 +314,11 @@
+ continue;
+
+ // This is a file and we do search for file
++ if (
+ #ifdef __SYMBIAN32__
+- if (f->file->d_namlen && DoesFileExist(f->dname+"/"+std::string(f->file->d_name))) {
+-#else
+- if (f->file->d_type == DT_REG) {
++ f->file->d_namlen &&
+ #endif
++ DoesFileExist(f->dname+"/"+std::string(f->file->d_name))) {
+ file = true;
+ return f->file->d_name;
+ }
diff --git a/games-strategy/warmux/files/warmux-11.04.1-zlib.patch b/games-strategy/warmux/files/warmux-11.04.1-zlib.patch
new file mode 100644
index 000000000000..c7e77aba11c8
--- /dev/null
+++ b/games-strategy/warmux/files/warmux-11.04.1-zlib.patch
@@ -0,0 +1,11 @@
+diff -uNr warmux-11.04.orig/src/graphic/surface.cpp warmux-11.04/src/graphic/surface.cpp
+--- warmux-11.04.orig/src/graphic/surface.cpp 2011-09-19 09:26:52.392650465 +0200
++++ warmux-11.04/src/graphic/surface.cpp 2011-09-19 09:26:19.417648189 +0200
+@@ -25,6 +25,7 @@
+ #include <SDL_image.h>
+ #include <SDL_rotozoom.h>
+ #include <png.h>
++#include <zlib.h>
+
+ #include "graphic/surface.h"
+ #include "tool/math_tools.h"
diff --git a/games-strategy/warmux/metadata.xml b/games-strategy/warmux/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-strategy/warmux/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>games@gentoo.org</email>
+ <name>Gentoo Games Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/games-strategy/warmux/warmux-11.04.1-r1.ebuild b/games-strategy/warmux/warmux-11.04.1-r1.ebuild
new file mode 100644
index 000000000000..aa4a05d49b72
--- /dev/null
+++ b/games-strategy/warmux/warmux-11.04.1-r1.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="A free Worms clone"
+HOMEPAGE="http://gna.org/projects/warmux/"
+SRC_URI="http://download.gna.org/warmux/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="debug nls unicode"
+
+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
+ media-fonts/dejavu
+ net-misc/curl
+ x11-libs/libX11
+ nls? ( virtual/libintl )
+ unicode? ( dev-libs/fribidi )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-11.04
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-zlib.patch
+ "${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="${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)
+}
+
+src_install() {
+ default
+
+ rm -f "${ED%/}"/usr/share/${PN}/font/DejaVuSans.ttf || die
+ doicon data/icon/warmux.svg
+ make_desktop_entry warmux Warmux
+}