blob: 5c5d141a8039169fcc45d3829352beaf77cfc380 (
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
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7..9} )
inherit python-any-r1 desktop scons-utils toolchain-funcs
DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra"
HOMEPAGE="http://fceux.com/"
SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk logo +lua +opengl"
RDEPEND="
lua? ( dev-lang/lua:0 )
media-libs/libsdl[opengl?,video]
logo? ( media-libs/gd[png] )
opengl? ( virtual/opengl )
gtk? ( x11-libs/gtk+:3 )
sys-libs/zlib[minizip]
"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-2.2.2-warnings.patch
"${FILESDIR}/${P}-python3.patch"
)
src_prepare() {
default
tc-export CC CXX
}
src_compile() {
escons \
GTK=0 \
CREATE_AVI=1 \
SYSTEM_LUA=1 \
SYSTEM_MINIZIP=1 \
GTK3=$(usex gtk 1 0) \
LOGO=$(usex logo 1 0) \
OPENGL=$(usex opengl 1 0) \
LUA=$(usex lua 1 0)
}
src_install() {
dobin bin/fceux
doman documentation/fceux.6
docompress -x /usr/share/doc/${PF}/documentation /usr/share/doc/${PF}/fceux.chm
dodoc -r Authors changelog.txt TODO-SDL bin/fceux.chm documentation
rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6"
make_desktop_entry fceux FCEUX
doicon fceux.png
}
|