# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/ufo-ai/ufo-ai-2.1.1-r1.ebuild,v 1.1 2007/09/27 23:58:39 nyhm Exp $ inherit games DESCRIPTION="Warlords II clone" HOMEPAGE="http://ufoai.ninex.info/" SRC_URI="http://www.lordsawar.com/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="nls editor sound zip gzz" RDEPEND="virtual/opengl media-libs/libsdl media-libs/libsdl media-libs/sdl-image media-libs/sdl-sound dev-cpp/libglademm media-libs/sdl-ttf dev-libs/expat gzz? ( dev-games/libggz ) zip? ( app-arch/zip )" DEPEND="${RDEPEND} nls? (sys-devel/gettext)" src_compile() { if use zip ; then ewarn "Ziping saved filegames is still experimental, if you experience \ some troubles turn zip useflag off." ZIP="--enable-zipping" else ZIP="--disable-zipping" fi egamesconf \ --disable-dependency-tracking \ --disable-rpath \ --disable-sdltest \ $(use_with sound) \ $(use_enable nls) \ $(use_enable gzz) \ $(use_enable editor) \ ${ZIP} \ || die "egamesconf failed" emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ChangeLog NEWS TODO doc/{Manual,README,Editor,Localization.HOWTO,lordsawarrc} elog "see lordsawarrc /usr/share/doc/${PF} for example configuration" prepgamesdirs }