git: d7916248da - main - [phb][Uses]: Document Uses=zig

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=d7916248da8d692453b7228f387f4361c3aab648

commit d7916248da8d692453b7228f387f4361c3aab648
Author:     Fernando Apesteguía <[email protected]>
AuthorDate: 2025-12-12 17:27:16 +0000
Commit:     Fernando Apesteguía <[email protected]>
CommitDate: 2025-12-12 18:44:28 +0000

    [phb][Uses]: Document Uses=zig
    
    Added in
    https://cgit.freebsd.org/ports/commit/?id=2d27a0b0097ca2ddd1e24cb5c656126d64b092a4
---
 .../en/books/porters-handbook/uses/_index.adoc       | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index 622021e234..05bcecfa40 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -3141,6 +3141,26 @@ The category has to match upstream categories.
 The second argument is the build system to use.
 autotools is the default, but meson is also supported.
 
+[[uses-zig]]
+== `zig`
+
+Possible arguments: (none)
+
+Provide support for building package:lang/zig[] based ports.
+
+The framework exposes the following variables to the port:
+
+`ZIG_TUPLE`::
+List of zig dependencies needed to build the port.
+Every entry is a triplet of a name, an URL, and a directory where the dependency
+is expected to be found.
+These triplets can be generated by running:
+
+[source,shell]
+....
+% make make-zig-tuple
+....
+
 [[uses-zip]]
 == `zip`
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.