1 |
commit: 03b85469c5d73043a371077217bba2b8b228e699 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 20 10:04:28 2019 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 20 10:04:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03b85469 |
7 |
|
8 |
app-emulation/fs-uae-launcher: New package for launching fs-uae |
9 |
|
10 |
Closes: https://bugs.gentoo.org/403913 |
11 |
Package-Manager: Portage-2.3.64, Repoman-2.3.12 |
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
|
14 |
app-emulation/fs-uae-launcher/Manifest | 1 + |
15 |
.../files/fs-uae-launcher-2.8.3-German-ROMs.patch | 21 ++++++ |
16 |
.../fs-uae-launcher/fs-uae-launcher-2.8.3.ebuild | 76 ++++++++++++++++++++++ |
17 |
app-emulation/fs-uae-launcher/metadata.xml | 14 ++++ |
18 |
4 files changed, 112 insertions(+) |
19 |
|
20 |
diff --git a/app-emulation/fs-uae-launcher/Manifest b/app-emulation/fs-uae-launcher/Manifest |
21 |
new file mode 100644 |
22 |
index 00000000000..694c0d62d89 |
23 |
--- /dev/null |
24 |
+++ b/app-emulation/fs-uae-launcher/Manifest |
25 |
@@ -0,0 +1 @@ |
26 |
+DIST fs-uae-launcher-2.8.3.tar.gz 8784242 BLAKE2B e54f73efde6563d9e4ab6b4f57cc73bca80d72d0ded4db67edc53dc344685889abf485df067541e8d635595ac5457ec456ded0306310b1ad95a3b3ef07e53bc3 SHA512 4eaa5979fe2e8f2c792d4878e9a9ad0a0433206aac42aa380d97aee21e4ba29a54caced2437b83357c2c4d2fab121bfb821fdb8a883ead971766866b02067a2d |
27 |
|
28 |
diff --git a/app-emulation/fs-uae-launcher/files/fs-uae-launcher-2.8.3-German-ROMs.patch b/app-emulation/fs-uae-launcher/files/fs-uae-launcher-2.8.3-German-ROMs.patch |
29 |
new file mode 100644 |
30 |
index 00000000000..41843d5230f |
31 |
--- /dev/null |
32 |
+++ b/app-emulation/fs-uae-launcher/files/fs-uae-launcher-2.8.3-German-ROMs.patch |
33 |
@@ -0,0 +1,21 @@ |
34 |
+--- a/fsgs/amiga/roms.py 2017-07-06 16:50:33.351036624 +0200 |
35 |
++++ b/fsgs/amiga/roms.py 2017-07-06 16:52:58.335040977 +0200 |
36 |
+@@ -11,6 +11,8 @@ |
37 |
+ # Kickstart v1.3 r34.5 (1987)(Commodore)(A500-A1000-A2000-CDTV)[!] |
38 |
+ # Kickstart v1.3 r34.5 (1987)(Commodore)(A500-A1000-A2000-CDTV)[o] (patch) |
39 |
+ "891e9a547772fe0c6c19b610baf8bc4ea7fcb785", |
40 |
++ # kick13.rom - from Upgrade Commodore Amiga 500 (1989) |
41 |
++ "90933936cce43ca9bc6bf375662c076b27e3c458", |
42 |
+ ] |
43 |
+ |
44 |
+ A500P_KICKSTARTS = [ |
45 |
+@@ -55,6 +57,9 @@ |
46 |
+ |
47 |
+ # Kickstart v3.1 r40.68 (1993)(Commodore)(A4000)[h Cloanto] |
48 |
+ # "c3c481160866e60d085e436a24db3617ff60b5f9", |
49 |
++ |
50 |
++ # Kickstart v3.1 r40.10 (15.7.93) from german A4000 |
51 |
++ "3b7f1493b27e212830f989f26ca76c02049f09ca", |
52 |
+ ] |
53 |
+ |
54 |
+ CD32_KICKSTARTS = [ |
55 |
|
56 |
diff --git a/app-emulation/fs-uae-launcher/fs-uae-launcher-2.8.3.ebuild b/app-emulation/fs-uae-launcher/fs-uae-launcher-2.8.3.ebuild |
57 |
new file mode 100644 |
58 |
index 00000000000..8a1bab4b457 |
59 |
--- /dev/null |
60 |
+++ b/app-emulation/fs-uae-launcher/fs-uae-launcher-2.8.3.ebuild |
61 |
@@ -0,0 +1,76 @@ |
62 |
+# Copyright 1999-2019 Gentoo Authors |
63 |
+# Distributed under the terms of the GNU General Public License v2 |
64 |
+ |
65 |
+EAPI=7 |
66 |
+ |
67 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
68 |
+DISTUTILS_SINGLE_IMPL=1 |
69 |
+ |
70 |
+inherit distutils-r1 xdg-utils |
71 |
+ |
72 |
+DESCRIPTION="PyQt5-based launcher for FS-UAE" |
73 |
+HOMEPAGE="https://fs-uae.net/" |
74 |
+SRC_URI="https://fs-uae.net/stable/${PV}/${P}.tar.gz" |
75 |
+LICENSE="GPL-2" |
76 |
+SLOT="0" |
77 |
+KEYWORDS="~amd64" |
78 |
+IUSE="lha" |
79 |
+ |
80 |
+RDEPEND=" |
81 |
+ app-emulation/fs-uae |
82 |
+ dev-python/pyopengl[${PYTHON_USEDEP}] |
83 |
+ dev-python/PyQt5[${PYTHON_USEDEP},gui] |
84 |
+ dev-python/six[${PYTHON_USEDEP}] |
85 |
+ lha? ( dev-python/python-lhafile[${PYTHON_USEDEP}] ) |
86 |
+" |
87 |
+ |
88 |
+DEPEND=" |
89 |
+ sys-devel/gettext |
90 |
+" |
91 |
+ |
92 |
+PATCHES=( |
93 |
+ "${FILESDIR}"/${P}-German-ROMs.patch |
94 |
+) |
95 |
+ |
96 |
+src_prepare() { |
97 |
+ default |
98 |
+ |
99 |
+ # Unbundle some libraries. Keep oyoyo IRC library because upstream |
100 |
+ # is long dead and it's not worth packaging separately. |
101 |
+ rm -r {OpenGL,six}/ || die |
102 |
+ sed -i -r "/OpenGL|six/d" setup.py || die |
103 |
+} |
104 |
+ |
105 |
+src_compile() { |
106 |
+ emake |
107 |
+} |
108 |
+ |
109 |
+src_install() { |
110 |
+ local dir=${EPREFIX}/usr/share/${PN} |
111 |
+ distutils-r1_python_install --install-lib="${dir}" --install-scripts="${dir}" |
112 |
+ dosym ../share/${PN}/${PN} /usr/bin/${PN} |
113 |
+ |
114 |
+ emake install-data DESTDIR="${D}" prefix="${EPREFIX}"/usr |
115 |
+ mv "${ED}"/usr/share/doc/{${PN},${PF}} || die |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ elog "Some important information:" |
120 |
+ elog |
121 |
+ ewarn " - Do not use QtCurve, it will crash PyQt5!" |
122 |
+ elog |
123 |
+ elog " - By default, FS-UAE creates its directories under Documents/FS-UAE." |
124 |
+ elog " If your Documents directory is not configured according to the XDG" |
125 |
+ elog " user diretory spec, ~/FS-UAE will be used as a fallback." |
126 |
+ elog |
127 |
+ elog " - You can override this by putting the path to the desired base" |
128 |
+ elog " directory in a special config file. The config file will be read" |
129 |
+ elog " from ~/.config/fs-uae/base-dir by both FS-UAE and FS-UAE Launcher" |
130 |
+ elog " if it exists." |
131 |
+ elog |
132 |
+ elog " Alternatively, you can start FS-UAE and/or FS-UAE Launcher with" |
133 |
+ elog " --base-dir=/path/to/desired/dir" |
134 |
+} |
135 |
+ |
136 |
+pkg_postinst() { xdg_icon_cache_update; } |
137 |
+pkg_postrm() { xdg_icon_cache_update; } |
138 |
|
139 |
diff --git a/app-emulation/fs-uae-launcher/metadata.xml b/app-emulation/fs-uae-launcher/metadata.xml |
140 |
new file mode 100644 |
141 |
index 00000000000..84e4eb59046 |
142 |
--- /dev/null |
143 |
+++ b/app-emulation/fs-uae-launcher/metadata.xml |
144 |
@@ -0,0 +1,14 @@ |
145 |
+<?xml version="1.0" encoding="UTF-8"?> |
146 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
147 |
+<pkgmetadata> |
148 |
+ <maintainer type="person"> |
149 |
+ <email>chewi@g.o</email> |
150 |
+ <name>James Le Cuirot</name> |
151 |
+ </maintainer> |
152 |
+ <upstream> |
153 |
+ <remote-id type="github">FrodeSolheim/fs-uae-launcher</remote-id> |
154 |
+ </upstream> |
155 |
+ <use> |
156 |
+ <flag name="lha">Enable LHA archive support</flag> |
157 |
+ </use> |
158 |
+</pkgmetadata> |