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: Tue, 25 May 2021 12:31:15
Message-Id: 1621945855.33676eddf27a5f21f21ffc40e70a9985ad3430bf.marecki@gentoo
1 commit: 33676eddf27a5f21f21ffc40e70a9985ad3430bf
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 25 10:44:44 2021 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue May 25 12:30:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33676edd
7
8 app-emulation/protontricks: add 1.5.1
9
10 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
11
12 app-emulation/protontricks/Manifest | 1 +
13 .../protontricks/protontricks-1.5.1.ebuild | 57 ++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/app-emulation/protontricks/Manifest b/app-emulation/protontricks/Manifest
17 index 718951a9497..725d3d5c481 100644
18 --- a/app-emulation/protontricks/Manifest
19 +++ b/app-emulation/protontricks/Manifest
20 @@ -1,2 +1,3 @@
21 DIST protontricks-1.4.3.tar.gz 43573 BLAKE2B 3a3050ba6e940182d81d98498a5558433ceaa4282f5a23fb93b3cfc299699381493eb2912c5f03bb6a8092be5c50b94bf7181208cda3d4c0f4c90c0f438f7f1b SHA512 7ca8c7c273d92f7c4526caaa8c9db6988c642913c33c6b6188d285d5cfbe30924533a9f024135865cdc1a25bd867ac00bd915b0a61417d17fe0e5ee451417e64
22 DIST protontricks-1.5.0.tar.gz 46957 BLAKE2B 622affd9a1bfff3a5cd76fa8e279f25b5c91a6f040b6cc4e5f42e58be08a232fad2be179a47e063b45b1b1bb11b6ae9ce26cce499f4c1dae460be0bb8247e619 SHA512 6df3e0dd638684e70a8d40b7440e2340765109e31dd47fa5e33e4959bc34d3ff4cfa70c8689cafdcce82f1d97ba6d25de724ca7439e5d1ffd634b729ab222716
23 +DIST protontricks-1.5.1.tar.gz 48111 BLAKE2B df7feaefd2ec1c058fa7190ec9c981bd480e5d36cf7a3e15868aa8e052857e69dc573559e35faf74d9d2f4a5549471cb0e8fc0be58ed2431890e37751c88cab8 SHA512 4b8d5d17a4bce8bd987c032f5a5ae689d1dcca4694463778398bb62b983afe6eee666aed891c810e852a9f873233b1822d21878464b25f07f8ab92e1777f3ff1
24
25 diff --git a/app-emulation/protontricks/protontricks-1.5.1.ebuild b/app-emulation/protontricks/protontricks-1.5.1.ebuild
26 new file mode 100644
27 index 00000000000..06e0a22ded6
28 --- /dev/null
29 +++ b/app-emulation/protontricks/protontricks-1.5.1.ebuild
30 @@ -0,0 +1,57 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +PYTHON_COMPAT=( python3_{7..10} pypy3 )
37 +DISTUTILS_SINGLE_IMPL=1
38 +DISTUTILS_USE_SETUPTOOLS=rdepend
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="app-emulation/winetricks wrapper for Proton (Steam Play) games"
43 +HOMEPAGE="https://github.com/Matoking/protontricks"
44 +SRC_URI="https://github.com/Matoking/${PN}/archive/${PV}.tar.gz -> ${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/vdf[${PYTHON_USEDEP}]
54 + ')
55 + gui? ( gnome-extra/zenity
56 + || (
57 + app-emulation/winetricks[gtk]
58 + app-emulation/winetricks[kde]
59 + )
60 + )"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${PN}-1.5.0_no-setuptools-scm.patch
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 + elog
77 +
78 + if ! use gui; then
79 + ewarn "Please note that disabling USE=gui does *not* presently remove the --gui command-line option,"
80 + ewarn "it just means using this option will fail unless gnome-extra/zenity happens to be installed."
81 + ewarn
82 + fi
83 +
84 + elog "Protontricks can only find games for which a Proton prefix already exists."
85 + elog "Make sure to run a Proton game at least once before trying to use protontricks on it."
86 + elog
87 +}