# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # likewhoa 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" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="" src_unpack() { unpack ${A} einfo "patching Makefile" sed -i 's#CFLAGS=-Wall -fomit-frame-pointer -O3#CFLAGS=${GENTOO_CFLAGS}#' ${WORKDIR}/${P/4.1/41}/Makefile } src_compile() { cd ${WORKDIR}/${P/4.1/41} make \ GENTOO_CFLAGS="${CFLAGS}" || die "econf failed." } src_install() { cd ${WORKDIR}/${P/4.1/41} local dir="${GAMES_DATADIR}/${PN}" insinto ${dir} doins ctris doman ctris.6.gz dodoc {AUTHORS,README,TODO} games_make_wrapper ctris "./ctris" "${dir}" prepgamesdirs } pkg_postinst() { games_pkg_postinst }