diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2025-03-09 22:28:42 +0000 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2025-03-10 23:33:42 +0000 |
| commit | 49b6c3444e0f9244178ead403dadc5e644a305c6 (patch) | |
| tree | 14929472dff48dec84d33c194b9e26423b281724 /games-util/sc-controller/sc-controller-0.5.0.ebuild | |
| parent | b0294edf9f7540bf16d8b72ea20d96d072d611a9 (diff) | |
| download | gentoo-49b6c3444e0f9244178ead403dadc5e644a305c6.tar.gz gentoo-49b6c3444e0f9244178ead403dadc5e644a305c6.tar.bz2 gentoo-49b6c3444e0f9244178ead403dadc5e644a305c6.zip | |
games-util/sc-controller: Version bump to 0.5.0
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-util/sc-controller/sc-controller-0.5.0.ebuild')
| -rw-r--r-- | games-util/sc-controller/sc-controller-0.5.0.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
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 +} |
