# 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" DEPEND="${RDEPEND} app-arch/unzip virtual/pkgconfig" src_prepare() { 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 $(NCURSES_LIBS)#' \ Makefile || die default_src_prepare tc-export CC NCURSES_LIBS="$(pkg-config --libs ncurses)" export NCURSES_LIBS }