From cf7807d7aea23a99a144afceaba961cfed652b5f Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 11 Mar 2025 01:49:36 +0000 Subject: gentoo auto-resync : 11:03:2025 - 01:49:36 --- games-util/sc-controller/Manifest | 5 +- .../files/sc-controller-0.5.0-tomllib.patch | 35 ++++++++++++ .../sc-controller/sc-controller-0.4.8.21.ebuild | 55 ------------------ .../sc-controller/sc-controller-0.5.0.ebuild | 66 ++++++++++++++++++++++ 4 files changed, 104 insertions(+), 57 deletions(-) create mode 100644 games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch delete mode 100644 games-util/sc-controller/sc-controller-0.4.8.21.ebuild create mode 100644 games-util/sc-controller/sc-controller-0.5.0.ebuild (limited to 'games-util/sc-controller') diff --git a/games-util/sc-controller/Manifest b/games-util/sc-controller/Manifest index e48a4a45c8fe..61a1a0273ce3 100644 --- a/games-util/sc-controller/Manifest +++ b/games-util/sc-controller/Manifest @@ -1,3 +1,4 @@ -DIST sc-controller-0.4.8.21.tar.gz 1846682 BLAKE2B 83892aa73ca2b729b205455b2c094f57538487976f8744170e381ff49f9e7e2d23b274b3b43c887ee8b945793cb6a9e9d0ab03778d47d732d35b8599f65e58ac SHA512 874a180cdac3a0f6a592e507abda572e69dcc4061874512292de2c4f9db0f5739a370d43de4f11031f5c02ff4e1f11237a4720f890a1ae8220940a2d5e03d0a1 -EBUILD sc-controller-0.4.8.21.ebuild 1382 BLAKE2B 7cbb4678954076216264dee2a7d85490de6bb7223f13dea431e447bfe81546e0412f1aa14c824da264948ccb2e458f52a61ba7ee86d257bc0afcb972c9e7a67e SHA512 a3eab86d142d8c653b566ce3f57f1ff977731e3abcadba468f23cffc38189242796cc00aea75d6b34ef5feffd6bae9c573353767923d9168802d57cca0b53995 +AUX sc-controller-0.5.0-tomllib.patch 1020 BLAKE2B 9e6772084c9d7e5d0fa28e8e971812ebd821af2dd80d31dbc516c58e268e5e9cff9231f30e446dc732f8a31fc12f02e82992d2513bd5635080e45891a48132d1 SHA512 1aa3fd865eff0e85494219f1a303bd055eb628ec47bf4d9052c6cb0e1f3c46d389889052bc202311b6cbe20c26924c06913f3eb5068376776acbc972ff3d7963 +DIST sc-controller-0.5.0.tar.gz 1816791 BLAKE2B b96c5f7b63c5a27e283ff52f2b6fac2f89d2e55f7d9d252e864730aef9b071b9d6f8a3549a2cdda265beb759bbe375fec4b930944392cff9e804e3eb2d1baa65 SHA512 e857862427434514f08cd5d3aec303b026688d6c5a94cc654fc25a423dab705f7284216d270a07a549d1dc67ffe6d14873eb6fd028f91fd071369e9900911a2b +EBUILD sc-controller-0.5.0.ebuild 1607 BLAKE2B f361377cbfefa2b0a23fca0b1662bf6ce1a2d315ade995fa7b8a58efc739d31ec1cbd941cc3bee4f030d4e0ae4f23d5a062d3871f0c66a420cab9f5e38c53332 SHA512 c2017a7e8bf5ca266e1e297c7edf7d9f31f77832a1fc88c15964ea1ec436184b1462b3a8399c440707211b4866f177f37ff8b693dfb92d35ad4b460d1a03c070 MISC metadata.xml 409 BLAKE2B 4e8c6c1cadcd9a67ec61a7944639e698fcd1207a6650a6134f07cf3ec0a3224f8d22895c1bc01600057b764d2faa77cd924261b3fddc7d43d25f435b27e497a3 SHA512 88f2774a6453bb9afe2e2efcc20961e1994ed60dd95c0d68357574f4933590056f9b4469b134bcc3b7c51f2b5aa19e82118987893a04e021bdacc52160aefffd diff --git a/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch b/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch new file mode 100644 index 000000000000..d6724b9c7b9e --- /dev/null +++ b/games-util/sc-controller/files/sc-controller-0.5.0-tomllib.patch @@ -0,0 +1,35 @@ +From 10d0e99164eb699d13df3c183a1600a6a955c6d3 Mon Sep 17 00:00:00 2001 +From: James Le Cuirot +Date: Sun, 9 Mar 2025 19:27:50 +0000 +Subject: [PATCH] Use built-in tomllib rather than toml (#71) + +The toml library has been unmaintained for years and is no longer packaged by some distributions. +--- + tests/test_setup.py | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/tests/test_setup.py b/tests/test_setup.py +index eaae0166..7593b727 100644 +--- a/tests/test_setup.py ++++ b/tests/test_setup.py +@@ -1,6 +1,6 @@ + import pkgutil + +-import toml ++import tomllib + + import scc + +@@ -19,7 +19,8 @@ class TestSetup: + pass + + # Load the packages from pyproject.toml +- pyproject = toml.load("pyproject.toml") ++ with open("pyproject.toml", "rb") as file: ++ pyproject = tomllib.load(file) + packages = pyproject["tool"]["setuptools"]["packages"] + + for importer, modname, ispkg in pkgutil.walk_packages(path=scc.__path__, prefix="scc.", onerror=lambda x: None): +-- +2.48.1 + diff --git a/games-util/sc-controller/sc-controller-0.4.8.21.ebuild b/games-util/sc-controller/sc-controller-0.4.8.21.ebuild deleted file mode 100644 index a4d007f9d720..000000000000 --- a/games-util/sc-controller/sc-controller-0.4.8.21.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_SINGLE_IMPL=1 -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) -inherit distutils-r1 linux-info xdg - -DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and others" -HOMEPAGE="https://github.com/C0rn3j/sc-controller/" -SRC_URI="https://github.com/C0rn3j/sc-controller/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2 BSD CC-BY-3.0 CC0-1.0 LGPL-2.1 MIT PSF-2 ZLIB" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="+trayicon +udev wayland" - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/evdev[${PYTHON_USEDEP}] - dev-python/pygobject[${PYTHON_USEDEP},cairo] - dev-python/pylibacl[${PYTHON_USEDEP}] - dev-python/vdf[${PYTHON_USEDEP}] - ') - gnome-base/librsvg[introspection] - virtual/libusb - x11-libs/gtk+:3[introspection] - trayicon? ( dev-libs/libayatana-appindicator ) - udev? ( games-util/game-device-udev-rules ) - wayland? ( gui-libs/gtk-layer-shell[introspection(+)] ) -" - -distutils_enable_tests pytest - -pkg_setup() { - local CONFIG_CHECK="~INPUT_UINPUT" - - linux-info_pkg_setup - python-single-r1_pkg_setup -} - -src_prepare() { - default - - # This test fails. Don't know why but seems unimportant. - rm -v tests/test_glade.py || die -} - -src_install() { - distutils-r1_src_install - rm -r "${ED}"/usr/lib/udev/ || die -} diff --git a/games-util/sc-controller/sc-controller-0.5.0.ebuild b/games-util/sc-controller/sc-controller-0.5.0.ebuild new file mode 100644 index 000000000000..8bf6e2f47c97 --- /dev/null +++ b/games-util/sc-controller/sc-controller-0.5.0.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{12..13} ) +inherit distutils-r1 linux-info xdg + +DESCRIPTION="User-mode driver and GTK-based GUI for Steam Controllers and others" +HOMEPAGE="https://github.com/C0rn3j/sc-controller/" +SRC_URI="https://github.com/C0rn3j/sc-controller/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 CC-BY-3.0 CC0-1.0 MIT PSF-2 ZLIB" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+trayicon +udev wayland" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/evdev[${PYTHON_USEDEP}] + dev-python/ioctl-opt[${PYTHON_USEDEP}] + dev-python/libusb1[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP},cairo] + dev-python/pylibacl[${PYTHON_USEDEP}] + dev-python/vdf[${PYTHON_USEDEP}] + ') + gnome-base/librsvg[introspection] + virtual/libusb + x11-libs/gtk+:3[introspection] + trayicon? ( dev-libs/libayatana-appindicator ) + udev? ( games-util/game-device-udev-rules ) + wayland? ( gui-libs/gtk-layer-shell[introspection(+)] ) +" + +BDEPEND=" + $(python_gen_cond_dep ' + dev-python/setuptools-scm[${PYTHON_USEDEP}] + dev-python/tomli[${PYTHON_USEDEP}] + ') +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}"/${P}-tomllib.patch +) + +pkg_setup() { + local CONFIG_CHECK="~INPUT_UINPUT" + + linux-info_pkg_setup + python-single-r1_pkg_setup +} + +src_compile() { + export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SCCONTROLLER=${PV} + distutils-r1_src_compile +} + +src_install() { + distutils-r1_src_install + rm -r "${ED}"/usr/lib/udev/ || die +} -- cgit v1.2.3