head 1.16; access; symbols pkgsrc-2023Q4:1.16.0.14 pkgsrc-2023Q4-base:1.16 pkgsrc-2023Q3:1.16.0.12 pkgsrc-2023Q3-base:1.16 pkgsrc-2023Q2:1.16.0.10 pkgsrc-2023Q2-base:1.16 pkgsrc-2023Q1:1.16.0.8 pkgsrc-2023Q1-base:1.16 pkgsrc-2022Q4:1.16.0.6 pkgsrc-2022Q4-base:1.16 pkgsrc-2022Q3:1.16.0.4 pkgsrc-2022Q3-base:1.16 pkgsrc-2022Q2:1.16.0.2 pkgsrc-2022Q2-base:1.16 pkgsrc-2022Q1:1.15.0.10 pkgsrc-2022Q1-base:1.15 pkgsrc-2021Q4:1.15.0.8 pkgsrc-2021Q4-base:1.15 pkgsrc-2021Q3:1.15.0.6 pkgsrc-2021Q3-base:1.15 pkgsrc-2021Q2:1.15.0.4 pkgsrc-2021Q2-base:1.15 pkgsrc-2021Q1:1.15.0.2 pkgsrc-2021Q1-base:1.15 pkgsrc-2020Q4:1.14.0.18 pkgsrc-2020Q4-base:1.14 pkgsrc-2020Q3:1.14.0.16 pkgsrc-2020Q3-base:1.14 pkgsrc-2020Q2:1.14.0.14 pkgsrc-2020Q2-base:1.14 pkgsrc-2020Q1:1.14.0.10 pkgsrc-2020Q1-base:1.14 pkgsrc-2019Q4:1.14.0.12 pkgsrc-2019Q4-base:1.14 pkgsrc-2019Q3:1.14.0.8 pkgsrc-2019Q3-base:1.14 pkgsrc-2019Q2:1.14.0.6 pkgsrc-2019Q2-base:1.14 pkgsrc-2019Q1:1.14.0.4 pkgsrc-2019Q1-base:1.14 pkgsrc-2018Q4:1.14.0.2 pkgsrc-2018Q4-base:1.14 pkgsrc-2018Q3:1.12.0.2 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.11.0.2 pkgsrc-2018Q2-base:1.11 pkgsrc-2018Q1:1.10.0.2 pkgsrc-2018Q1-base:1.10 pkgsrc-2017Q4:1.9.0.6 pkgsrc-2017Q4-base:1.9 pkgsrc-2017Q3:1.9.0.4 pkgsrc-2017Q3-base:1.9 pkgsrc-2017Q2:1.7.0.4 pkgsrc-2017Q2-base:1.7 pkgsrc-2017Q1:1.7.0.2 pkgsrc-2017Q1-base:1.7 pkgsrc-2016Q4:1.6.0.6 pkgsrc-2016Q4-base:1.6 pkgsrc-2016Q3:1.6.0.4 pkgsrc-2016Q3-base:1.6 pkgsrc-2016Q2:1.6.0.2 pkgsrc-2016Q2-base:1.6 pkgsrc-2016Q1:1.4.0.6 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.4 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.2 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.2.0.4 pkgsrc-2015Q2-base:1.2 pkgsrc-2015Q1:1.2.0.2 pkgsrc-2015Q1-base:1.2 pkgsrc-2014Q4:1.1.0.2 pkgsrc-2014Q4-base:1.1; locks; strict; comment @# @; 1.16 date 2022.05.02.18.12.13; author jaapb; state Exp; branches; next 1.15; commitid 5mo9tvMRDuehDvCD; 1.15 date 2021.03.08.08.12.49; author jaapb; state Exp; branches; next 1.14; commitid ZSVtQ5nGxDdxPtKC; 1.14 date 2018.11.27.15.56.11; author jaapb; state Exp; branches; next 1.13; commitid ExZTWtWwoi1l8B1B; 1.13 date 2018.11.12.16.10.16; author jaapb; state Exp; branches; next 1.12; commitid FZB9fL8bVKwuHFZA; 1.12 date 2018.07.19.15.15.22; author jaapb; state Exp; branches; next 1.11; commitid ZBwJ6cko9yxK7LKA; 1.11 date 2018.04.07.11.42.13; author jaapb; state Exp; branches; next 1.10; commitid pjzq14uUjtSOfvxA; 1.10 date 2018.01.10.14.46.42; author jaapb; state Exp; branches; next 1.9; commitid fQeCx22ycPZs4lmA; 1.9 date 2017.09.08.09.51.20; author jaapb; state Exp; branches; next 1.8; commitid QlPKma5uQMhrqn6A; 1.8 date 2017.07.11.10.18.38; author jaapb; state Exp; branches; next 1.7; commitid dsUyyxpZ9ig9tNYz; 1.7 date 2016.12.30.11.16.56; author jaapb; state Exp; branches; next 1.6; commitid 4UT4oNjI9i6XZZzz; 1.6 date 2016.06.20.10.43.18; author jaapb; state Exp; branches; next 1.5; commitid tB9LPmAggsQ51cbz; 1.5 date 2016.05.05.11.45.36; author jaapb; state Exp; branches; next 1.4; commitid hgz2yCFtg7paQh5z; 1.4 date 2015.08.07.11.20.32; author jaapb; state Exp; branches; next 1.3; commitid d2FFtHsvhgFxrkwy; 1.3 date 2015.06.30.11.52.56; author jaapb; state Exp; branches; next 1.2; commitid BIwgKflO8AXrQrry; 1.2 date 2015.01.20.14.24.35; author jaapb; state Exp; branches; next 1.1; commitid hwPQ9mt8k2M4RL6y; 1.1 date 2014.10.09.20.07.36; author jaapb; state Exp; branches; next ; commitid oyRenrjvZHId4zTx; desc @@ 1.16 log @Updated devel/ocaml-cmdliner to version 1.1.1. There are several upstream changes, mostly minor, but 1.1.0 introduced a new Cmd module and deprecated the Term module. @ text @# $NetBSD: buildlink3.mk,v 1.15 2021/03/08 08:12:49 jaapb Exp $ BUILDLINK_TREE+= ocaml-cmdliner .if !defined(OCAML_CMDLINER_BUILDLINK3_MK) OCAML_CMDLINER_BUILDLINK3_MK:= BUILDLINK_API_DEPENDS.ocaml-cmdliner+= ocaml-cmdliner>=0.9.8 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.1.1 BUILDLINK_PKGSRCDIR.ocaml-cmdliner?= ../../devel/ocaml-cmdliner .include "../../devel/ocaml-findlib/buildlink3.mk" .include "../../lang/ocaml/buildlink3.mk" .endif # OCAML_CMDLINER_BUILDLINK3_MK BUILDLINK_TREE+= -ocaml-cmdliner @ 1.15 log @Recursive revbump associated with update of lang/ocaml @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.14 2018/11/27 15:56:11 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.3nb1 @ 1.14 log @Updated devel/ocaml-cmdliner to version 1.0.3. This version mostly incorporates changes to the build system (using dune, dropping support for older methods and versions of ocaml). @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.13 2018/11/12 16:10:16 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.3 @ 1.13 log @Revbumps associated with update of lang/ocaml. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.12 2018/07/19 15:15:22 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.2nb4 @ 1.12 log @Recursive revbump associated with the update of lang/ocaml to 4.07. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.11 2018/04/07 11:42:13 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.2nb3 @ 1.11 log @Revbump for devel/ocaml-cmdliner. No upstream changes, but the package now uses the provided Makefile infrastructure instead of being installed from the main Makefile. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.10 2018/01/10 14:46:42 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.2nb2 @ 1.10 log @Updated package devel/ocaml-cmdliner to version 1.0.2. Changes are minor, and involve the upstream Makefile. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.9 2017/09/08 09:51:20 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.2 @ 1.9 log @Recursive revbump associated with update of ocaml to 4.05 @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.8 2017/07/11 10:18:38 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.0nb1 @ 1.8 log @Updated package to latest version, 1.0.0. Changes include: v1.0.0 2017-03-02 La Forclaz (VS) --------------------------------- **IMPORTANT** The `Arg.converter` type is deprecated in favor of the `Arg.conv` type. For this release both types are equal but the next major release will drop the former and make the latter abstract. All users are kindly requested to migrate to use the new type and **only** via the new `Arg.[p]conv` and `Arg.conv_{parser,printer}` functions. - Allow terms to be used more than once in terms without tripping out documentation generation (#77). Thanks to François Bobot and Gabriel Radanne. - Disallow defining the same option (resp. command) name twice via two different arguments (resp. terms). Raises Invalid_argument, used to be undefined behaviour (in practice, an arbitrary one would be ignored). - Improve converter API (see important message above). - Add `Term.exit[_status]` and `Term.exit_status_of[_status]_result`. improves composition with `Pervasives.exit`. - Add `Term.term_result` and `Term.cli_parse_result` improves composition with terms evaluating to `result` types. - Add `Arg.parser_of_kind_of_string`. - Change semantics of `Arg.pos_left` (see #76 for details). - Deprecate `Term.man_format` in favor of `Arg.man_format`. - Reserve the `--cmdliner` option for library use. This is unused for now but will be in the future. - Relicense from BSD3 to ISC. - Safe-string support. - Build depend on topkg. ### End-user visible changes The following changes affect the end-user behaviour of all binaries using cmdliner. - Required positional arguments. All missing required position arguments are now reported to the end-user, in the correct order (#39). Thanks to Dmitrii Kashin for the report. - Optional arguments. All unknown and ambiguous optional argument arguments are now reported to the end-user (instead of only the first one). - Change default behaviour of `--help[=FMT]` option. `FMT` no longer defaults to `pager` if unspecified. It defaults to the new value `auto` which prints the help as `pager` or `plain` whenever the `TERM` environment variable is `dumb` or undefined (#43). At the API level this changes the signature of the type `Term.ret` and values `Term.ret`, `Term.man_format` (deprecated) and `Manpage.print` to add the new `` `Auto`` case to manual formats. These are now represented by the `Manpage.format` type rather than inlined polyvars. ### Doc specification improvements and fixes - Add `?envs` optional argument to `Term.info`. Documents environment variables that influence a term's evaluation and automatically integrate them in the manual. - Add `?exits` optional argument to `Term.info`. Documents exit statuses of the program. Use `Term.default_exits` if you are using the new `Term.exit` functions. - Add `?man_xrefs` optional argument to `Term.info`. Documents references to other manpages. Automatically formats a `SEE ALSO` section in the manual. - Add `Manpage.escape` to escape a string from the documentation markup language. - Add `Manpage.s_*` constants for standard man page section names. - Add a `` `Blocks`` case to `Manpage.blocks` to allow block splicing (#69). This avoids having to concatenate block lists at the toplevel of your program. - `Arg.env_var`, change default environment variable section to the standard `ENVIRONMENT` manual section rather than `ENVIRONMENT VARIABLES`. If you previously manually positioned that section in your man page you will have to change the name. See also next point. - Fix automatic placement of default environment variable section (#44) whenever unspecified in the man page. - Better automatic insertions of man page sections (#73). See the API docs about manual specification. As a side effect the `NAME` section can now also be overriden manually. - Fix repeated environment variable printing for flags (#64). Thanks to Thomas Gazagnaire for the report. - Fix rendering of env vars in man pages, bold is standard (#71). - Fix plain help formatting for commands with empty description. Thanks to Maciek Starzyk for the patch. - Fix (implement really) groff man page escaping (#48). - Request `an` macros directly in the man page via `.mso` this makes man pages self-describing and avoids having to call `groff` with the `-man` option. - Document required optional arguments as such (#82). Thanks to Isaac Hodes for the report. ### Doc language sanitization This release tries to bring sanity to the doc language. This may break the rendering of some of your man pages. Thanks to Gabriel Scherer, Ivan Gotovchits and Nicolás Ojeda Bär for the feedback. - It is only allowed to use the variables `$(var)` that are mentioned in the docs (`$(docv)`, `$(opt)`, etc.) and the markup directives `$({i,b},text)`. Any other unknown `$(var)` will generate errors on standard error during documentation generation. - Markup directives `$({i,b},text)` treat `text` as is, modulo escapes; see next point. - Characters `$`, `(`, `)` and `\` can respectively be escaped by `\$`, `\(`, `\)` and `\\`. Escaping `$` and `\` is mandatory everywhere. Escaping `)` is mandatory only in markup directives. Escaping `(` is only here for your symmetric pleasure. Any other sequence of character starting with a `\` is an illegal sequence. - Variables `$(mname)` and `$(tname)` are now marked up with bold when substituted. If you used to write `$(b,$(tname))` this will generate an error on standard output, since `$` is not escaped in the markup directive. Simply replace these by `$(tname)`. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.7 2016/12/30 11:16:56 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=1.0.0 @ 1.7 log @Recursive revbump associated with ocaml update to 4.04. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.6 2016/06/20 10:43:18 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=0.9.8nb2 @ 1.6 log @Updated buildlink3.mk file to reflect API change, revbump, removed unused patch. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.5 2016/05/05 11:45:36 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=0.9.4nb4 @ 1.5 log @Recursive revbump associated with ocaml update. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.4 2015/08/07 11:20:32 jaapb Exp $ d8 1 a8 1 BUILDLINK_API_DEPENDS.ocaml-cmdliner+= ocaml-cmdliner>=0.9.4 @ 1.4 log @Recursive revbump associated with lang/ocaml update. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.3 2015/06/30 11:52:56 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=0.9.4nb3 @ 1.3 log @Recursive revbump associated with update of lang/ocaml to 4.02.2. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.2 2015/01/20 14:24:35 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=0.9.4nb2 @ 1.2 log @Revbump associated with update of lang/ocaml. @ text @d1 1 a1 1 # $NetBSD: buildlink3.mk,v 1.1 2014/10/09 20:07:36 jaapb Exp $ d9 1 a9 1 BUILDLINK_ABI_DEPENDS.ocaml-cmdliner?= ocaml-cmdliner>=0.9.4nb1 @ 1.1 log @New package: devel/ocaml-cmdliner. It's a module for the declarative definition of command line interfaces, and needed as a dependency for js_of_ocaml. @ text @d1 1 a1 1 # $NetBSD$ d9 1 @