1 |
commit: 91f0a8ff5222df5e4d3f77b382854e400c114afc |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 4 20:19:24 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 20:47:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91f0a8ff |
7 |
|
8 |
games-emulation/zsnes: add 2.0.10 |
9 |
|
10 |
Remember kids, don't use zsnes. |
11 |
|
12 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
13 |
|
14 |
games-emulation/zsnes/Manifest | 1 + |
15 |
games-emulation/zsnes/zsnes-2.0.10.ebuild | 65 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 66 insertions(+) |
17 |
|
18 |
diff --git a/games-emulation/zsnes/Manifest b/games-emulation/zsnes/Manifest |
19 |
index eeb8097cf656..80fd70941d9b 100644 |
20 |
--- a/games-emulation/zsnes/Manifest |
21 |
+++ b/games-emulation/zsnes/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
+DIST zsnes-2.0.10.tar.gz 926347 BLAKE2B b9ab4701290ae802cb35045e0a3d4ff5268f96f7dc84614f39e950a6273a8477d5e2dca0598e3448744486de31caf692d44d36fe284f6f20697a5b4e92c908f8 SHA512 513e350198a944af47accedc6d3c14405898c753bb8168871d323c11f8c1253d8d7e247759a13e40a3b5eda195824e4862bb1fc093a3db9a75c8bb2e0bef728e |
24 |
DIST zsnes-2.0.9.tar.gz 935183 BLAKE2B a9b72ed15b2ed6d9e4631b4f12b2291ddca76a7236da008eba0f8b3ee27c94b98f00ff16a4929929adf484bc16554474b942b9f8306f46ab713e8a40e1f64624 SHA512 ea9244e98a175db9bceddf14e8212b3474ddaba1f508d698d8cfc43270fa3dabf51dca43dd30255272aba3cd061bf450bef04e005ce8087d550400e66faea565 |
25 |
|
26 |
diff --git a/games-emulation/zsnes/zsnes-2.0.10.ebuild b/games-emulation/zsnes/zsnes-2.0.10.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..38c0c2f51af8 |
29 |
--- /dev/null |
30 |
+++ b/games-emulation/zsnes/zsnes-2.0.10.ebuild |
31 |
@@ -0,0 +1,65 @@ |
32 |
+# Copyright 2021-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit desktop flag-o-matic multilib toolchain-funcs |
38 |
+ |
39 |
+DESCRIPTION="Fork of the classic Super Nintendo emulator" |
40 |
+HOMEPAGE="https://github.com/xyproto/zsnes/ https://www.zsnes.com/" |
41 |
+SRC_URI="https://github.com/xyproto/zsnes/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="GPL-2" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux" |
46 |
+IUSE="custom-cflags" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ media-libs/libglvnd[X,abi_x86_32(-)] |
50 |
+ media-libs/libpng:=[abi_x86_32(-)] |
51 |
+ media-libs/libsdl[abi_x86_32(-),joystick,opengl,sound,video] |
52 |
+ sys-libs/zlib:=[abi_x86_32(-)] |
53 |
+ x11-libs/libX11[abi_x86_32(-)]" |
54 |
+DEPEND=" |
55 |
+ ${RDEPEND} |
56 |
+ x11-base/xorg-proto" |
57 |
+BDEPEND=" |
58 |
+ dev-lang/nasm |
59 |
+ sys-libs/zlib |
60 |
+ virtual/pkgconfig" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}"/${PN}-2.0.9-cc-quotes.patch |
64 |
+ "${FILESDIR}"/${PN}-2.0.9-gentoo-zlib.patch |
65 |
+) |
66 |
+ |
67 |
+src_compile() { |
68 |
+ # Makefile forces many CFLAGS that are questionable, but zsnes' ancient x86 |
69 |
+ # asm is fragile, not pic safe (bug #427104), broken by F_S=3 (formerly |
70 |
+ # broken with =2 as well), and can be affected by -march=* and similar. |
71 |
+ # Stick to upstream's choices, this is non-portable either way. |
72 |
+ if use !custom-cflags; then |
73 |
+ strip-flags |
74 |
+ append-cppflags -U_FORTIFY_SOURCE # to disable =3, Makefile enables =2 |
75 |
+ fi |
76 |
+ |
77 |
+ # used to build and run parsegen at build time (uses zlib wrt BDEPEND) |
78 |
+ tc-export_build_env BUILD_CXX |
79 |
+ local buildcxx="${BUILD_CXX} ${BUILD_CXXFLAGS} ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS}" |
80 |
+ |
81 |
+ use amd64 && multilib_toolchain_setup x86 |
82 |
+ tc-export CC CXX |
83 |
+ append-cflags "${CPPFLAGS}" |
84 |
+ append-cxxflags "${CPPFLAGS}" |
85 |
+ |
86 |
+ emake CXX_HOST="${buildcxx}" |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install |
91 |
+ |
92 |
+ dodoc README.md TODO.md |
93 |
+ |
94 |
+ newicon icons/64x64x32.png ${PN}.png |
95 |
+ make_desktop_entry ${PN} ${PN^^} |
96 |
+} |