commit:     24abee536016a0d84c5531e937e952085e06511a
Author:     Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
AuthorDate: Sun Jun 25 15:00:33 2023 +0000
Commit:     Aleksandr Batyuk <abbat.2008 <AT> gmail <DOT> com>
CommitDate: Sun Jun 25 15:00:33 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=24abee53

net-wireless/rtl8821cu: Migrate to linux-mod-r1.eclass

Signed-off-by: Aleksandr Batyuk <abbat.2008 <AT> gmail.com>

 net-wireless/rtl8821cu/Manifest                    |  2 +-
 ...30428.ebuild => rtl8821cu-0_pre20230624.ebuild} | 22 ++++++++++++++++------
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/net-wireless/rtl8821cu/Manifest b/net-wireless/rtl8821cu/Manifest
index 76a32b50d..399882072 100644
--- a/net-wireless/rtl8821cu/Manifest
+++ b/net-wireless/rtl8821cu/Manifest
@@ -1 +1 @@
-DIST rtl8821cu-0_pre20230428.tar.gz 13821386 BLAKE2B 
f71e979f9d783486809343e777fa008058c61ead739a64ef11149d4a6da24d628c61d56c7c03f0c32c90d5474b2c179e106702b0cc695ca0261ce8f1f457de8f
 SHA512 
2ff4503bc5a80a28611c293381d4b08deb9512042b1ffcb2e379dba65ae833250210abd25255d6066f28ecdd551d45bcf0dcc3db4a75e0605a3414ed29189efd
+DIST rtl8821cu-0_pre20230624.tar.gz 13822129 BLAKE2B 
2866228ac37d1922488e484223c1abe66ff4e2233f3e14047ebf2285a354682b3045d8a4035533e958a14fdbe86ddc2e322dc51ef1c7d7672c45f030189ececf
 SHA512 
22e62236344fd229c0751397c75c253cc2175a4a259f4fc54ba4d5cdc54e6c57af18200cb6d0435f863a99a3cf2fc9a0d3a03c0aa1c198850c693ad3c564b7d6

diff --git a/net-wireless/rtl8821cu/rtl8821cu-0_pre20230428.ebuild 
b/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
similarity index 65%
rename from net-wireless/rtl8821cu/rtl8821cu-0_pre20230428.ebuild
rename to net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
index 67f180127..63548f00b 100644
--- a/net-wireless/rtl8821cu/rtl8821cu-0_pre20230428.ebuild
+++ b/net-wireless/rtl8821cu/rtl8821cu-0_pre20230624.ebuild
@@ -1,12 +1,13 @@
 # Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-inherit linux-mod toolchain-funcs
-BUILD_PARAMS="CC=$(tc-getCC) V=1 KSRC=${KERNEL_DIR}"
+inherit linux-mod-r1
 
-COMMIT="e49409f22ceea0d5b5ef431e6170580028b84c9d"
+SLOT=0
+
+COMMIT="dc9ee6c6a8b47d0e365fcf1977439c7243da71d5"
 
 DESCRIPTION="Realtek 8821CU/RTL8811CU module for Linux kernel"
 HOMEPAGE="https://github.com/morrownr/8821cu-20210916";
@@ -19,5 +20,14 @@ DEPEND="virtual/linux-sources"
 
 S="${WORKDIR}/8821cu-20210916-${COMMIT}"
 
-MODULE_NAMES="8821cu(net/wireless)"
-BUILD_TARGETS="all"
+src_compile() {
+       linux-mod-r1_pkg_setup
+
+       local modlist=(8821cu=net/wireless)
+
+       linux-mod-r1_src_compile
+}
+
+src_install() {
+       linux-mod-r1_src_install
+}

Reply via email to