1 |
commit: 3e26dd9088a0c10ba11063d0b6b8eaf61fa6b347 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 16 11:42:40 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 16 11:42:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e26dd90 |
7 |
|
8 |
app-emulation/fs-uae-launcher: Version bump to 3.1.26, EAPI 8 |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
|
12 |
app-emulation/fs-uae-launcher/Manifest | 1 + |
13 |
.../fs-uae-launcher/fs-uae-launcher-3.1.26.ebuild | 80 ++++++++++++++++++++++ |
14 |
2 files changed, 81 insertions(+) |
15 |
|
16 |
diff --git a/app-emulation/fs-uae-launcher/Manifest b/app-emulation/fs-uae-launcher/Manifest |
17 |
index 1513151a076..72da2875332 100644 |
18 |
--- a/app-emulation/fs-uae-launcher/Manifest |
19 |
+++ b/app-emulation/fs-uae-launcher/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST fs-uae-launcher-3.0.5.tar.gz 9633819 BLAKE2B 8ce627302244bbd7d174f28c0dad345699942429c1109a7408c88412f6bb0e3e5d765e6c51abf2b95837a83261023b4f9c58d65892e58043889be8dc5e4cb759 SHA512 1a6700c56a14edce86ffbefee7494117af067da8b1dbc22937a36641ccb90927a3bbb011d15a891388bf08378aa623e00a2d45dbc49e822a5a569e110843add5 |
22 |
+DIST fs-uae-launcher-3.1.26.tar.gz 9656516 BLAKE2B 1b8d12ef91631dedf412976e81529ac7138b7f688ad6ae1ad55bfd3625590ee00aab89d229d2aa64eec577d291a6e634362c557428534c355fdb39e878f40253 SHA512 0e4e542bebfe2d8f862005c016fe70319dd6c5e1e413be9b0ce0421bb95253ba6eb92337989cc86210094b9b02a6ad86da4725f1a65d50673703fa6c6cb58f37 |
23 |
|
24 |
diff --git a/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.26.ebuild b/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.26.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..537313395f8 |
27 |
--- /dev/null |
28 |
+++ b/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.26.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8,9} ) |
36 |
+DISTUTILS_SINGLE_IMPL=1 |
37 |
+DISTUTILS_USE_SETUPTOOLS=no |
38 |
+ |
39 |
+inherit distutils-r1 xdg |
40 |
+ |
41 |
+DESCRIPTION="PyQt5-based launcher for FS-UAE" |
42 |
+HOMEPAGE="https://fs-uae.net/" |
43 |
+SRC_URI="https://github.com/FrodeSolheim/fs-uae-launcher/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="lha" |
48 |
+RETRICT="test" # The test files are just boilerplate. |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ app-emulation/fs-uae |
52 |
+ $(python_gen_cond_dep ' |
53 |
+ dev-python/PyQt5[${PYTHON_USEDEP},declarative,gui,network,opengl,widgets] |
54 |
+ dev-python/pyopengl[${PYTHON_USEDEP}] |
55 |
+ dev-python/requests[${PYTHON_USEDEP}] |
56 |
+ lha? ( dev-python/python-lhafile[${PYTHON_USEDEP}] ) |
57 |
+ ') |
58 |
+" |
59 |
+ |
60 |
+BDEPEND=" |
61 |
+ sys-devel/gettext |
62 |
+" |
63 |
+ |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}"/${PN}-3.0.0-ROMs.patch |
66 |
+) |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ python bootstrap |
71 |
+ |
72 |
+ # Unbundle OpenGL library. Keep oyoyo IRC library because upstream |
73 |
+ # is long dead and it's not worth packaging separately. |
74 |
+ rm -r OpenGL/ || die |
75 |
+ sed -i -r "/OpenGL/d" setup.py || die |
76 |
+} |
77 |
+ |
78 |
+python_compile_all() { |
79 |
+ emake |
80 |
+} |
81 |
+ |
82 |
+python_install() { |
83 |
+ local dir=${EPREFIX}/usr/share/${PN} |
84 |
+ distutils-r1_python_install --install-lib="${dir}" --install-scripts="${dir}" |
85 |
+} |
86 |
+ |
87 |
+python_install_all() { |
88 |
+ dosym ../share/${PN}/${PN} /usr/bin/${PN} |
89 |
+ emake install-data DESTDIR="${D}" prefix="${EPREFIX}"/usr |
90 |
+ mv "${ED}"/usr/share/doc/{${PN},${PF}} || die |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ elog "Some important information:" |
95 |
+ elog |
96 |
+ ewarn " - Do not use QtCurve, it will crash PyQt5!" |
97 |
+ elog |
98 |
+ elog " - By default, FS-UAE creates its directories under Documents/FS-UAE." |
99 |
+ elog " If your Documents directory is not configured according to the XDG" |
100 |
+ elog " user diretory spec, ~/FS-UAE will be used as a fallback." |
101 |
+ elog |
102 |
+ elog " - You can override this by putting the path to the desired base" |
103 |
+ elog " directory in a special config file. The config file will be read" |
104 |
+ elog " from ~/.config/fs-uae/base-dir by both FS-UAE and FS-UAE Launcher" |
105 |
+ elog " if it exists." |
106 |
+ elog |
107 |
+ elog " Alternatively, you can start FS-UAE and/or FS-UAE Launcher with" |
108 |
+ elog " --base-dir=/path/to/desired/dir" |
109 |
+} |