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: Fri, 28 Feb 2020 16:14:23
Message-Id: 1582906443.421fbe56c1acd56822acb4d05725a40b417a5e11.marecki@gentoo
1 commit: 421fbe56c1acd56822acb4d05725a40b417a5e11
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 28 16:03:28 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 28 16:14:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421fbe56
7
8 app-emulation/protontricks: bump to 1.4.1
9
10 protontricks now have a setup-time dependency on
11 dev-python/setuptools_scm, which means we have to use use release
12 tarballs from PyPI rather than from GitHub - the latter cause builds to
13 fail with
14
15 LookupError: setuptools-scm was unable to detect version for '/.../app-emulation/protontricks-1.4.1/work/protontricks-1.4.1'.
16 Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.
17
18 The upshot of the above is that we can no longer run tests because
19 the necessary files are not included in PyPI tarballs.
20
21 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
22
23 app-emulation/protontricks/Manifest | 1 +
24 .../protontricks/protontricks-1.4.1.ebuild | 52 ++++++++++++++++++++++
25 2 files changed, 53 insertions(+)
26
27 diff --git a/app-emulation/protontricks/Manifest b/app-emulation/protontricks/Manifest
28 index a4be8ea3ec9..5f50d4722eb 100644
29 --- a/app-emulation/protontricks/Manifest
30 +++ b/app-emulation/protontricks/Manifest
31 @@ -1 +1,2 @@
32 DIST protontricks-1.3.1.tar.gz 57784 BLAKE2B ed013367a2cc2384e4340379e2c23999a556ed26920ad59dfd7a8f773e490ee76e253a5fe3216e651cdcdb3e225a2e394255500c611d24f6bf9029582d55bb1f SHA512 4e33334e219db2e6679b430ee42408529478834c80c7da3b9bece4756eb27b9331d49a6a884de8a7ced5ec29d78ce831fee4cfbf6d5adcd750666b7e7a1e5607
33 +DIST protontricks-1.4.1.tar.gz 31838 BLAKE2B b8c94a1b96fa7df14eaf1cc6d11cb96e43ae4e8c7bd232687a50cae9c79cf2d0e7864b1af0e1dc4cc20086952e1fcefeb16cb71a9c3a977f6feafad1b17d6857 SHA512 7635c9830afa3c64617514cd86edc7d7f9f33e6e81a1da995ec8bee70adc1cf8b5d9de92036c372134e408d735615b267b46a9afc9246f14ff161cb2ee1fc8f9
34
35 diff --git a/app-emulation/protontricks/protontricks-1.4.1.ebuild b/app-emulation/protontricks/protontricks-1.4.1.ebuild
36 new file mode 100644
37 index 00000000000..cebf432ce73
38 --- /dev/null
39 +++ b/app-emulation/protontricks/protontricks-1.4.1.ebuild
40 @@ -0,0 +1,52 @@
41 +# Copyright 1999-2020 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=7
45 +
46 +PYTHON_COMPAT=( python3_{6,7,8} )
47 +
48 +DISTUTILS_SINGLE_IMPL=1
49 +inherit distutils-r1
50 +
51 +DESCRIPTION="app-emulation/winetricks wrapper for Proton (Steam Play) games"
52 +HOMEPAGE="https://github.com/Matoking/protontricks"
53 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
54 +
55 +LICENSE="GPL-3"
56 +SLOT="0"
57 +KEYWORDS="~amd64"
58 +IUSE="+gui"
59 +
60 +BDEPEND="${PYTHON_DEPS}
61 + dev-python/setuptools_scm"
62 +RDEPEND="${PYTHON_DEPS}
63 + app-emulation/winetricks
64 + $(python_gen_cond_dep '
65 + dev-python/vdf[${PYTHON_MULTI_USEDEP}]
66 + ')
67 + gui? ( gnome-extra/zenity
68 + || (
69 + app-emulation/winetricks[gtk]
70 + app-emulation/winetricks[kde]
71 + )
72 + )"
73 +
74 +# Tarballs from PyPI do not contain tests, and we cannot use GitHub releases
75 +# any more because they are incompatible with setuptools_scm.
76 +RESTRICT="test"
77 +
78 +DOCS=(CHANGELOG.md README.md)
79 +
80 +pkg_postinst() {
81 + elog
82 +
83 + if ! use gui; then
84 + ewarn "Please note that disabling USE=gui does *not* presently remove the --gui command-line option,"
85 + ewarn "it just means using this option will fail unless gnome-extra/zenity happens to be installed."
86 + ewarn
87 + fi
88 +
89 + elog "Protontricks can only find games for which a Proton prefix already exists."
90 + elog "Make sure to run a Proton game at least once before trying to use protontricks on it."
91 + elog
92 +}