1 |
commit: d5875e69cd8467a4b977de1ac726c2debe719583 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 14:00:31 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 14:19:43 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5875e69 |
7 |
|
8 |
games-emulation/fceux: migrate to lua-single.eclass |
9 |
|
10 |
Simple enough, upstream SConstruct explicitly looks for lua5.1 headers |
11 |
and libraries before trying their unversioned equivalents. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/752684 |
14 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
15 |
|
16 |
games-emulation/fceux/fceux-2.2.3-r100.ebuild | 69 +++++++++++++++++++++++++++ |
17 |
profiles/package.mask | 1 + |
18 |
2 files changed, 70 insertions(+) |
19 |
|
20 |
diff --git a/games-emulation/fceux/fceux-2.2.3-r100.ebuild b/games-emulation/fceux/fceux-2.2.3-r100.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..734feb3edc8 |
23 |
--- /dev/null |
24 |
+++ b/games-emulation/fceux/fceux-2.2.3-r100.ebuild |
25 |
@@ -0,0 +1,69 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=7 |
30 |
+ |
31 |
+LUA_COMPAT=( lua5-1 ) |
32 |
+PYTHON_COMPAT=( python3_{6..9} ) |
33 |
+ |
34 |
+inherit python-any-r1 desktop lua-single scons-utils toolchain-funcs |
35 |
+ |
36 |
+DESCRIPTION="A portable Famicom/NES emulator, an evolution of the original FCE Ultra" |
37 |
+HOMEPAGE="https://fceux.com/" |
38 |
+SRC_URI="mirror://sourceforge/fceultra/${P}.src.tar.gz" |
39 |
+ |
40 |
+LICENSE="GPL-2" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~x86" |
43 |
+IUSE="gtk logo +lua +opengl" |
44 |
+ |
45 |
+REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )" |
46 |
+ |
47 |
+RDEPEND=" |
48 |
+ lua? ( ${LUA_DEPS} ) |
49 |
+ media-libs/libsdl[opengl?,video] |
50 |
+ logo? ( media-libs/gd[png] ) |
51 |
+ opengl? ( virtual/opengl ) |
52 |
+ gtk? ( x11-libs/gtk+:3 ) |
53 |
+ sys-libs/zlib[minizip] |
54 |
+" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+PATCHES=( |
58 |
+ "${FILESDIR}"/${PN}-2.2.2-warnings.patch |
59 |
+ "${FILESDIR}/${P}-python3.patch" |
60 |
+) |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ python-any-r1_pkg_setup |
64 |
+ use lua && lua-single_pkg_setup |
65 |
+} |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ |
70 |
+ tc-export CC CXX |
71 |
+} |
72 |
+ |
73 |
+src_compile() { |
74 |
+ escons \ |
75 |
+ GTK=0 \ |
76 |
+ CREATE_AVI=1 \ |
77 |
+ SYSTEM_LUA=1 \ |
78 |
+ SYSTEM_MINIZIP=1 \ |
79 |
+ GTK3=$(usex gtk 1 0) \ |
80 |
+ LOGO=$(usex logo 1 0) \ |
81 |
+ OPENGL=$(usex opengl 1 0) \ |
82 |
+ LUA=$(usex lua 1 0) |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ dobin bin/fceux |
87 |
+ |
88 |
+ doman documentation/fceux.6 |
89 |
+ docompress -x /usr/share/doc/${PF}/documentation /usr/share/doc/${PF}/fceux.chm |
90 |
+ dodoc -r Authors changelog.txt TODO-SDL bin/fceux.chm documentation |
91 |
+ rm -f "${D}/usr/share/doc/${PF}/documentation/fceux.6" |
92 |
+ make_desktop_entry fceux FCEUX |
93 |
+ doicon fceux.png |
94 |
+} |
95 |
|
96 |
diff --git a/profiles/package.mask b/profiles/package.mask |
97 |
index 416fbe81fa8..5a5a92b31b1 100644 |
98 |
--- a/profiles/package.mask |
99 |
+++ b/profiles/package.mask |
100 |
@@ -552,6 +552,7 @@ dev-lua/luacrypto |
101 |
>=dev-util/geany-plugins-1.37-r100 |
102 |
=games-action/minetest-5.3.0-r100 |
103 |
>=games-arcade/jvgs-0.5-r100 |
104 |
+>=games-emulation/fceux-2.2.3-r100 |
105 |
>=games-engines/love-0.7.2-r100:0.7 |
106 |
>=games-engines/love-0.8.0-r100:0.8 |
107 |
>=games-engines/love-11.3-r100:0 |