# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-emulation/nestra/nestra-0.66.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $ inherit games eutils PATCH="${P/-/_}-6.diff" DESCRIPTION="NES emulation for Linux/x86" HOMEPAGE="http://nestra.linuxgames.com/" SRC_URI="http://nestra.linuxgames.com/${P}.tar.gz http://ftp.debian.org/debian/pool/contrib/n/nestra/${PATCH}.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" DEPEND="virtual/x11" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} cd ${S} epatch ${WORKDIR}/${PATCH} sed -i \ -e 's:-O2 ::' \ -e "s:gcc:gcc ${CFLAGS}:" \ Makefile } src_compile() { make || die "compile failed" } src_install() { dogamesbin nestra dodoc BUGS CHANGES README doman nestra.6 prepgamesdirs }