# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit toolchain-funcs DESCRIPTION="A Tetris(TM)-clone for the console written in C, using the ncurses-library." HOMEPAGE="https://github.com/dominikhackl/ctris" SRC_URI="https://github.com/dominikhackl/ctris/archive/v${PV}.zip -> ${P}.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" RDEPEND="sys-libs/ncurses:0=" DEPEND="${RDEPEND} app-arch/unzip virtual/pkgconfig" src_prepare() { local PKG_CONFIG=$(tc-getPKG_CONFIG) einfo "patching Makefile" sed -i -e 's#CFLAGS=-Wall -fomit-frame-pointer -O3#CFLAGS+=-Wall#' \ -e 's#BINDIR=$(DESTDIR)/usr/games#BINDIR=$(DESTDIR)/usr/games/bin#' \ -e 's#CC=gcc#CC?=gcc#' \ -e "s#LIBS=-lm -lncurses#LIBS=-lm \$(shell ${PKG_CONFIG} --libs ncurses)#" \ Makefile || die default_src_prepare tc-export CC }