blob: 5ab4a6e9c363fa1cbb6e97d8cf8024a0cc4de592 (
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
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/nestopia/nestopia-1.40.ebuild,v 1.3 2010/05/23 17:49:03 pacho Exp $
EAPI=2
inherit eutils games
MY_PV="${PV//./}"
LNX_P="nst${MY_PV}_lnx_release_h"
DESCRIPTION="NEStopia is a portable Nintendo Entertainment System emulator written in C++"
HOMEPAGE="http://rbelmont.mameworld.info/?page_id=200"
SRC_URI="mirror://sourceforge/${PN}/Nestopia${MY_PV}src.zip
http://rbelmont.mameworld.info/${LNX_P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=x11-libs/gtk+-2.4:2
media-libs/alsa-lib
>=media-libs/libsdl-1.2.12[audio,joystick,video]
sys-libs/zlib
virtual/opengl
virtual/glu"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${P}-makefile.patch
sed \
-e "s:%GAMES_DATADIR%:${GAMES_DATADIR}:g" \
"${FILESDIR}"/${PN} \
> ${PN} \
|| die "sed failed"
}
src_install() {
newgamesbin nst ${PN}.bin || die "dobin failed"
dogamesbin ${PN} || die "dobin failed"
insinto "${GAMES_DATADIR}/${PN}"
doins NstDatabase.xml nstcontrols || die "doins failed"
make_desktop_entry "${PN}" "Nestopia"
dodoc README.Linux changelog.txt
dohtml -r readme.html doc/*.html doc/details
prepgamesdirs
}
|