diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-01-04 01:27:12 +0000 |
commit | 3517852e3b8a68d1e997770fc0650c5053bafc6c (patch) | |
tree | 44068672445b1418489aed82de58df3c470289e7 /app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild | |
parent | 0f15659d48c193027158492acb726297501202c5 (diff) |
gentoo resync : 04.01.2022
Diffstat (limited to 'app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild')
-rw-r--r-- | app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild b/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild new file mode 100644 index 000000000000..79ca9670131e --- /dev/null +++ b/app-emulation/fs-uae-launcher/fs-uae-launcher-3.1.66.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS=no + +inherit distutils-r1 xdg + +DESCRIPTION="PyQt5-based launcher for FS-UAE" +HOMEPAGE="https://fs-uae.net/" +SRC_URI="https://fs-uae.net/files/FS-UAE-Launcher/Stable/${PV}/${P}.tar.xz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="lha" +RESTRICT="test" # The test files are just boilerplate. + +RDEPEND=" + app-emulation/fs-uae + $(python_gen_cond_dep ' + dev-python/PyQt5[${PYTHON_USEDEP},declarative,gui,network,opengl,widgets] + dev-python/pyopengl[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + lha? ( dev-python/python-lhafile[${PYTHON_USEDEP}] ) + ') +" + +BDEPEND=" + sys-devel/gettext +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.0.0-ROMs.patch +) + +python_compile_all() { + emake +} + +python_install() { + local dir=${EPREFIX}/usr/share/${PN} + distutils-r1_python_install --install-lib="${dir}" --install-scripts="${dir}" +} + +python_install_all() { + dosym ../share/${PN}/${PN} /usr/bin/${PN} + emake install-data DESTDIR="${D}" prefix="${EPREFIX}"/usr + mv "${ED}"/usr/share/doc/{${PN},${PF}} || die +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "Some important information:" + elog + ewarn " - Do not use QtCurve, it will crash PyQt5!" + elog + elog " - By default, FS-UAE creates its directories under Documents/FS-UAE." + elog " If your Documents directory is not configured according to the XDG" + elog " user diretory spec, ~/FS-UAE will be used as a fallback." + elog + elog " - You can override this by putting the path to the desired base" + elog " directory in a special config file. The config file will be read" + elog " from ~/.config/fs-uae/base-dir by both FS-UAE and FS-UAE Launcher" + elog " if it exists." + elog + elog " Alternatively, you can start FS-UAE and/or FS-UAE Launcher with" + elog " --base-dir=/path/to/desired/dir" +} |