# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/shaaft/shaaft-0.5.0.ebuild,v 1.7 2005/06/10 17:56:39 dholm Exp $ inherit eutils games DESCRIPTION="A falling block game similar to Blockout" HOMEPAGE="http://criticalmass.sourceforge.net/shaaft.php" SRC_URI="mirror://sourceforge/criticalmass/${P/s/S}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc x86" IUSE="" DEPEND="virtual/x11 virtual/opengl virtual/libc sys-libs/zlib media-libs/libpng >=media-libs/libsdl-1.2 media-libs/sdl-mixer media-libs/sdl-image" S=${WORKDIR}/${P/s/S} src_unpack() { unpack ${A} cd "${S}" sed -i \ -e 's:DATA_DIR:"'${GAMES_DATADIR}'\/'${PN/s/S}\/'":g' \ game/main.cpp \ || die "sed main.cpp failed" epatch "${FILESDIR}"/${P}-gcc34.patch } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc TODO.txt prepgamesdirs }