# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/cuyo/cuyo-1.8.1.ebuild,v 1.7 2004/07/01 05:24:56 mr_bones_ Exp $ inherit games DESCRIPTION="highly addictive and remotely related to tetris" HOMEPAGE="http://www.karimmi.de/cuyo/" SRC_URI="http://savannah.nongnu.org/download/cuyo/${P//_}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc" IUSE="" DEPEND="virtual/libc virtual/x11 x11-libs/qt" S="${WORKDIR}/${P/_}" src_unpack() { unpack ${A} cd ${S} sed -i \ -e 's:-O2:@CXXFLAGS@ -Wno-long-long:' src/Makefile.in \ || die "sed src/Makefile.in failed" } src_compile() { egamesconf \ --with-qt \ --with-x \ || die emake || die } src_install() { sed -i \ -e 's: $(pkgdatadir: $(DESTDIR)$(pkgdatadir:' data/Makefile \ || die "sed data/Makefile failed" make install DESTDIR=${D} || die "make install failed" dogamesbin "${D}/${GAMES_PREFIX}/games/cuyo" rm -rf "${D}/${GAMES_PREFIX}/games" dodoc AUTHORS INSTALL NEWS README TODO ChangeLog prepgamesdirs }