commit:     00b53ffb6bfe132727553673ff799894cae5f95e
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 20 21:27:27 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Mon Jan 20 22:29:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00b53ffb

dev-libs/libratbag: Check kernel config for CONFIG_HIDRAW

Closes: https://github.com/gentoo/gentoo/pull/40035
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 dev-libs/libratbag/libratbag-0.17-r2.ebuild | 11 +++++++++--
 dev-libs/libratbag/libratbag-9999.ebuild    | 11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libratbag/libratbag-0.17-r2.ebuild 
b/dev-libs/libratbag/libratbag-0.17-r2.ebuild
index 7620f30d382d..052a4ed12603 100644
--- a/dev-libs/libratbag/libratbag-0.17-r2.ebuild
+++ b/dev-libs/libratbag/libratbag-0.17-r2.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
 
-inherit meson python-single-r1 systemd udev
+inherit linux-info meson python-single-r1 systemd udev
 
 DESCRIPTION="Library to configure gaming mice"
 HOMEPAGE="https://github.com/libratbag/libratbag";
@@ -67,10 +67,17 @@ DEPEND="
        dev-libs/gobject-introspection
 "
 
+CONFIG_CHECK="~HIDRAW"
+
 PATCHES=(
        "${FILESDIR}"/libratbag-0.17-python3.12-imp.patch
 )
 
+pkg_setup() {
+       linux-info_pkg_setup
+       python-single-r1_pkg_setup
+}
+
 src_prepare() {
        default
 

diff --git a/dev-libs/libratbag/libratbag-9999.ebuild 
b/dev-libs/libratbag/libratbag-9999.ebuild
index 47fc210ab543..3f5d0141a1f1 100644
--- a/dev-libs/libratbag/libratbag-9999.ebuild
+++ b/dev-libs/libratbag/libratbag-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
 
-inherit meson python-single-r1 systemd udev
+inherit linux-info meson python-single-r1 systemd udev
 
 DESCRIPTION="Library to configure gaming mice"
 HOMEPAGE="https://github.com/libratbag/libratbag";
@@ -67,6 +67,13 @@ DEPEND="
        dev-libs/gobject-introspection
 "
 
+CONFIG_CHECK="~HIDRAW"
+
+pkg_setup() {
+       linux-info_pkg_setup
+       python-single-r1_pkg_setup
+}
+
 src_prepare() {
        default
 

Reply via email to