blob: 1b1adc428e1c0895b9f97095893413e57cec273f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/fakenes/fakenes-0.1.5.ebuild,v 1.5 2004/09/23 08:52:09 mr_bones_ Exp $
inherit eutils games
DESCRIPTION="portable, Open Source NES emulator which is written mostly in C"
HOMEPAGE="http://fakenes.sourceforge.net/"
SRC_URI="mirror://sourceforge/fakenes/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="media-libs/allegro
sys-libs/zlib"
src_unpack() {
unpack ${A}
cd "${S}/src"
epatch "${FILESDIR}/${PV}-datadir.patch"
sed -i \
-e "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" main.c \
|| die "sed main.c failed"
}
src_compile() {
egamesconf || die
emake -j1 || die "emake failed"
}
src_install() {
dogamesbin src/fakenes || die "dogamesbin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins src/support/fakenes.{dat,ico,rc}
dodoc CHANGES README SOURCE SUPPORT
prepgamesdirs
}
|