# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils toolchain-funcs DESCRIPTION="Curses-based real-time GSM file player with file selector" HOMEPAGE="http://rus.members.beeb.net/zgsmplay.html" SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/apps/sound/players/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="sys-libs/ncurses" RDEPEND="${DEPEND}" src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-makefile.patch } src_compile() { emake \ CC=$(tc-getCC) \ AR=$(tc-getAR) \ RANLIB=$(tc-getRANLIB) \ OPTOPT="${CFLAGS}" \ all || die "emake failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" dodoc ChangeLog NEWS README TODO }