commit:     164df40767c362ba3f3e4371abadb53bef3bd2e1
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Tue Jan 14 11:44:03 2025 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue Jan 14 11:47:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=164df407

games-util/ProtonUp-Qt: add 2.11.1

Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 games-util/ProtonUp-Qt/Manifest                    |  1 +
 games-util/ProtonUp-Qt/ProtonUp-Qt-2.11.1.ebuild   | 47 ++++++++++++++++++
 games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild     | 56 +++++++++++-----------
 .../files/ProtonUp-Qt-2.11.1-add-entrypoint.patch  | 11 +++++
 4 files changed, 86 insertions(+), 29 deletions(-)

diff --git a/games-util/ProtonUp-Qt/Manifest b/games-util/ProtonUp-Qt/Manifest
index 825d4ba7c..2f20823f8 100644
--- a/games-util/ProtonUp-Qt/Manifest
+++ b/games-util/ProtonUp-Qt/Manifest
@@ -1 +1,2 @@
+DIST ProtonUp-Qt-2.11.1.tar.gz 944076 BLAKE2B 
bf2c1bd63e81b8fef15e78132b652e9b2ea44fe837ebaccd5eb12a719ef8199f013865f92dcf57e40bf5464f39d6fe7d69dc4e7eb4c5f9edc4d59d4fcace3087
 SHA512 
b839880656e8957c1b7d5d99a68b2809e208308ceb45df907e04bd1bd0ee24f695f79b3c7ba7c3ed12b9ed7e8106aed68afb361ff81181a556000c5717b25de7
 DIST ProtonUp-Qt-2.9.2.tar.gz 915872 BLAKE2B 
a644c2b29b45cf925a9692c6f0e244d9bc1f22b74ab588f328bc0c2f8e2b07a9ca31e0e61bfde33aa24745e95d13f32e05308a22a4d393adaf888390c72e1095
 SHA512 
27c31c9b2e41f27deb71ca6c2a6d566ccd82fb0c8496b376ebb515239922425e15dd09b7582daf0a2da6e60dacbe22eab0854c96f4d1f665df840541d2bbfed7

