# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games DESCRIPTION="ctris is a Tetris clone for the console. It uses the ncurses library." HOMEPAGE="http://www.hackl.dhs.org/ctris" SRC_URI="http://weboperative.com/gentoo/distfiles/${P/4.1/41}.tar.bz2" LICENSE="GPL-1" SLOT="0" KEYWORDS="~x86" IUSE="" S="${WORKDIR}/${P/4.1/41}" DEPEND="sys-libs/ncurses" src_unpack() { unpack ${A} einfo "patching Makefile" sed -i 's#CFLAGS=-Wall -fomit-frame-pointer -O3#CFLAGS=${GENTOO_CFLAGS}#' ${S}/Makefile } src_compile() { cd ${S} make \ GENTOO_CFLAGS="${CFLAGS}" || die "econf failed." } src_install() { local dir="${GAMES_DATADIR}/${PN}" insinto ${dir} doins ctris doman ctris.6.gz dodoc AUTHORS README TODO games_make_wrapper ctris "./ctris" "${dir}" prepgamesdirs }