From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-arcade/xevil/Manifest | 5 +++ .../xevil/files/xevil-2.02_p2-glibc-2.10.patch | 20 ++++++++++ games-arcade/xevil/metadata.xml | 8 ++++ games-arcade/xevil/xevil-2.02_p2-r1.ebuild | 43 ++++++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 games-arcade/xevil/Manifest create mode 100644 games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch create mode 100644 games-arcade/xevil/metadata.xml create mode 100644 games-arcade/xevil/xevil-2.02_p2-r1.ebuild (limited to 'games-arcade/xevil') diff --git a/games-arcade/xevil/Manifest b/games-arcade/xevil/Manifest new file mode 100644 index 000000000000..1d7addc19389 --- /dev/null +++ b/games-arcade/xevil/Manifest @@ -0,0 +1,5 @@ +AUX xevil-2.02_p2-glibc-2.10.patch 645 BLAKE2B 0d65a0ceef77ed1843679b12c90c2f84e1060934cf7c695c5ef4191fb398e6c6ec039ccfed83fb46a42c7d61be22b531ef58779772d63852addb14a154b73a32 SHA512 e14396ede761833d2fe2171fb7679040617c8809846a56f80cc8848a6444bcc1f85b571c7fb917b736cd3d9bf3059bc986ca06d188307e8f24d98720611440e9 +DIST xevil_2.02r2-7.diff.gz 31205 BLAKE2B b90dcff021633e92ad8ab41f9715b05aa2661be68ad2bce303ac9c86056b265852e1112739b5da030eb3b5e90afded0858fbcf8f083e64154005a04ee8535f2c SHA512 03fbe2aa62b3856bef6af824444c484dced8a627087ba68ad946c3bfce7d0c0b5138902ea7668927d22ad37925daa07b489a2e70aa680cf477367c87833e1a58 +DIST xevilsrc2.02r2.zip 1857315 BLAKE2B e2d2272e81cc676089343288a95b56960837d6c50e68b89bb2fd563d23ed4b511fec2f7af34522fe003dfd626d5f75483872f9a827e29a75a7fcd57101a2e926 SHA512 ce9422da914234290797258f22fa5f8d6502dc5930eac1c3ce92d708196050ce5d75761c987e2d28b167699460b9c8fd72596242983a0b8ba6d2008c72b2354f +EBUILD xevil-2.02_p2-r1.ebuild 1094 BLAKE2B 185279c7e3444dcfbbede5c0c59bb02cc1ed346696d3cb59ff883c8f2a267971805fc87b52d3cc343f5d492fb3faa4ea1d584143dc5325d9a0130187d7c35e9c SHA512 9fcd56d12a95c7c83287caf2ae9cbdf7dea70b245d6f9936854aa311fc48f17a4b4e07c5d15cedce66e93aed31ea447614775b419046707c86cb4d941a2b7ac8 +MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 diff --git a/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch new file mode 100644 index 000000000000..5375f2208a0d --- /dev/null +++ b/games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch @@ -0,0 +1,20 @@ +diff -ur cmn.old/utils.h cmn/utils.h +--- cmn.old/utils.h 2009-08-22 02:16:21.000000000 +0300 ++++ cmn/utils.h 2009-08-22 02:26:33.000000000 +0300 +@@ -238,13 +238,13 @@ + same. */ + + static char* strchr(const char* cs,int c) +- {return ::strchr(cs,c);} ++ {return const_cast(::strchr(cs,c));} + + static char* strrchr(const char* cs,int c) +- {return ::strrchr(cs,c);} ++ {return const_cast(::strrchr(cs,c));} + + static char* strstr(const char* cs,const char* ct) +- {return ::strstr(cs,ct);} ++ {return const_cast(::strstr(cs,ct));} + + static void strcpy(char* s,const char* ct) + {::strcpy(s,ct);} diff --git a/games-arcade/xevil/metadata.xml b/games-arcade/xevil/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/xevil/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + diff --git a/games-arcade/xevil/xevil-2.02_p2-r1.ebuild b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild new file mode 100644 index 000000000000..71b2f1c6fee3 --- /dev/null +++ b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DEB_PATCH=7 +MY_PV=${PV/_p/r} +DESCRIPTION="3rd person, side-view, fast-action, kill-them-before-they-kill-you game" +HOMEPAGE="http://www.xevil.com/" +SRC_URI="http://www.xevil.com/download/stable/xevilsrc${MY_PV}.zip + mirror://debian/pool/main/x/xevil/xevil_${MY_PV}-${DEB_PATCH}.diff.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +RDEPEND="x11-libs/libXpm" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_prepare() { + edos2unix readme.txt x11/*.{cpp,h} cmn/*.{cpp,h} makefile config.mk + epatch "${WORKDIR}"/xevil_${MY_PV}-${DEB_PATCH}.diff + sed -i \ + -e 's:-static::' \ + -e 's/CC="g++"/CC=$(CXX)/' \ + -e "s:CFLAGS=\":CFLAGS=\"${CXXFLAGS} :g" \ + -e 's:-lXpm:-lXpm -lpthread:g' \ + -e "s:LINK_FLAGS=\":LINK_FLAGS=\"${LDFLAGS} :" \ + config.mk || die + epatch "${FILESDIR}"/${P}-glibc-2.10.patch +} + +src_install() { + dogamesbin x11/REDHAT_LINUX/xevil + newgamesbin x11/REDHAT_LINUX/serverping xevil-serverping + dodoc readme.txt + prepgamesdirs +} -- cgit v1.2.3