1 |
commit: 1ee2e3ab4d35245df01218a2594ece4d35312a05 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 29 12:19:20 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 29 13:06:31 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ee2e3ab |
7 |
|
8 |
games-emulation/stella: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
games-emulation/stella/stella-4.7.2-r1.ebuild | 69 +++++++++++++++++++++++++++ |
13 |
1 file changed, 69 insertions(+) |
14 |
|
15 |
diff --git a/games-emulation/stella/stella-4.7.2-r1.ebuild b/games-emulation/stella/stella-4.7.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..1412860717c |
18 |
--- /dev/null |
19 |
+++ b/games-emulation/stella/stella-4.7.2-r1.ebuild |
20 |
@@ -0,0 +1,69 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+inherit desktop gnome2-utils |
26 |
+ |
27 |
+DESCRIPTION="Stella Atari 2600 VCS Emulator" |
28 |
+HOMEPAGE="http://stella.sourceforge.net/" |
29 |
+SRC_URI="mirror://sourceforge/stella/${P}-src.tar.xz" |
30 |
+ |
31 |
+LICENSE="GPL-2+ BSD" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+IUSE="joystick" |
35 |
+ |
36 |
+RDEPEND=" |
37 |
+ media-libs/libsdl2[joystick?,opengl,video] |
38 |
+ media-libs/libpng:0= |
39 |
+ sys-libs/zlib |
40 |
+" |
41 |
+DEPEND="${RDEPEND}" |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ default |
45 |
+ sed -i \ |
46 |
+ -e '/INSTALL/s/-s //' \ |
47 |
+ -e '/STRIP/d' \ |
48 |
+ -e "/icons/d" \ |
49 |
+ -e '/INSTALL.*DOCDIR/d' \ |
50 |
+ -e '/INSTALL.*\/applications/d' \ |
51 |
+ -e '/CXXFLAGS+=/s/-fomit-frame-pointer//' \ |
52 |
+ Makefile || die |
53 |
+} |
54 |
+ |
55 |
+src_configure() { |
56 |
+ # not an autoconf script |
57 |
+ ./configure \ |
58 |
+ --prefix="/usr" \ |
59 |
+ --bindir="/usr/bin" \ |
60 |
+ --docdir="/usr/share/doc/${PF}" \ |
61 |
+ --datadir="/usr/share" \ |
62 |
+ $(use_enable joystick) \ |
63 |
+ || die |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ local i |
68 |
+ |
69 |
+ DOCS="Announce.txt Changes.txt Copyright.txt README-SDL.txt Readme.txt Todo.txt" \ |
70 |
+ default |
71 |
+ |
72 |
+ for i in 16 22 24 32 48 64 128 ; do |
73 |
+ newicon -s ${i} src/common/stella-${i}x${i}.png stella.png |
74 |
+ done |
75 |
+ domenu src/unix/stella.desktop |
76 |
+ HTML_DOCS="docs/*" einstalldocs |
77 |
+} |
78 |
+ |
79 |
+pkg_preinst() { |
80 |
+ gnome2_icon_savelist |
81 |
+} |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ gnome2_icon_cache_update |
85 |
+} |
86 |
+ |
87 |
+pkg_postrm() { |
88 |
+ gnome2_icon_cache_update |
89 |
+} |