From nobody Fri Feb 21 17:15:39 2025 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Yzxbb2kV2z5nyHj for ; Fri, 21 Feb 2025 17:15:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Yzxbb284Bz3rrq; Fri, 21 Feb 2025 17:15:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740158139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ysEfjLLB4FLuwbwBQGVDGgih/CosUuZNca1mb1teQG8=; b=AMEATxLYqXk3hBkYx30FVBnqU8C3qW9Qkmz95xEVnDM9OSNnm9ydIfDo5FvX9pex1Yzfck 0sbpNYx8zvBtEz10Q53PY2d+ZoTOorrZ8e36HOO9fvzzPPMq4EOVjeDKOpbDOqXBmm7uUE uoayCq9LvZRC6+Uum6xOfNfARlKuiUxec9TheYwNP14WFsDBpO7y9vIhv+P0M/Xlv12dY5 JYQEqjuB5hulK4gj3sedk+1vZBcJ6/tBlbrnt+WxtkYl1vR4zXxlssXK+YLZfrF94l5ImO PupJeHUU9FK/R9MpOwdcPDWItnHpOiL3fY6g8arEcxI7prrydgIISSi6xAk/mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740158139; a=rsa-sha256; cv=none; b=vQL+50AwYLPlIAdKZ1lf7LSNH4HnC9FHkx/2im6kGw4xUDvcs/SmzdY2XwUn+MWGlB50DL EXzZngW3DBNDVBolkovpBOiLYY1V/uHVLGiMsSYys7OERdXqv0aoXWZUTLqaIRiQEBVUCW /OhsVkpLrtI2bagxn0X4HoDCXyYjjePPYe18+tIaxDgud0b+KXqtRG5i2wgUWneqAeS1Po 7u8v98cquXpT569dsiJLj41ktJPCxf/v128gDnUhhuZSZQ8cAISsOfQHhX/NNcRkHCaSCx 2Fjm5mKbOxoKzzNQ6fy4Ern52uNWnac9oE0jdySIbPXXt2DVxriwgtJ2/1qQzw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740158139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ysEfjLLB4FLuwbwBQGVDGgih/CosUuZNca1mb1teQG8=; b=fF5ep+n409Dh4ZBx3S7VqZ3UrRrNqqaWC9foB/0H1oZPnMLf4Q04wWDc4PIANU0adaVimw 8+R6OW01WqNNWb8Ql9sw7QXfrbu1kLANQnJxy0grs6a2aJfZSt91AmucflvEXfAAntyzXU M28eh4vg5zoIrjSOhkw7Y6SBnB7b/0C0ag/Hs74EQkDTVex+SjWnJ6dWm6ptgPzXKDpVc+ EznsTlS48CsvOvZbESvELOqogUEaPixTzN0AlaMrDlurVtYqDPAzkw5JpyLu6ExenCt7Gw OF//MFucBRzHuBYCGcaQ75ZI4qtxw7sRozsUO4nUXB3T00ZlhzbhzD5KBfprAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Yzxbb1CrkzXNm; Fri, 21 Feb 2025 17:15:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 51LHFdsF090873; Fri, 21 Feb 2025 17:15:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 51LHFdgs090870; Fri, 21 Feb 2025 17:15:39 GMT (envelope-from git) Date: Fri, 21 Feb 2025 17:15:39 GMT Message-Id: <202502211715.51LHFdgs090870@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: 603d906b7f - main - [phb][Uses]: Add missing Uses=ocaml List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-doc-all@freebsd.org Sender: owner-dev-commits-doc-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 603d906b7ff36c9f0fb411d665591f517407660f Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/doc/commit/?id=603d906b7ff36c9f0fb411d665591f517407660f commit 603d906b7ff36c9f0fb411d665591f517407660f Author: Fernando ApesteguĂ­a AuthorDate: 2025-02-18 19:18:12 +0000 Commit: Fernando ApesteguĂ­a CommitDate: 2025-02-21 17:15:24 +0000 [phb][Uses]: Add missing Uses=ocaml --- .../en/books/porters-handbook/uses/_index.adoc | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc index 5aace86102..750f896089 100644 --- a/documentation/content/en/books/porters-handbook/uses/_index.adoc +++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc @@ -1725,6 +1725,59 @@ Possible arguments: (none) Add objective C dependencies (compiler, runtime library) if the base system does not support it. +[[uses-ocaml]] +== `ocaml` + +Possible arguments: (none), `build`,`camlp4`,`dune`,`findlib`,`findplist`,`ldconfig`,`run`,`tk`,`tkbuild`,`tkrun`,`wash` + +Provide support for OCaml. + +If no arguments are provided, it defaults to `build`, `run`. + +If the `build` argument is provided then package:lang/ocamlc[] is added to +`BUILD_DEPENDS`, `EXTRACT` and `PATCH_DEPENDS`. + +If the `camlp4` argument is provided then package:devel/ocamlp4[] is used to build. + +If the `dune` argument is provided then package:devel/ocaml-dune[] is used as build system. + +If the `findlib` argument is provided then `ocamlfind` will be used to install packages. Package directories will be automatically deleted. + +If the `findplist` argument is provided then contents of the `findlib` target directories will be added automatically. + +If the `ldconfig` argument is provided then OCaml's [.filename]#ld.conf# file +will be automatically processed. When `dune` is used Dune may install stublibs +in site-lib package directory(ies) or in a single directory below `DUNE_LIBDIR` site-lib directory. +Set if your port installs shared libraries into ocaml + +If the `run` argument is provided add ocamlc to `RUN_DEPENDS`. + +If the `tk` argument is provided then a build and run dependency on +package:x11-toolkits/ocaml-labltk[] is added to the port. Implies `tkbuild` and +`tkrun`. + +If the `tkbuild` argument is provided then package:x11-toolkits/ocaml-labltk[] +is added to `BUILD_DEPENDS`, `EXTRACT` and `PATCH_DEPENDS`. + +If the `tkrun` argument is provided then package:x11-toolkits/ocaml-labltk[] is +added to `RUN_DEPENDS`. + +If the `wash` argument is provided Ocaml's shared directories will be purged on +uninstall. Useful when installing to non-standard `PREFIX`. + +The following variables can be set by the port: + +`OCAML_PKGDIRS`:: +Directories under site-lib to be processed if the `findlib` argument is specified. Default: `${PORTNAME}` + +`OCAML_LDLIBS`:: +Directories under `PREFIX` to be automatically added/removed from [.filename]#ld.conf#. +Default: `${OCAML_SITELIBDIR}/${PORTNAME}` + +`OCAML_PACKAGES`:: +List of packages to build and install. Default to `${PORTNAME}` + + [[uses-octave]] == `octave`