git: 0560f34cf6 - main - [phb][uses] Update Lua examples
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Dec 2022 21:42:43 UTC
The branch main has been updated by fernape:
URL: https://cgit.FreeBSD.org/doc/commit/?id=0560f34cf68dcfda767235d3560e05ff91099256
commit 0560f34cf68dcfda767235d3560e05ff91099256
Author: Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2022-12-11 18:43:17 +0000
Commit: Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-12-12 21:38:43 +0000
[phb][uses] Update Lua examples
And make them depict the use of the most recent default version (5.4)
---
.../content/en/books/porters-handbook/special/_index.adoc | 8 ++++----
documentation/content/en/books/porters-handbook/uses/_index.adoc | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/documentation/content/en/books/porters-handbook/special/_index.adoc b/documentation/content/en/books/porters-handbook/special/_index.adoc
index 8a91a56bb0..cdd57b2b3b 100644
--- a/documentation/content/en/books/porters-handbook/special/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/special/_index.adoc
@@ -4185,10 +4185,10 @@ These variables are available in the port.
| Description
|`LUA_VER`
-|The Lua version that is going to be used (for example, `5.1`)
+|The Lua version that is going to be used (for example, `5.4`)
|`LUA_VER_STR`
-|The Lua version without the dots (for example, `51`)
+|The Lua version without the dots (for example, `54`)
|`LUA_FLAVOR`
|The flavor name corresponding to the selected Lua version, to be used for specifying dependencies
@@ -4221,10 +4221,10 @@ These variables are available in the port.
|The package name prefix used by Lua modules
|`LUA_CMD`
-|The name of the Lua interpreter (e.g. `lua53`)
+|The name of the Lua interpreter (e.g. `lua54`)
|`LUAC_CMD`
-|The name of the Lua compiler (e.g. `luac53`)
+|The name of the Lua compiler (e.g. `luac54`)
|===
These additional variables are available for ports that specified the `module` parameter:
diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index 34e0ab8779..eb30fe397d 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -1094,7 +1094,7 @@ Adds a dependency on Lua.
By default this is a library dependency, unless overridden by the `build` and/or `run` option.
The `env` option prevents the addition of any dependency, while still defining all the usual variables.
-The default version is set by the usual `DEFAULT_VERSIONS` mechanism, unless a version or range of versions is specified as an argument, for example, `51` or `51-53`.
+The default version is set by the usual `DEFAULT_VERSIONS` mechanism, unless a version or range of versions is specified as an argument, for example, `51` or `51-54`.
Applications using Lua are normally built for only a single Lua version.
However, library modules intended to be loaded by Lua code should use the `module` option to build with multiple flavors.