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-power/nvidia-exec/
Date: Tue, 21 May 2024 15:59:14 +0000 (UTC) [thread overview]
Message-ID: <1716307086.bc6d970a9553d584ef0ab040297da285bbdc5d59.gonegrier.duarte@gentoo> (raw)
commit: bc6d970a9553d584ef0ab040297da285bbdc5d59
Author: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
AuthorDate: Tue May 21 15:58:06 2024 +0000
Commit: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail <DOT> com>
CommitDate: Tue May 21 15:58:06 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc6d970a
sys-power/nvidia-exec: add 0.2.1, drop 0.1.2-r1
* also add udev logic for future release
Signed-off-by: Gonçalo Negrier Duarte <gonegrier.duarte <AT> gmail.com>
sys-power/nvidia-exec/Manifest | 2 +-
...a-exec-0.1.2-r1.ebuild => nvidia-exec-0.2.1.ebuild} | 18 ++++++++++++++----
sys-power/nvidia-exec/nvidia-exec-9999.ebuild | 18 ++++++++++++++----
3 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/sys-power/nvidia-exec/Manifest b/sys-power/nvidia-exec/Manifest
index 72a1158a33..6bd3acf470 100644
--- a/sys-power/nvidia-exec/Manifest
+++ b/sys-power/nvidia-exec/Manifest
@@ -1 +1 @@
-DIST nvidia-exec-0.1.2.tar.gz 16735 BLAKE2B 415b35ca77d3c812e4a250deedd3763c772afea3e7e2e9131c49f486b2e784e6f7e22280136a3f483ed63f066651f8637b19cdfbc07bf222215e6e59e4b1b039 SHA512 605fc35713477e3236f2aad0eb01891b2cf47ba46f6528d6fe785bedb42832114bda0e4a12990aeb2be9d54781787dd4843293f06b7d616ab4639c123d693e4f
+DIST nvidia-exec-0.2.1.tar.gz 17932 BLAKE2B ca66d51e37671f1ff834e3b6088fc599dd9bf63690c4e0dbd7e9cb6e63ef717d70bdd2e4de9560152e48694047ed418dab80377833b47c8e8f9b4e887cb7f3e6 SHA512 dc1b5aa0229550bfb2703b8308be960323f509d1765c45e7b0ef760d6f691e56dd98a929e140e72accda5f1e690273d901a422a5c9d442a484988ed3aafafaee
diff --git a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
similarity index 76%
rename from sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
rename to sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
index dc28323cdb..99c4e57ee7 100644
--- a/sys-power/nvidia-exec/nvidia-exec-0.1.2-r1.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-0.2.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit systemd
+inherit systemd # udev future use
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -19,7 +19,7 @@ fi
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
-LICENSE="GPL-3"
+LICENSE="GPL"
SLOT="0"
RDEPEND="
@@ -29,15 +29,25 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
+#src_configure() {
+# econf --with-rulesdir="$(get_udevdir)"/rules.d
+#}
+
src_install() {
- dobin "${WORKDIR}/${P}/nvx"
+ newbin "${WORKDIR}/${P}/nvx.py" nvx
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
- newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
+ newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
+ #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
}
pkg_postinst() {
+ #udev_reload
ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n"
ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n"
ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n"
}
+
+#pkg_postrm() {
+ #udev_reload
+#}
diff --git a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
index dc28323cdb..99c4e57ee7 100644
--- a/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
+++ b/sys-power/nvidia-exec/nvidia-exec-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..12} )
-inherit systemd
+inherit systemd # udev future use
if [[ ${PV} == 9999 ]]; then
inherit git-r3
@@ -19,7 +19,7 @@ fi
DESCRIPTION="GPU switching without login out for Nvidia Optimus laptops under Linux"
HOMEPAGE="https://github.com/pedro00dk/nvidia-exec"
-LICENSE="GPL-3"
+LICENSE="GPL"
SLOT="0"
RDEPEND="
@@ -29,15 +29,25 @@ RDEPEND="
x11-drivers/nvidia-drivers
"
+#src_configure() {
+# econf --with-rulesdir="$(get_udevdir)"/rules.d
+#}
+
src_install() {
- dobin "${WORKDIR}/${P}/nvx"
+ newbin "${WORKDIR}/${P}/nvx.py" nvx
systemd_dounit "${WORKDIR}/${P}/nvx.service"
insinto /usr/lib/modprobe.d
- newins "${WORKDIR}/${P}/modprobe.conf" nvx.conf
+ newins "${WORKDIR}/${P}/nvx-modprobe.conf" nvx.conf
+ #udev_newrules "${WORKDIR}/${P}/nvx-udev.rules" 99-nvx
}
pkg_postinst() {
+ #udev_reload
ewarn "Don't forget to enable the nvx service:\nsystemctl enable --now nvx\n"
ewarn "\nThe nvx.service prevents nvidia modules from loading and turn off the graphics card during boot.\n"
ewarn "It is not necessary to handle files, configurations, PCI buses, etc, all that is done automatically.\n"
}
+
+#pkg_postrm() {
+ #udev_reload
+#}
next reply other threads:[~2024-05-21 15:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-21 15:59 Gonçalo Negrier Duarte [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-05-24 22:09 [gentoo-commits] repo/proj/guru:dev commit in: sys-power/nvidia-exec/ Gonçalo Negrier Duarte
2024-05-23 8:01 Gonçalo Negrier Duarte
2024-05-21 21:20 Quincy Fleming
2024-05-21 21:20 Quincy Fleming
2024-02-14 16:50 Gonçalo Negrier Duarte
2024-02-14 16:46 Gonçalo Negrier Duarte
2024-02-09 21:36 Gonçalo Negrier Duarte
2023-08-05 12:02 Gonçalo Negrier Duarte
2023-07-16 6:18 Haelwenn Monnier
2023-07-13 20:34 Gonçalo Negrier Duarte
2023-07-13 20:34 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=1716307086.bc6d970a9553d584ef0ab040297da285bbdc5d59.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