summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /games-arcade/xevil
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'games-arcade/xevil')
-rw-r--r--games-arcade/xevil/Manifest2
-rw-r--r--games-arcade/xevil/files/xevil-2.02_p2-glibc-2.10.patch20
-rw-r--r--games-arcade/xevil/metadata.xml5
-rw-r--r--games-arcade/xevil/xevil-2.02_p2-r1.ebuild44
4 files changed, 71 insertions, 0 deletions
diff --git a/games-arcade/xevil/Manifest b/games-arcade/xevil/Manifest
new file mode 100644
index 000000000000..4040c66206f1
--- /dev/null
+++ b/games-arcade/xevil/Manifest
@@ -0,0 +1,2 @@
+DIST xevil_2.02r2-7.diff.gz 31205 SHA256 7bd04cf75387779512105879682a2cdc3435a583a95d27a635a6968a9dbdc5c9 SHA512 03fbe2aa62b3856bef6af824444c484dced8a627087ba68ad946c3bfce7d0c0b5138902ea7668927d22ad37925daa07b489a2e70aa680cf477367c87833e1a58 WHIRLPOOL a1889bee53a530cde23d39698bb94c8af748a87f78d2f949234eb37770449f4f1224a0085c0826fca327102215d3835a4d01d207e709f180e50b014db8942af4
+DIST xevilsrc2.02r2.zip 1857315 SHA256 45a72def6f7532bd4b7193932df09c1ba4eada2433382c494b37d4733e743188 SHA512 ce9422da914234290797258f22fa5f8d6502dc5930eac1c3ce92d708196050ce5d75761c987e2d28b167699460b9c8fd72596242983a0b8ba6d2008c72b2354f WHIRLPOOL 5b96aa2a83ac9d1b753017c902ddfae701cb454e423985833d546e66b0a49f51984bf285265f5b010ad9db479362321d4712abeda2ed77a67c50d74065cb17c5
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<char*>(::strchr(cs,c));}
+
+ static char* strrchr(const char* cs,int c)
+- {return ::strrchr(cs,c);}
++ {return const_cast<char*>(::strrchr(cs,c));}
+
+ static char* strstr(const char* cs,const char* ct)
+- {return ::strstr(cs,ct);}
++ {return const_cast<char*>(::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..d3c2cc926f0b
--- /dev/null
+++ b/games-arcade/xevil/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>
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..60f1794397d9
--- /dev/null
+++ b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="ppc 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
+}