# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/netris/netris-0.52.ebuild,v 1.7 2005/01/06 22:26:21 sekretarz Exp $ inherit eutils games DESCRIPTION="Classic networked version of T*tris" HOMEPAGE="http://www.netris.org/" SRC_URI="ftp://ftp.netris.org/pub/netris/${P}.tar.gz mirror://debian/pool/main/n/netris/netris_${PV}-1.diff.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc ~amd64" IUSE="" DEPEND="sys-libs/ncurses" src_unpack() { unpack ${A} epatch netris_${PV}-1.diff # Fixes segv on amd64 epatch ${FILESDIR}/${PN}-time.patch } src_compile() { ./Configure --copt "${CFLAGS}" || die "Configure failed" emake || die "emake failed" } src_install() { dogamesbin netris sr || die dodoc FAQ README robot_desc prepgamesdirs }