git: 005838951d - main - phb: modernize some python bits

Mathieu Arnold <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/doc/commit/?id=005838951d2789aa028db39aa97619e193ebace6

commit 005838951d2789aa028db39aa97619e193ebace6
Author:     Daniel Engberg <[email protected]>
AuthorDate: 2024-05-08 06:56:25 +0000
Commit:     Mathieu Arnold <[email protected]>
CommitDate: 2024-05-08 06:56:56 +0000

    phb: modernize some python bits
    
    PR:     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276796
---
 documentation/content/en/books/porters-handbook/uses/_index.adoc | 4 ++--
 documentation/content/en/books/porters-handbook/uses/_index.po   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index c571a7d15a..ce23b68af7 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -1692,7 +1692,7 @@ If Python is only needed at build time, run time or for the tests, it can be set
 If Python is also needed during the patch phase, use `patch`.
 See crossref:special[using-python, Using Python] for more information.
 
-`PYTHON_NO_DEPENDS=yes` can be used when the variables exported by the framework are needed but a dependency on Python is not.
+`USES=python:env` can be used when the variables exported by the framework are needed but a dependency on Python is not.
 It can happen when using with <<uses-shebangfix,`USES=shebangfix`>>, and the goal is only to fix the shebangs but not add a dependency on Python.
 
 [[uses-qmail]]
@@ -1929,7 +1929,7 @@ Correct paths for supported interpreters are available in `_interp__CMD`.
 
 [TIP]
 ====
-When used with <<uses-python,`USES=python`>>, and the aim is only to fix the shebangs but a dependency on Python itself is not wanted, use `PYTHON_NO_DEPENDS=yes`.
+When used with <<uses-python,`USES=python`>>, and the aim is only to fix the shebangs but a dependency on Python itself is not wanted, use `USES=python:env` instead.
 ====
 
 [[uses-shebangfix-ex-lua]]
diff --git a/documentation/content/en/books/porters-handbook/uses/_index.po b/documentation/content/en/books/porters-handbook/uses/_index.po
index c7618a006d..59f08e0103 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.po
+++ b/documentation/content/en/books/porters-handbook/uses/_index.po
@@ -4715,7 +4715,7 @@ msgstr ""
 #. type: Plain text
 #: documentation/content/en/books/porters-handbook/uses/_index.adoc:1695
 msgid ""
-"`PYTHON_NO_DEPENDS=yes` can be used when the variables exported by the "
+"`USES=python:env` can be used when the variables exported by the "
 "framework are needed but a dependency on Python is not.  It can happen when "
 "using with <<uses-shebangfix,`USES=shebangfix`>>, and the goal is only to "
 "fix the shebangs but not add a dependency on Python."
@@ -5242,7 +5242,7 @@ msgstr ""
 msgid ""
 "When used with <<uses-python,`USES=python`>>, and the aim is only to fix the "
 "shebangs but a dependency on Python itself is not wanted, use "
-"`PYTHON_NO_DEPENDS=yes`."
+"`USES=python:env` instead."
 msgstr ""
 
 #. type: Block title
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.