Install this version:
emerge -a =games-util/sc-controller-1.0.5
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =games-util/sc-controller-1.0.5
Or alternatively:
emerge --autounmask-write -a =games-util/sc-controller-1.0.5
# Copyright 1999-2026 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..14} )
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"
IUSE="+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
gui-libs/gtk:4[introspection]
udev? ( games-util/game-device-udev-rules )
wayland? ( gui-libs/gtk4-layer-shell[introspection(+)] )
"
BDEPEND="
$(python_gen_cond_dep '
dev-python/setuptools-scm[${PYTHON_USEDEP}]
')
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
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_test() {
unset DISPLAY WAYLAND_DISPLAY
distutils-r1_src_test
}
src_install() {
distutils-r1_src_install
rm -r "${ED}"/usr/lib/udev/ || die
}
Manage flags for this package:
euse -i <flag> -p games-util/sc-controller |
euse -E <flag> -p games-util/sc-controller |
euse -D <flag> -p games-util/sc-controller
$(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 gui-libs/gtk:4[introspection] udev? ( games-util/game-device-udev-rules ) wayland? ( gui-libs/gtk4-layer-shell[introspection(+)] )
$(python_gen_cond_dep ' dev-python/setuptools-scm[${PYTHON_USEDEP}] ')
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | sc-controller-1.0.5.tar.gz | 2009402 bytes | https://github.com/C0rn3j/sc-controller/archive/v1.0.5.tar.gz |