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