diff options
Diffstat (limited to 'games-arcade/xevil/xevil-2.02_p2-r1.ebuild')
-rw-r--r-- | games-arcade/xevil/xevil-2.02_p2-r1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
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..e3cbc0cb8b82 --- /dev/null +++ b/games-arcade/xevil/xevil-2.02_p2-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/xevil/xevil-2.02_p2-r1.ebuild,v 1.1 2006/10/15 22:57:06 tupone Exp $ + +inherit eutils games + +DEB_PATCH=4 +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 virtual/x11 )" +DEPEND="${RDEPEND} + app-arch/unzip" + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + edos2unix readme.txt x11/*.{cpp,h} cmn/*.{cpp,h} makefile config.mk + epatch "${WORKDIR}"/xevil_${MY_PV}-${DEB_PATCH}.diff \ + "${FILESDIR}"/${P}-memErr.patch + sed -i \ + -e 's:-static::' \ + -e "s:CFLAGS=\":CFLAGS=\"${CFLAGS} :g" \ + -e 's:-lXpm:-lXpm -lpthread:g' \ + config.mk || die "sed failed" +} + +src_compile() { + emake STRIP=true || die "emake failed" +} + +src_install() { + dogamesbin x11/REDHAT_LINUX/xevil || die "dogamesbin failed" + newgamesbin x11/REDHAT_LINUX/serverping xevil-serverping \ + || die "newgamesbin failed" + dodoc readme.txt + prepgamesdirs +} |