From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1535651-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0B09E15800D for <garchives@archives.gentoo.org>; Fri, 7 Jul 2023 22:47:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 47AF3E084F; Fri, 7 Jul 2023 22:47:27 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2FFDEE084A for <gentoo-commits@lists.gentoo.org>; Fri, 7 Jul 2023 22:47:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 71AE6340E33 for <gentoo-commits@lists.gentoo.org>; Fri, 7 Jul 2023 22:47:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 91433AD5 for <gentoo-commits@lists.gentoo.org>; Fri, 7 Jul 2023 22:47:23 +0000 (UTC) From: "Gonçalo Negrier Duarte" <gonegrier.duarte@gmail.com> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Gonçalo Negrier Duarte" <gonegrier.duarte@gmail.com> Message-ID: <1688770033.88fda957f516d9b7530c1b94a134221e16387ebc.gonegrier.duarte@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild X-VCS-Directories: sys-firmware/lenovolegionlinux/ X-VCS-Committer: gonegrier.duarte X-VCS-Committer-Name: Gonçalo Negrier Duarte X-VCS-Revision: 88fda957f516d9b7530c1b94a134221e16387ebc X-VCS-Branch: dev Date: Fri, 7 Jul 2023 22:47:23 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f6dfbd9b-7d71-4d1f-aa38-50cc924ff23a X-Archives-Hash: d8e7dcac5c25d66c0fe4064eb5711bc5 commit: 88fda957f516d9b7530c1b94a134221e16387ebc Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com> AuthorDate: Fri Jul 7 22:45:02 2023 +0000 Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com> CommitDate: Fri Jul 7 22:47:13 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=88fda957 sys-firmware/lenovolegionlinux: enable py3.12 Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com> .../lenovolegionlinux-9999.ebuild | 46 +++++++++++++--------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild index e5ddacdeb..435ed6011 100644 --- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild +++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild @@ -4,9 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -EPYTHON=python3 +PYTHON_COMPAT=( python3_{9..12} ) inherit linux-mod-r1 git-r3 distutils-r1 desktop systemd @@ -15,18 +13,18 @@ EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git" DESCRIPTION="Lenovo Legion Linux kernel module" HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux" -DEPEND="sys-kernel/linux-headers - sys-apps/lm-sensors - sys-apps/dmidecode - legion-tools? ( dev-python/PyQt5 ) - legion-tools? ( dev-python/pyyaml ) - legion-tools? ( dev-python/argcomplete ) - legion-acpi? ( sys-power/acpid ) - radeon-dgpu? ( dev-util/rocm-smi ) - downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 ) - ryzenadj? ( sys-power/RyzenAdj ) +RDEPEND="sys-kernel/linux-headers + sys-apps/lm-sensors + sys-apps/dmidecode + legion-tools? ( dev-python/PyQt5 dev-python/pyyaml dev-python/argcomplete ) + legion-acpi? ( sys-power/acpid ) + radeon-dgpu? ( dev-util/rocm-smi ) + downgrade-nvidia? ( <=x11-drivers/nvidia-drivers-525 ) + ryzenadj? ( sys-power/RyzenAdj ) " +DEPEND="${RDEPEND}" + LICENSE="GPL-2" SLOT="0" IUSE="legion-tools legion-acpi systemd radeon-dgpu downgrade-nvidia ryzenadj" @@ -49,8 +47,9 @@ src_compile() { src_install() { linux-mod-r1_src_install #Load the module without reboot - cd "${WORKDIR}/${P}/python/legion_linux/" - make forcereloadmodule + pushd python/legion_linux/ || die + make forcereloadmodule + popd || die if use legion-tools; then #Define build dir (fix sandboxed) cd "${WORKDIR}/${P}/python/legion_linux/" @@ -75,7 +74,7 @@ src_install() { insinto /etc/legion_linux && newins "${FILESDIR}/radeon" .env fi #NVIDIA (need dowgrade because nvidia-smi -pl was removed) - if use downgrade-nvidia; then + if use downgrade-nvidia; then insinto /usr/share/legion_linux && newins "${FILESDIR}/nvidia" .env insinto /etc/legion_linux && newins "${FILESDIR}/nvidia" .env fi @@ -84,8 +83,6 @@ src_install() { insinto /usr/share/legion_linux && newins "${FILESDIR}/cpu" .env insinto /etc/legion_linux && newins "${FILESDIR}/cpu" .env fi - - elog "IMPORTANT!!!!\nPls copy /usr/share/legion_linux folder to .config in your Home folder\n Dont forget to edit .config/legion_linux/.env" fi # Desktop Files and Polkit @@ -94,6 +91,17 @@ src_install() { insinto "/usr/share/polkit-1/actions/" && doins "${FILESDIR}/legion_cli.policy" fi +} - elog "INTEL USERS!!!!\nCPU Control Feature: On intel cpu install undervolt https://github.com/georgewhewell/undervolt (or other tool you like to use). More information read the readme https://github.com/Petingoso/legion-fan-utils-linux/blob/main/README.md" +pkg_postinst() { + if use systemd; then + ewarn "Default config files are present in /usr/share/legion_linux" + ewarn "Pls copy that folder to /etc/legion_linux and edit the fancurves to your liking" + ewarn "Note:can be done using the gui app" + ewarn "Dont forget to edit /etc/legion_linux/.env to enable and disable extra features" + ewarn "Note: use flag downgrade-nvidia in need for nvidia TDP control" + fi + ewarn "For Intel Users is need to install undervolt manally since and ebuild exist" + ewarn "Undervolt Repo: https://github.com/georgewhewell/undervolt" + ewarn "More information on this README: https://github.com/Petingoso/legion-fan-utils-linux/blob/main/README.md" }