diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-30 12:37:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-30 12:37:28 +0100 |
commit | be9d77d3ac6af8f4ead98d89706f356b65578c93 (patch) | |
tree | f82923fbca262493e83dd1382e561a2fae24cc46 /app-emulation/protontricks | |
parent | 7ec0832ab5dafbf70de83e0c2f3ee740416a0950 (diff) | |
parent | 6faaec2b812feecd9c8751b8a19004da4a17ea5b (diff) |
Merge branch 'edge' into next
Diffstat (limited to 'app-emulation/protontricks')
4 files changed, 103 insertions, 4 deletions
diff --git a/app-emulation/protontricks/Manifest b/app-emulation/protontricks/Manifest index 4e2a35e5aaad..a376ad630ef8 100644 --- a/app-emulation/protontricks/Manifest +++ b/app-emulation/protontricks/Manifest @@ -1,3 +1,6 @@ +AUX protontricks-1.4.1_no-setuptools-scm.patch 1291 BLAKE2B 8d97cc8ab7d7dcdba72a3245d7bbd6965d0e0da1f22e290babe6a967057c0ddd6ba85920799f3fa85de4e395f29ea6362472380d3888f2a59bd7c1c167151337 SHA512 730180ce050a81ad42680bb884e3b86b4cc7c2d0efadc07f3a0708f55ab0158b8257e3528ce748d4be830d728e9a238c6d5deef15bc2c926b13ce1c7a1f9a4f2 +DIST protontricks-1.4.1.gh.tar.gz 40029 BLAKE2B 3937f69ad1113c0a368117db38cf8bf1b66feea5cc7c509eaee2f7adabdeea724368baa15f51134a5a9749171a34f439878bfda3fc6b813caba11faf7be76373 SHA512 96d4b3aa5b1ca8f7f9bad0859f5984eb29a0bed01f420d108e537deef0436af314e73fcfaccfd58b5b1dc912698404bd4b0157e69ab6a055d65eb3701a60d00b DIST protontricks-1.4.1.tar.gz 31838 BLAKE2B b8c94a1b96fa7df14eaf1cc6d11cb96e43ae4e8c7bd232687a50cae9c79cf2d0e7864b1af0e1dc4cc20086952e1fcefeb16cb71a9c3a977f6feafad1b17d6857 SHA512 7635c9830afa3c64617514cd86edc7d7f9f33e6e81a1da995ec8bee70adc1cf8b5d9de92036c372134e408d735615b267b46a9afc9246f14ff161cb2ee1fc8f9 -EBUILD protontricks-1.4.1.ebuild 1382 BLAKE2B 24e2b8329ce804f6ad8ae72aa3eddec70c0a2f935efb9925d607a7d6fd5186a3fe52dcb493338f75cdebea3edca2cb24611df8a61b51a770bc2d2917d8c35423 SHA512 5fea56aa3d51cdc84f8d6a99f34f960bc0bc2d73b51076a12e9b11a01693ac13058c066191080585a8ce2206bffb93a46d4a61521b9e7f50250eb8ea38f255ba +EBUILD protontricks-1.4.1-r1.ebuild 1456 BLAKE2B 09599e44b0fb23daf393dcb82ca79183652610588daaa0487f3830c81511008c6ff90aec6ce533e4b3260c8b6a943c7f7d4497ed9943286ab9ae0e90ca28b43b SHA512 89d288f7bf374b68412a611562efb09c95ddc298e988f955f2361d1ad88f7c170e285fdf1857314c800c43f2d7912b99ff24075e379ab709582431c429608cb0 +EBUILD protontricks-1.4.1.ebuild 1415 BLAKE2B fd3e09407cfac634bc86a26df6d107ecd07abbfd097ff74a2ea7baaeba40cd8db95460d7b37004b4e54a79ec99c46b3c1ccd162e7d40d4c8ff89b8370b28c3aa SHA512 74bc259a1c1ec202540a36a3d402c1dd71d3350ed9c2c048390c501e4e7c84fd83c7c259a2481d70f83d211821097a560460bb530b96fd0db1fd6b01427353ba MISC metadata.xml 784 BLAKE2B 37e795944e32ef3f17022efa4ad352e3ee2d1819f3e7ee4ccf02f2366156c999290b4b309c924f54dfde4a5ffc017628c36ead987da2101d2eb38c1eaa767e3e SHA512 6bccb95acbe4cf3b64b4734f98dc4495bd20df294efa0b628f08f4c2ee6bb6c5d103bd323ac29dddb02d2a7ff4ac88ccccdce8a8c01b856aef051eaae6cdb0ae diff --git a/app-emulation/protontricks/files/protontricks-1.4.1_no-setuptools-scm.patch b/app-emulation/protontricks/files/protontricks-1.4.1_no-setuptools-scm.patch new file mode 100644 index 000000000000..fac3ed813d4e --- /dev/null +++ b/app-emulation/protontricks/files/protontricks-1.4.1_no-setuptools-scm.patch @@ -0,0 +1,36 @@ +Since version 1.4.1 upstream has used setuptools-scm to determine the +current version number. Unfortunately the package in question does not +support GitHub release archives, using GitHub VCS snapshots would require +retrieving and updating commit hashes corresponding to release tags, and +PyPI tarballs do not contain tests. setuptools_scm_git_archive does not +help because it requires extra files to be included in the repository, +which upstream has not done. + +Seeing as we already know the version number, bypass setuptools_scm +altogether and create the version file ourselves. For obvious reasons the +latter cannot be done with a patch alone - have to call sed in src_prepare. + +--- a/setup.py ++++ b/setup.py +@@ -16,9 +16,6 @@ + + setup( + name="protontricks", +- use_scm_version={ +- "write_to": "src/protontricks/_version.py" +- }, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + author=AUTHOR, +@@ -28,7 +25,6 @@ + packages=["protontricks"], + package_data={"": ["LICENSE"]}, + package_dir={"protontricks": "src/protontricks"}, +- setup_requires=["setuptools_scm"], + install_requires=["vdf>=2.4"], + entry_points={ + "console_scripts": [ +--- /dev/null ++++ b/src/protontricks/_version.py +@@ -0,0 +1 @@ ++version = '@VERSION@' diff --git a/app-emulation/protontricks/protontricks-1.4.1-r1.ebuild b/app-emulation/protontricks/protontricks-1.4.1-r1.ebuild new file mode 100644 index 000000000000..d17ef1b45996 --- /dev/null +++ b/app-emulation/protontricks/protontricks-1.4.1-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="app-emulation/winetricks wrapper for Proton (Steam Play) games" +HOMEPAGE="https://github.com/Matoking/protontricks" +# Will remove the .gh bit come next version bump +SRC_URI="https://github.com/Matoking/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+gui" + +RDEPEND="app-emulation/winetricks + $(python_gen_cond_dep ' + dev-python/vdf[${PYTHON_USEDEP}] + ') + gui? ( gnome-extra/zenity + || ( + app-emulation/winetricks[gtk] + app-emulation/winetricks[kde] + ) + )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.4.1_no-setuptools-scm.patch +) + +DOCS=( CHANGELOG.md README.md ) + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -i -e "s/@VERSION@/${PV}/" "${S}"/src/${PN}/_version.py || die +} + +pkg_postinst() { + elog + + if ! use gui; then + ewarn "Please note that disabling USE=gui does *not* presently remove the --gui command-line option," + ewarn "it just means using this option will fail unless gnome-extra/zenity happens to be installed." + ewarn + fi + + elog "Protontricks can only find games for which a Proton prefix already exists." + elog "Make sure to run a Proton game at least once before trying to use protontricks on it." + elog +} diff --git a/app-emulation/protontricks/protontricks-1.4.1.ebuild b/app-emulation/protontricks/protontricks-1.4.1.ebuild index 82293afad32a..cd8f8b2402a3 100644 --- a/app-emulation/protontricks/protontricks-1.4.1.ebuild +++ b/app-emulation/protontricks/protontricks-1.4.1.ebuild @@ -15,11 +15,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="GPL-3" SLOT="0" -KEYWORDS="~amd64" +KEYWORDS="amd64" IUSE="+gui" -BDEPEND="${PYTHON_DEPS} - dev-python/setuptools_scm" +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools_scm[${PYTHON_USEDEP}] + ')" RDEPEND="${PYTHON_DEPS} app-emulation/winetricks $(python_gen_cond_dep ' |