git: 0870d76e67 - main - [phb] Add Uses=luajit

Fernando Apesteguía <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=0870d76e67a3a4ca2d1169e0fbc0cd8e5b378f7f

commit 0870d76e67a3a4ca2d1169e0fbc0cd8e5b378f7f
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2022-10-15 15:57:20 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2022-10-27 15:41:16 +0000

    [phb] Add Uses=luajit
    
    Following inclusion in the ports framework[1]
    
    [1] https://cgit.freebsd.org/ports/commit/?id=9d241a90370c9410d997be37db5e3a5657bdb4ca
---
 .../en/books/porters-handbook/uses/_index.adoc        | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index 404777ccfa..3a05b70c57 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -1074,6 +1074,25 @@ However, library modules intended to be loaded by Lua code should use the `modul
 
 For more information see crossref:special[using-lua,Using Lua].
 
+[[uses-luajit]]
+== `luajit`
+
+Possible arguments: (none), `_X_`
+
+Adds a dependency on luajit runtime.
+A specific version _X_ can be used. Possible versions are `luajit`, `luajit-devel`, `luajit-openresty`
+
+After including [.filename]#bsd.port.options.mk# or [.filename]#bsd.port.pre.mk# the port can inspect these variables:
+
+`LUAJIT_VER`::
+The selected luajit version
+`LUAJIT_INCDIR`::
+The path to luajit's header files
+`LUAJIT_LUAVER`::
+Which luajit spec version is selected (2.0 for luajit, else 2.1)
+
+For more information see crossref:special[using-lua,Using Lua].
+
 [[uses-lxqt]]
 == `lxqt`
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.