summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2023-06-02 10:28:24 +0200
committerConrad Kostecki <conikost@gentoo.org>2023-06-02 13:16:24 +0200
commit31fe45c2a3cb2152b5d11a3a3333d826ec89a70b (patch)
tree759b296e1119f562fafab7eea0b9077ceab11c1c /sys-apps/smc-sum
parentnet-libs/libupnp: Stabilize 1.14.17 ppc64, #907686 (diff)
downloadgentoo-31fe45c2a3cb2152b5d11a3a3333d826ec89a70b.tar.gz
gentoo-31fe45c2a3cb2152b5d11a3a3333d826ec89a70b.tar.bz2
gentoo-31fe45c2a3cb2152b5d11a3a3333d826ec89a70b.zip
sys-apps/smc-sum: migrate to linux-mod-r1
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'sys-apps/smc-sum')
-rw-r--r--sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild (renamed from sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild)16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild b/sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild
index fa73a90522dd..232195afedd7 100644
--- a/sys-apps/smc-sum/smc-sum-2.10.0.20221209.ebuild
+++ b/sys-apps/smc-sum/smc-sum-2.10.0.20221209-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit linux-mod
+inherit linux-mod-r1
MY_DATE="$(ver_cut 4)"
MY_PN="${PN/smc-/}"
@@ -23,7 +23,6 @@ IUSE="module"
RDEPEND="
sys-libs/zlib
sys-power/iasl
- module? ( !sys-apps/smc-sum-driver )
"
RESTRICT="bindist mirror"
@@ -39,9 +38,6 @@ DOCS=(
PATCHES=( "${FILESDIR}/${PN}-2.7.0.20210903-missing-include.patch" )
-BUILD_TARGETS="default"
-MODULE_NAMES="sum_bios(misc:${S}/driver/Source/Linux)"
-
QA_PREBUILT="usr/bin/smc-sum"
src_prepare() {
@@ -49,12 +45,16 @@ src_prepare() {
# Install new Makefile to respect users CFLAGS and LDFLAGS
cp "${FILESDIR}"/makefile driver/Source/Linux/Makefile || die
+
+ use module && linux-mod-r1_pkg_setup
}
src_compile() {
if use module; then
- BUILD_PARAMS="KDIR=${KV_OUT_DIR} M=${S}/driver/Source/Linux"
- linux-mod_src_compile
+ local modargs=( KDIR="${KV_OUT_DIR}" )
+ local modlist=( sum_bios="misc:driver/Source/Linux" )
+
+ linux-mod-r1_src_compile
else
:;
fi
@@ -64,5 +64,5 @@ src_install() {
newbin sum smc-sum
einstalldocs
- use module && linux-mod_src_install
+ use module && linux-mod-r1_src_install
}