commit:     6cdcee796e337d2450a630165b63f634ef43f511
Author:     Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue Aug 29 09:49:04 2023 +0000
Commit:     Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue Aug 29 09:52:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6cdcee79

sys-firmware/lenovolegionlinux: fix python build error (upstream change)

Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>

 sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild 
b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 4b0098d1dc..8eed68df1d 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -13,9 +13,13 @@ 
EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git";
 DESCRIPTION="Lenovo Legion Linux kernel module"
 HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux";
 
-RDEPEND="sys-kernel/linux-headers
+BDEPEND="sys-kernel/linux-headers
        sys-apps/lm-sensors
        sys-apps/dmidecode
+       sys-apps/sed
+"
+
+RDEPEND="
        legion-tools? ( dev-python/PyQt5 dev-python/pyyaml 
dev-python/argcomplete dev-python/darkdetect )
        downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 )
        legion-acpi? ( sys-power/acpid )
@@ -39,6 +43,8 @@ src_compile() {
        )
        KERNELVERSION=${KV_FULL} linux-mod-r1_src_compile
        if use legion-tools; then
+               #fix python package version
+               sed -i "s/version = _VERSION/version = 1.0.0/g" 
"${WORKDIR}/${P}/python/legion_linux/setup.cfg"
                #Define build dir (fix sandboxed)
                cd "${WORKDIR}/${P}/python/legion_linux"
                distutils-r1_src_compile --build-dir 
"${WORKDIR}/${P}/python/legion_linux/build"

Reply via email to