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-server/crossfire-server/crossfire-server-1.60.0.ebuild

43 lines
1.1 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/crossfire-server/crossfire-server-1.60.0.ebuild,v 1.5 2012/05/21 12:29:43 phajdan.jr Exp $
EAPI="2"
inherit eutils games
MY_P="${P/-server/}"
DESCRIPTION="server for the crossfire clients"
HOMEPAGE="http://crossfire.real-time.com/"
SRC_URI="mirror://sourceforge/crossfire/${MY_P}.tar.gz
mirror://sourceforge/crossfire/crossfire-${PV}.maps.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86"
IUSE="X"
RESTRICT="test"
DEPEND="net-misc/curl
X? (
x11-libs/libXaw
media-libs/libpng
)"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
src_prepare() {
rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205
epatch "${FILESDIR}"/${P}-curl.patch
}
src_install() {
emake DESTDIR="${D}" install || die
keepdir "${GAMES_STATEDIR}"/crossfire/{datafiles,maps,players,template-maps,unique-items}
dodoc AUTHORS ChangeLog DEVELOPERS NEWS README TODO
insinto "${GAMES_DATADIR}/crossfire"
doins -r "${WORKDIR}/maps" || die
prepgamesdirs
}