commit:     e18d138658d27755382ad3c2ef1ff7a0338be788
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 12 08:51:54 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Apr 12 09:08:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e18d1386

games-util/lutris: add 0.5.10

- update LICENSE

Bug: https://bugs.gentoo.org/706432

- add vulkan-loader optfeature

Closes: https://bugs.gentoo.org/835830

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 games-util/lutris/Manifest             |  1 +
 games-util/lutris/lutris-0.5.10.ebuild | 87 ++++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+)

diff --git a/games-util/lutris/Manifest b/games-util/lutris/Manifest
index c2c55885295b..ba0e25bdd735 100644
--- a/games-util/lutris/Manifest
+++ b/games-util/lutris/Manifest
@@ -1,2 +1,3 @@
 DIST lutris-0.5.10_beta2.tar.gz 1006201 BLAKE2B 
39a87735408639070ef21182adf23ae816a14aeb0d6acf6e36f67bc213ca21559374cc02f0ca696b65eda20b76f33240a7f15d74bca6c3852641d0827737e96c
 SHA512 
0dd0896be70c8902aa09b8bb0e45e516c8631f82a5451e15b3eaf932a5881bccd1189b5564c4cc544fb4eb1ec902cbae887618f5edda0e13d23a19dd0b71dba7
+DIST lutris_0.5.10.tar.xz 1225880 BLAKE2B 
bd46531695860c60a4b94c7bc1f4366bb6f5a9d4a098e0eff69f85e9edee0d551b6f55276a4ae48fb28e75a706da526dfaf7fbcf17af8ebbee6e809f6f39825f
 SHA512 
cb77afe40f1ceb053edf8aaa4f97fd44f0c8ecc33450a16b83373408807891d99bd409cf26d98543a0789a5dc38475d584790de1d48e0e56762945a7b6ca63e3
 DIST lutris_0.5.9.1.tar.xz 1046920 BLAKE2B 
469e7707e74d957be3bb0f5f1caeaeaaf7c01dc3b998c16d8be4b4b780e408763bbe0df5c0b5f6a53ebcb3eb478aaaf25f9cf16437ae682dfcd1d2213222fa18
 SHA512 
a94e37d1a3f5b80353af38900f3e67763af9c0e3cc3013f7998e23ff70cb6f329730b1802f996866dac541af6e50388a5308c772e3a2ee97f87e5ae60878e7e7

diff --git a/games-util/lutris/lutris-0.5.10.ebuild 
b/games-util/lutris/lutris-0.5.10.ebuild
new file mode 100644
index 000000000000..ba883a7fe92a
--- /dev/null
+++ b/games-util/lutris/lutris-0.5.10.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="sqlite,threads(+)"
+DISTUTILS_SINGLE_IMPL="1"
+
+inherit distutils-r1 optfeature virtualx xdg
+
+DESCRIPTION="An open source gaming platform for GNU/Linux"
+HOMEPAGE="https://lutris.net/";
+
+if [[ ${PV} == *9999* ]] ; then
+       EGIT_REPO_URI="https://github.com/lutris/lutris.git";
+       inherit git-r3
+else
+       if [[ ${PV} == *_beta* ]] ; then
+               
SRC_URI="https://github.com/lutris/lutris/archive/refs/tags/v${PV/_/-}.tar.gz 
-> ${P}.tar.gz"
+               S="${WORKDIR}"/${P/_/-}
+       else
+               SRC_URI="https://lutris.net/releases/${P/-/_}.tar.xz";
+               S="${WORKDIR}/${PN}"
+               KEYWORDS="~amd64 ~x86"
+       fi
+fi
+
+LICENSE="GPL-3+ CC0-1.0"
+SLOT="0"
+
+RDEPEND="
+       app-arch/cabextract
+       app-arch/p7zip
+       app-arch/unzip
+       $(python_gen_cond_dep '
+               dev-python/dbus-python[${PYTHON_USEDEP}]
+               dev-python/lxml[${PYTHON_USEDEP}]
+               dev-python/pillow[${PYTHON_USEDEP}]
+               dev-python/pygobject:3[${PYTHON_USEDEP}]
+               dev-python/python-evdev[${PYTHON_USEDEP}]
+               dev-python/python-magic[${PYTHON_USEDEP}]
+               dev-python/pyyaml[${PYTHON_USEDEP}]
+               dev-python/requests[${PYTHON_USEDEP}]
+       ')
+       gnome-base/gnome-desktop:3[introspection]
+       media-sound/fluid-soundfont
+       net-libs/libsoup
+       net-libs/webkit-gtk:4[introspection]
+       x11-apps/mesa-progs
+       x11-apps/xgamma
+       x11-apps/xrandr
+       x11-libs/gtk+:3[introspection]
+       x11-libs/gdk-pixbuf[jpeg]
+       x11-libs/libnotify[introspection]
+"
+
+distutils_enable_tests pytest
+
+DOCS=( AUTHORS README.rst docs/installers.rst docs/steam.rst )
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.5.9.1-avoid-gtk-4.0-already-loaded-testerror.patch"
+       "${FILESDIR}/${PN}-0.5.9-choose-amdgpu-pro-vulkan-driver.patch"
+)
+
+python_test() {
+       virtx epytest
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+       python_fix_shebang "${ED}/usr/share/lutris/bin/lutris-wrapper" #740048
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+
+       optfeature "running windows games through wine+DXVK/proton or other 
Vulkan games (plus ICD for your hardware)" media-libs/vulkan-loader
+
+       # Quote README.rst
+       elog ""
+       elog "Lutris installations are fully automated through scripts, which 
can"
+       elog "be written in either JSON or YAML. The scripting syntax is 
described"
+       elog "in ${EROOT}/usr/share/doc/${PF}/installers.rst.bz2, and is also"
+       elog "available online at lutris.net."
+}

Reply via email to