# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/freelords/freelords-0.3.8.ebuild,v 1.2 2007/05/29 17:00:02 nyhm Exp $ EAPI=2 inherit eutils games DESCRIPTION="Another Free Warlords II clone" HOMEPAGE="http://www.lordsawar.com/" SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P/_/-}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="editor nls pbm zip" S="${WORKDIR}/${P/_pre*/}" DEPEND="dev-util/pkgconfig dev-libs/boost nls? ( sys-devel/gettext ) >=dev-cpp/gtkmm-2.4 >=dev-cpp/libglademm-2.4 media-libs/sdl-image sound? ( media-libs/sdl-mixer[vorbis] ) >=net-libs/gnet-2 >=dev-libs/libsigc++-2 >=dev-libs/expat-2.0" RDEPEND="${DEPEND}" src_configure() { egamesconf \ --disable-dependency-tracking \ --disable-sdltest \ $(use_enable editor) \ $(use_enable nls) \ $(use_enable zip zipping) \ $(use_enable pbm) \ || die } src_install() { emake DESTDIR="${D}" install || die "emake install failed" rm -f "${D}"/usr/share/locale/locale.alias doicon dat/various/${PN}.png make_desktop_entry ${PN} FreeLords if use editor ; then doicon dat/various/${PN}_editor.png make_desktop_entry ${PN}_editor "LordsAWar Editor" ${PN}_editor fi dodoc AUTHORS ChangeLog NEWS README TODO prepgamesdirs }