commit: 4b21d47f46b6063d0c1e250545780e71b36624e6
Author: Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
AuthorDate: Sun Jun 25 15:37:30 2023 +0000
Commit: Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
CommitDate: Sun Jun 25 15:38:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b21d47f
net-wireless/rtl8821ce: Migrate to linux-mod-r1.eclass
Signed-off-by: Aleksandr Batyuk <abbat.2008 <AT> gmail.com>
net-wireless/rtl8821ce/rtl8821ce-0_pre20230504.ebuild | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/net-wireless/rtl8821ce/rtl8821ce-0_pre20230504.ebuild
b/net-wireless/rtl8821ce/rtl8821ce-0_pre20230504.ebuild
index d32a11e7e..bba65298c 100644
--- a/net-wireless/rtl8821ce/rtl8821ce-0_pre20230504.ebuild
+++ b/net-wireless/rtl8821ce/rtl8821ce-0_pre20230504.ebuild
@@ -3,8 +3,8 @@
EAPI=8
-inherit linux-mod toolchain-funcs
-BUILD_PARAMS="CC=$(tc-getCC) V=1 KSRC=${KERNEL_DIR}"
+inherit linux-mod-r1
+SLOT=0
COMMIT="a478095a45d8aa957b45be4f9173c414efcacc6f"
@@ -19,7 +19,17 @@ DEPEND="virtual/linux-sources"
S="${WORKDIR}/rtl8821ce-${COMMIT}"
-MODULE_NAMES="8821ce(net/wireless)"
-BUILD_TARGETS="all"
CONFIG_CHECK="~!RTW88_8821CE"
ERROR_RTL8XXXU="The RTW88_8821CE module is enabled in the kernel; it conflicts
with this module."
+
+src_compile() {
+ linux-mod-r1_pkg_setup
+
+ local modlist=(8821ce=net/wireless)
+
+ linux-mod-r1_src_compile
+}
+
+src_install() {
+ linux-mod-r1_src_install
+}