# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 DESCRIPTION="A Tetris(TM)-clone for the console written in C, using the ncurses-library." HOMEPAGE="https://github.com/dominikhackl/ctris/tree/master" SRC_URI="https://github.com/dominikhackl/ctris/archive/v0.42.1.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" DEPEND="sys-libs/ncurses" src_prepare() { eapply_user einfo "patching Makefile" sed -i 's#CFLAGS=-Wall -fomit-frame-pointer -O3#CFLAGS=${GENTOO_CFLAGS}#' ${S}/Makefile sed -i 's#BINDIR=$(DESTDIR)/usr/games#BINDIR=$(DESTDIR)/usr/games/bin#' ${S}/Makefile } src_compile() { cd ${S} emake \ GENTOO_CFLAGS="${CFLAGS}" || die "econf failed." }