# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/warzone2100/warzone2100-2.1_beta2.ebuild,v 1.2 2008/03/26 16:36:05 nyhm Exp $ inherit eutils versionator games MY_PV=$(get_version_component_range -2) DESCRIPTION="3D real-time strategy game" HOMEPAGE="http://wz2100.net/" SRC_URI="http://download.gna.org/warzone/releases/${MY_PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" # upstream requested debug support IUSE="debug nls" RDEPEND="dev-games/physfs dev-libs/popt media-libs/jpeg media-libs/libogg media-libs/libpng media-libs/libsdl media-libs/libvorbis media-libs/openal media-libs/sdl-net media-libs/quesoglc virtual/glu virtual/opengl nls? ( virtual/libintl )" DEPEND="${RDEPEND} app-arch/zip dev-util/pkgconfig nls? ( sys-devel/gettext )" RDEPEND="${RDEPEND} media-fonts/dejavu" src_unpack() { unpack ${A} cd "${S}" # epatch "${FILESDIR}"/${P}-encoding.patch } src_compile() { egamesconf \ --disable-dependency-tracking \ --docdir=/usr/share/doc/${PF} \ --localedir=/usr/share/locale \ --with-distributor="Gentoo ${PF}" \ --with-icondir=/usr/share/pixmaps \ --with-applicationdir=/usr/share/applications \ $(use_enable debug) \ $(use_enable nls) \ || die emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" rm -f "${D}"/usr/share/doc/${PF}/COPYING prepalldocs prepgamesdirs }