# 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-r1.ebuild,v 1.4 2007/02/07 14:06:16 nyhm Exp $ inherit 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 ~sparc x86" IUSE="nls" RDEPEND="media-libs/sdl-ttf media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-image dev-libs/xerces-c nls? ( virtual/libintl )" DEPEND="${RDEPEND} nls? ( sys-devel/gettext )" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-build.patch } 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 }