# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/enigma/enigma-1.00-r2.ebuild,v 1.4 2007/04/09 16:09:30 welp Exp $ inherit autotools eutils games DESCRIPTION="puzzle game similar to Oxyd" HOMEPAGE="http://www.nongnu.org/enigma/" SRC_URI="mirror://berlios/enigma-game/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ppc x86" IUSE="nls" RDEPEND="media-libs/sdl-ttf media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-image dev-libs/xerces-c net-libs/enet nls? ( virtual/libintl )" DEPEND="${RDEPEND} sys-devel/gettext" src_unpack() { unpack ${A} cd "${S}" cp /usr/share/gettext/config.rpath . epatch "${FILESDIR}"/${P}-autotools.patch eautoreconf } src_compile() { egamesconf \ --disable-dependency-tracking \ $(use_enable nls) \ || die emake || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ACKNOWLEDGEMENTS AUTHORS CHANGES README doc/HACKING dohtml -r doc/* doman doc/enigma.6 prepgamesdirs }