diff --git a/games-util/ProtonUp-Qt/ProtonUp-Qt-2.11.1.ebuild 
b/games-util/ProtonUp-Qt/ProtonUp-Qt-2.11.1.ebuild
new file mode 100644
index 000000000..c35647925
--- /dev/null
+++ b/games-util/ProtonUp-Qt/ProtonUp-Qt-2.11.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit desktop distutils-r1 xdg
+
+DESCRIPTION="Install and manage GE-Proton, Luxtorpeda & more for Steam Lutris 
and Heroic."
+HOMEPAGE="https://davidotek.github.io/protonup-qt/";
+SRC_URI="https://github.com/DavidoTek/ProtonUp-Qt/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       dev-python/pyaml[${PYTHON_USEDEP}]
+       dev-python/pyside6[dbus,gui,uitools,widgets,${PYTHON_USEDEP}]
+       dev-python/pyxdg[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       dev-python/steam[${PYTHON_USEDEP}]
+       dev-python/vdf[${PYTHON_USEDEP}]
+       dev-python/zstandard[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+       "${FILESDIR}/${P}-add-entrypoint.patch"
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # execute entry point instead
+       sed -i "/^Exec=/s/net.davidotek.pupgui2/${PN}/" 
share/applications/net.davidotek.pupgui2.desktop || die
+       distutils-r1_src_prepare
+}
+
+src_install() {
+       distutils-r1_src_install
+       domenu share/applications/net.davidotek.pupgui2.desktop
+       for size in 64 128 256; do
+               doicon -s ${size} 
share/icons/hicolor/${size}x${size}/apps/net.davidotek.pupgui2.png
+       done
+}

diff --git a/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild 
b/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
index 97cf515d6..c1fcf5197 100644
--- a/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
+++ b/games-util/ProtonUp-Qt/ProtonUp-Qt-9999.ebuild
@@ -1,48 +1,46 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-_app_id=net.davidotek.pupgui2
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=(python3_{9..12})
+PYTHON_COMPAT=( python3_{10..12} )
 
-EPYTHON=python3
+inherit desktop distutils-r1 git-r3 xdg
 
-inherit git-r3 distutils-r1 desktop xdg-utils
-EGIT_REPO_URI="https://github.com/DavidoTek/ProtonUp-Qt.git";
 DESCRIPTION="Install and manage GE-Proton, Luxtorpeda & more for Steam Lutris 
and Heroic."
-HOMEPAGE="https://davidotek.github.io/protonup-qt";
+HOMEPAGE="https://davidotek.github.io/protonup-qt/";
+EGIT_REPO_URI="https://github.com/DavidoTek/ProtonUp-Qt.git";
 
 LICENSE="GPL-3"
 SLOT="0"
 
-DEPEND="dev-python/steam
-       dev-python/requests
-       dev-python/pyside6[dbus,gui,uitools,widgets]
-       dev-python/vdf
-       dev-python/pyxdg
-       dev-python/pyaml
-       dev-python/zstandard
-       dev-util/desktop-file-utils
-       dev-libs/appstream-glib
+RDEPEND="
+       dev-python/pyaml[${PYTHON_USEDEP}]
+       dev-python/pyside6[dbus,gui,uitools,widgets,${PYTHON_USEDEP}]
+       dev-python/pyxdg[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       dev-python/steam[${PYTHON_USEDEP}]
+       dev-python/vdf[${PYTHON_USEDEP}]
+       dev-python/zstandard[${PYTHON_USEDEP}]
 "
 
-src_compile() {
-       appstream-util validate-relax --nonet 
"share/metainfo/$_app_id.appdata.xml"
-       desktop-file-validate "share/applications/$_app_id.desktop"
-       distutils-r1_src_compile
+PATCHES=(
+       "${FILESDIR}/${P}-add-entrypoint.patch"
+)
+
+distutils_enable_tests pytest
+
+src_prepare() {
+       # execute entry point instead
+       sed -i "/^Exec=/s/net.davidotek.pupgui2/${PN}/" 
share/applications/net.davidotek.pupgui2.desktop || die
+       distutils-r1_src_prepare
 }
 
 src_install() {
        distutils-r1_src_install
-       domenu "${FILESDIR}/ProtonUp-Qt.desktop"
-       dobin "${FILESDIR}/ProtonUp-Qt"
-       newicon -s 64 
"${WORKDIR}/${P}/share/icons/hicolor/64x64/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
-       newicon -s 128 
"${WORKDIR}/${P}/share/icons/hicolor/128x128/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
-       newicon -s 256 
"${WORKDIR}/${P}/share/icons/hicolor/256x256/apps/net.davidotek.pupgui2.png" 
ProtonUp-Qt.png
-}
-
-pkg_postinst() {
-       xdg_icon_cache_update
+       domenu share/applications/net.davidotek.pupgui2.desktop
+       for size in 64 128 256; do
+               doicon -s ${size} 
share/icons/hicolor/${size}x${size}/apps/net.davidotek.pupgui2.png
+       done
 }

diff --git 
a/games-util/ProtonUp-Qt/files/ProtonUp-Qt-2.11.1-add-entrypoint.patch 
b/games-util/ProtonUp-Qt/files/ProtonUp-Qt-2.11.1-add-entrypoint.patch
new file mode 100644
index 000000000..7d258ae36
--- /dev/null
+++ b/games-util/ProtonUp-Qt/files/ProtonUp-Qt-2.11.1-add-entrypoint.patch
@@ -0,0 +1,11 @@
+Add a GUI entry point.
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -30,3 +30,7 @@ install_requires =
+     zstandard>=0.19.0
+ 
+ packages = find:
++
++[options.entry_points]
++gui_scripts =
++    ProtonUp-Qt = pupgui2.pupgui2:main

Reply via email to