From: "Gonçalo Negrier Duarte" <gonegrier.duarte@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/
Date: Wed, 30 Aug 2023 12:53:06 +0000 (UTC) [thread overview]
Message-ID: <1693399969.ec772c193ec4bc60304bb1fd39a65f8e8e0131d8.gonegrier.duarte@gentoo> (raw)
commit: ec772c193ec4bc60304bb1fd39a65f8e8e0131d8
Author: Gonçalo Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Wed Aug 30 12:49:37 2023 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Wed Aug 30 12:52:49 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec772c19
sys-firmware/lenovolegionlinux: update ebuild for stable version
Signed-off-by: Gonçalo Duarte <gonegrier.duarte <AT> gmail.com>
.../lenovolegionlinux-9999.ebuild | 24 +++++++++++++++++-----
1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
index 8eed68df1d..b003b160a7 100644
--- a/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
+++ b/sys-firmware/lenovolegionlinux/lenovolegionlinux-9999.ebuild
@@ -3,12 +3,20 @@
EAPI=8
+M_PN=LenovoLegionLinux
+
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit linux-mod-r1 git-r3 distutils-r1 systemd
+inherit linux-mod-r1 distutils-r1 systemd
-EGIT_REPO_URI="https://github.com/johnfanv2/LenovoLegionLinux.git"
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/johnfanv2/${M_PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/johnfanv2/${M_PN}/archive/refs/tags/v${PV}.tar.gz"
+ KEYWORDS="~amd64"
+fi
DESCRIPTION="Lenovo Legion Linux kernel module"
HOMEPAGE="https://github.com/johnfanv2/LenovoLegionLinux"
@@ -41,10 +49,16 @@ src_compile() {
local modlist=(
legion-laptop=kernel/drivers/platform/x86:kernel_module:kernel_module:all
)
- KERNELVERSION=${KV_FULL} linux-mod-r1_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"
+ if [[ ${PV} == "9999" ]] ; then
+ #fix python package version
+ sed -i "s/version = _VERSION/version = 9999/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
+ else
+ #fix python package version
+ sed -i "s/version = _VERSION/version = ${PV}/g" "${WORKDIR}/${P}/python/legion_linux/setup.cfg"
+ fi
#Define build dir (fix sandboxed)
cd "${WORKDIR}/${P}/python/legion_linux"
distutils-r1_src_compile --build-dir "${WORKDIR}/${P}/python/legion_linux/build"
next reply other threads:[~2023-08-30 12:53 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-30 12:53 Gonçalo Negrier Duarte [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-24 10:43 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ Gonçalo Negrier Duarte
2024-08-22 0:39 Gonçalo Negrier Duarte
2024-04-02 19:54 Gonçalo Negrier Duarte
2024-03-29 11:39 Gonçalo Negrier Duarte
2024-03-17 20:27 Gonçalo Negrier Duarte
2024-03-17 14:53 Gonçalo Negrier Duarte
2024-03-17 13:44 Gonçalo Negrier Duarte
2024-03-13 11:24 Gonçalo Negrier Duarte
2024-03-13 11:09 Gonçalo Negrier Duarte
2024-03-12 20:40 Gonçalo Negrier Duarte
2024-03-10 18:00 Gonçalo Negrier Duarte
2024-01-08 13:03 Gonçalo Negrier Duarte
2023-11-26 17:09 Gonçalo Negrier Duarte
2023-09-15 10:54 Gonçalo Negrier Duarte
2023-08-29 9:53 Gonçalo Negrier Duarte
2023-08-24 11:26 Gonçalo Negrier Duarte
2023-08-01 11:02 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/LenovoLegionLinux/ Gonçalo Negrier Duarte
2023-07-28 17:01 Gonçalo Negrier Duarte
2023-07-26 13:03 Gonçalo Negrier Duarte
2023-07-26 13:03 Gonçalo Negrier Duarte
2023-07-15 16:53 Gonçalo Negrier Duarte
2023-07-10 11:44 Gonçalo Negrier Duarte
2023-07-08 12:52 Gonçalo Negrier Duarte
2023-07-07 22:47 [gentoo-commits] repo/proj/guru:dev commit in: sys-firmware/lenovolegionlinux/ Gonçalo Negrier Duarte
2023-07-07 10:38 Gonçalo Negrier Duarte
2023-07-05 15:10 Gonçalo Negrier Duarte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1693399969.ec772c193ec4bc60304bb1fd39a65f8e8e0131d8.gonegrier.duarte@gentoo \
--to=gonegrier.duarte@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox