Add logitech racing wheel packages (first attempt)
This commit is contained in:
1
games-util/new-lg4ff/files/new-lg4ff.conf
Normal file
1
games-util/new-lg4ff/files/new-lg4ff.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
blacklist hid-logitech
|
54
games-util/new-lg4ff/new-lg4ff-9999.ebuild
Normal file
54
games-util/new-lg4ff/new-lg4ff-9999.ebuild
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 2022-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit linux-mod linux-info
|
||||||
|
|
||||||
|
DESCRIPTION="Experimental Logitech force feedback module"
|
||||||
|
HOMEPAGE="https://github.com/berarma/new-lg4ff"
|
||||||
|
EGIT_REPO_URI="https://github.com/berarma/new-lg4ff.git"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
if linux_config_exists; then
|
||||||
|
if linux_chkconfig_module HID_LOGITECH ; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
eerror "Kernel config CONFIG_HID_LOGITECH must be set to 'm'"
|
||||||
|
eerror "Device Drivers -> HID support -> Special HID drivers -> Logitech devices"
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
if linux_chkconfig_present LOGIWHEELS_FF ; then
|
||||||
|
:
|
||||||
|
else
|
||||||
|
eerror "Kernel config CONFIG_LOGIWHEELS_FF must be set to 'y'"
|
||||||
|
eerror "Device Drivers -> HID support -> Special HID drivers -> Logitech devices"
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
eerror "No .config !"
|
||||||
|
die
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
MODULE_NAMES="hid-logitech-new(kernel/drivers/hid:${S})"
|
||||||
|
linux-mod_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
ARCH=$(uname -m | sed -e 's/i.86/i386/')
|
||||||
|
make
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
linux-mod_src_install
|
||||||
|
insinto /etc/modprobe.d
|
||||||
|
doins "${FILESDIR}"/new-lg4ff.conf
|
||||||
|
}
|
40
games-util/oversteer/oversteer-9999.ebuild
Normal file
40
games-util/oversteer/oversteer-9999.ebuild
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
# Copyright 2022-2024 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python3_{10..12} )
|
||||||
|
|
||||||
|
DESCRIPTION="Graphical application to configure Logitech Wheels"
|
||||||
|
HOMEPAGE="https://github.com/berarma/oversteer"
|
||||||
|
EGIT_REPO_URI="https://github.com/berarma/oversteer.git"
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
BDEPEND="dev-util/meson"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/pygobject
|
||||||
|
dev-python/pyudev
|
||||||
|
dev-python/python-evdev
|
||||||
|
dev-python/pyxdg
|
||||||
|
sys-devel/gettext
|
||||||
|
dev-libs/appstream-glib
|
||||||
|
dev-util/desktop-file-utils
|
||||||
|
x11-libs/gtk+"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply_user
|
||||||
|
sed -i 's/Utility;//' data/org.berarma.Oversteer.desktop.in
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
meson build --prefix="/usr"
|
||||||
|
ninja -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DESTDIR="${D}" ninja -C build install
|
||||||
|
}
|
Reference in New Issue
Block a user