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.
gentoo-overlay/games-misc/c++robots/c++robots-0.ebuild

35 lines
847 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-misc/c++robots/c++robots-0.ebuild,v 1.9 2014/04/17 19:17:30 ulm Exp $
inherit eutils games
DESCRIPTION="ongoing 'King of the Hill' (KotH) tournament"
HOMEPAGE="http://www.gamerz.net/c++robots/"
SRC_URI="http://www.gamerz.net/c++robots/c++robots.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 ppc"
IUSE="static"
S=${WORKDIR}/${PN}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/proper-coding.patch"
}
src_compile() {
local myldflags="${LDFLAGS}"
use static && myldflags="${myldflags} -static"
emake CFLAGS="${CFLAGS}" LDFLAGS="${myldflags}" || die "emake failed"
}
src_install() {
dogamesbin combat cylon target tracker || die "dogamesbin failed"
dodoc README
prepgamesdirs
}