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, 08 Jan 2020 13:36:43
Message-Id: 1578490587.8732d3ecff0b7662080cc7b1408055a72fdc41fe.marecki@gentoo
1 commit: 8732d3ecff0b7662080cc7b1408055a72fdc41fe
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 8 13:34:17 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 8 13:36:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8732d3ec
7
8 app-emulation/protontricks: new package
9
10 Allows one to use winetricks on Proton (Steam Play) games without
11 having to manually mess with prefix and Proton configuration.
12
13 Package-Manager: Portage-2.3.79, Repoman-2.3.16
14 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
15
16 app-emulation/protontricks/Manifest | 1 +
17 app-emulation/protontricks/metadata.xml | 21 ++++++++++
18 .../protontricks/protontricks-1.3.1.ebuild | 46 ++++++++++++++++++++++
19 3 files changed, 68 insertions(+)
20
21 diff --git a/app-emulation/protontricks/Manifest b/app-emulation/protontricks/Manifest
22 new file mode 100644
23 index 00000000000..a4be8ea3ec9
24 --- /dev/null
25 +++ b/app-emulation/protontricks/Manifest
26 @@ -0,0 +1 @@
27 +DIST protontricks-1.3.1.tar.gz 57784 BLAKE2B ed013367a2cc2384e4340379e2c23999a556ed26920ad59dfd7a8f773e490ee76e253a5fe3216e651cdcdb3e225a2e394255500c611d24f6bf9029582d55bb1f SHA512 4e33334e219db2e6679b430ee42408529478834c80c7da3b9bece4756eb27b9331d49a6a884de8a7ced5ec29d78ce831fee4cfbf6d5adcd750666b7e7a1e5607
28
29 diff --git a/app-emulation/protontricks/metadata.xml b/app-emulation/protontricks/metadata.xml
30 new file mode 100644
31 index 00000000000..23f787ca2d3
32 --- /dev/null
33 +++ b/app-emulation/protontricks/metadata.xml
34 @@ -0,0 +1,21 @@
35 +<?xml version="1.0" encoding="UTF-8"?>
36 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
37 +<pkgmetadata>
38 + <maintainer type="person">
39 + <email>marecki@g.o</email>
40 + <name>Marek Szuba</name>
41 + </maintainer>
42 + <longdescription lang="en">
43 + A simple wrapper script that allows you to easily run Winetricks commands for Steam Play/Proton
44 + games. This is often useful when a game requires closed-source runtime libraries that are not
45 + included with Proton, or to activate Gallium Nine (native Direct3D 9 support) for a Proton game,
46 + without all the tedious messing around with Wine prefixes.
47 + </longdescription>
48 + <use>
49 + <flag name="gui">Enable the graphical user interface (requires <pkg>gnome-extra/zenity</pkg>)</flag>
50 + </use>
51 + <upstream>
52 + <remote-id type="github">Matoking/protontricks</remote-id>
53 + <remote-id type="pypi">protontricks</remote-id>
54 + </upstream>
55 +</pkgmetadata>
56
57 diff --git a/app-emulation/protontricks/protontricks-1.3.1.ebuild b/app-emulation/protontricks/protontricks-1.3.1.ebuild
58 new file mode 100644
59 index 00000000000..0b0e576d39a
60 --- /dev/null
61 +++ b/app-emulation/protontricks/protontricks-1.3.1.ebuild
62 @@ -0,0 +1,46 @@
63 +# Copyright 1999-2020 Gentoo Authors
64 +# Distributed under the terms of the GNU General Public License v2
65 +
66 +EAPI=7
67 +
68 +PYTHON_COMPAT=( python3_{6,7,8} )
69 +
70 +DISTUTILS_SINGLE_IMPL=1
71 +inherit distutils-r1
72 +
73 +DESCRIPTION="app-emulation/winetricks wrapper for Proton (Steam Play) games"
74 +HOMEPAGE="https://github.com/Matoking/protontricks"
75 +SRC_URI="https://codeload.github.com/Matoking/${PN}/tar.gz/${PV} -> ${P}.tar.gz"
76 +
77 +LICENSE="GPL-3"
78 +SLOT="0"
79 +KEYWORDS="~amd64"
80 +IUSE="+gui"
81 +
82 +RDEPEND="${PYTHON_DEPS}
83 + app-emulation/winetricks
84 + dev-python/vdf[${PYTHON_USEDEP}]
85 + gui? ( gnome-extra/zenity
86 + || (
87 + app-emulation/winetricks[gtk]
88 + app-emulation/winetricks[kde]
89 + )
90 + )"
91 +
92 +DOCS=(CHANGELOG.md README.md)
93 +
94 +distutils_enable_tests pytest
95 +
96 +pkg_postinst() {
97 + elog
98 +
99 + if ! use gui; then
100 + ewarn "Please note that disabling USE=gui does *not* presently remove the --gui command-line option,"
101 + ewarn "it just means using this option will fail unless gnome-extra/zenity happens to be installed."
102 + ewarn
103 + fi
104 +
105 + elog "Protontricks can only find games for which a Proton prefix already exists."
106 + elog "Make sure to run a Proton game at least once before trying to use protontricks on it."
107 + elog
108 +}