You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

# 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
}