Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/protontricks/
Date: Wed, 21 Sep 2022 23:54:40
Message-Id: 1663804444.a8205b116e6ae3177624a04f0047490bb3aa6534.marecki@gentoo
1 commit: a8205b116e6ae3177624a04f0047490bb3aa6534
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 21 21:51:05 2022 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 21 23:54:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8205b11
7
8 app-emulation/protontricks: add 1.9.2
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 app-emulation/protontricks/Manifest | 1 +
13 .../protontricks/protontricks-1.9.2.ebuild | 63 ++++++++++++++++++++++
14 2 files changed, 64 insertions(+)
15
16 diff --git a/app-emulation/protontricks/Manifest b/app-emulation/protontricks/Manifest
17 index e5bdbab14967..447d35b8b7a2 100644
18 --- a/app-emulation/protontricks/Manifest
19 +++ b/app-emulation/protontricks/Manifest
20 @@ -1,2 +1,3 @@
21 DIST protontricks-1.9.0.tar.gz 154202 BLAKE2B e998bd899ec953ed7ee0bb0f3944da0212b71f2d0eef6c6996040e4d9c607f7bc73b52df4cbc6a70480b308473fa8c0978415a6202f498247bf91662761adf5c SHA512 43ffd2a5cd4d58c44696a2a66da0223a93d553822fdc92a476c661d69f7522d2aef12787bfc33610751bc1171fb1a3da169e3d40a2b60863a9f37ed205771835
22 DIST protontricks-1.9.1.tar.gz 158292 BLAKE2B 0825fb03bb05604482c893e7dc399bf0223d76a29eff86f0dd407d89cc8f5b39e8fcfec752a2979a3127921dbdb6dc3d186cc61b53f96c544e9b1526ec5e2246 SHA512 85ab3b1f3d5ff73eee7a8bae2021409443e2f82414f42cfa03646415e53a76e0b853ff1a99cb2d5eed512833ac7a60a2718095161aa56864ca83fe9901786881
23 +DIST protontricks-1.9.2.tar.gz 158505 BLAKE2B ea4bc39d835d28c3f1ba50fa64d9a646ec9ef535b7369517b77bccaceb62cb922bed8844a8a4ea1d4561e248e302628379326a4760b25ac24411e679d018cee0 SHA512 75158c5a8a86edaafcb5be1b01053db91e45754488db0febe026ef0cbfbbb67fa6f3f17d60fec997c6dd19a73245ee408bd2220e09a3983ccd253e6e4c10457d
24
25 diff --git a/app-emulation/protontricks/protontricks-1.9.2.ebuild b/app-emulation/protontricks/protontricks-1.9.2.ebuild
26 new file mode 100644
27 index 000000000000..d33c17e8e46a
28 --- /dev/null
29 +++ b/app-emulation/protontricks/protontricks-1.9.2.ebuild
30 @@ -0,0 +1,63 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +DISTUTILS_SINGLE_IMPL=1
38 +DISTUTILS_USE_PEP517=setuptools
39 +
40 +inherit distutils-r1 xdg-utils
41 +
42 +DESCRIPTION="app-emulation/winetricks wrapper for Proton (Steam Play) games"
43 +HOMEPAGE="https://github.com/Matoking/protontricks"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE="+gui"
50 +
51 +RDEPEND="app-emulation/winetricks
52 + $(python_gen_cond_dep '
53 + dev-python/setuptools[${PYTHON_USEDEP}]
54 + dev-python/vdf[${PYTHON_USEDEP}]
55 + ')
56 + gui? ( gnome-extra/zenity
57 + || (
58 + app-emulation/winetricks[gtk]
59 + app-emulation/winetricks[kde]
60 + )
61 + )"
62 +BDEPEND="$(python_gen_cond_dep '
63 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
64 +')"
65 +
66 +DOCS=( CHANGELOG.md README.md )
67 +
68 +distutils_enable_tests pytest
69 +
70 +python_prepare_all() {
71 + distutils-r1_python_prepare_all
72 + echo "version = '${PV}'" > "${S}"/src/${PN}/_version.py || die "Failed to generate the version file"
73 +}
74 +
75 +pkg_postinst() {
76 + xdg_desktop_database_update
77 +
78 + elog
79 +
80 + if ! use gui; then
81 + ewarn "Please note that disabling USE=gui does *not* presently remove the --gui command-line option,"
82 + ewarn "it just means using this option will fail unless gnome-extra/zenity happens to be installed."
83 + ewarn
84 + fi
85 +
86 + elog "Protontricks can only find games for which a Proton prefix already exists."
87 + elog "Make sure to run a Proton game at least once before trying to use protontricks on it."
88 + elog
89 +}
90 +
91 +pkg_postrm() {
92 + xdg_desktop_database_update
93 +}