1 |
commit: 2b68c46e3574a74e55d377fa47e68ca3c7c931e3 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 4 09:55:08 2021 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 4 11:45:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b68c46e |
7 |
|
8 |
games-emulation/stella: add 6.5.3 |
9 |
|
10 |
Most old ebuild workarounds haven't been needed for some time. |
11 |
|
12 |
Simplified, EAPI 8, prefix support, xdg eclass, and png/zlib IUSE. |
13 |
|
14 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
15 |
|
16 |
games-emulation/stella/Manifest | 1 + |
17 |
games-emulation/stella/stella-6.5.3.ebuild | 58 ++++++++++++++++++++++++++++++ |
18 |
2 files changed, 59 insertions(+) |
19 |
|
20 |
diff --git a/games-emulation/stella/Manifest b/games-emulation/stella/Manifest |
21 |
index 7736606d3b5..3dd6eea9941 100644 |
22 |
--- a/games-emulation/stella/Manifest |
23 |
+++ b/games-emulation/stella/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST stella-6.5.2-src.tar.xz 6220652 BLAKE2B 8bb51ff15b28436eb83b918ca6123956482e4342c4f9560dcea608a856899a65176c9012146d1a2affe22ee0a589e945424e897853890e23ff503d97b893e32f SHA512 dc7685fd166fad578bce62c961419755db7c4b8ac6e6e2e10f0edfa3b0f63bf43d64119483cc47fc86dfe95e09bc800c27392239aeb68a2ccf37d0f224d6493c |
26 |
+DIST stella-6.5.3-src.tar.xz 6221588 BLAKE2B 1cee75cd27c14db5a2eaf3a6d88af5b3d081c2577afd4b46b27ef33dd11d676cd5fe981d8ae918373b16d7f50e0151a9e0fc00765fb39370ea50f8322a90b963 SHA512 67fe45c0be510494e4c3ead91ee5f7c9a8ba7059b76beb15e794ef49144c8f0fb57d7c7476f4f299e573e37ea1c41f2fb094ca10974f3bcda797fc69c9bd2986 |
27 |
|
28 |
diff --git a/games-emulation/stella/stella-6.5.3.ebuild b/games-emulation/stella/stella-6.5.3.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..0834d742503 |
31 |
--- /dev/null |
32 |
+++ b/games-emulation/stella/stella-6.5.3.ebuild |
33 |
@@ -0,0 +1,58 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+inherit toolchain-funcs xdg |
40 |
+ |
41 |
+DESCRIPTION="Multi-platform Atari 2600 VCS Emulator" |
42 |
+HOMEPAGE="https://stella-emu.github.io" |
43 |
+SRC_URI="https://github.com/stella-emu/stella/releases/download/${PV}/${P}-src.tar.xz" |
44 |
+ |
45 |
+LICENSE="BSD GPL-2+ MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="+joystick png zlib" |
49 |
+REQUIRED_USE="png? ( zlib )" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ media-libs/libsdl2[joystick?,opengl,sound,video] |
53 |
+ png? ( media-libs/libpng:= ) |
54 |
+ zlib? ( sys-libs/zlib:= )" |
55 |
+DEPEND="${RDEPEND}" |
56 |
+ |
57 |
+DOCS=( |
58 |
+ Announce.txt Changes.txt README-SDL.txt |
59 |
+ Readme.txt docs/R77_readme.txt Todo.txt |
60 |
+) |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ default |
64 |
+ |
65 |
+ sed -i '/CXXFLAGS+=/s/-fomit-frame-pointer//' Makefile || die |
66 |
+} |
67 |
+ |
68 |
+src_configure() { |
69 |
+ tc-export CC CXX |
70 |
+ |
71 |
+ # not an autotools generated script |
72 |
+ local configure=( |
73 |
+ ./configure |
74 |
+ --host=${CHOST} |
75 |
+ --prefix="${EPREFIX}"/usr |
76 |
+ --docdir="${EPREFIX}"/usr/share/doc/${PF}/html |
77 |
+ $(use_enable joystick) |
78 |
+ $(use_enable png) |
79 |
+ $(use_enable zlib zip) |
80 |
+ ${EXTRA_ECONF} |
81 |
+ ) |
82 |
+ |
83 |
+ echo ${configure[*]} |
84 |
+ "${configure[@]}" || die |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ default |
89 |
+ |
90 |
+ rm "${ED}"/usr/share/doc/${PF}/html/*.txt || die |
91 |
+} |