head	1.27;
access;
symbols
	pkgsrc-2026Q1:1.27.0.2
	pkgsrc-2026Q1-base:1.27
	pkgsrc-2025Q4:1.25.0.4
	pkgsrc-2025Q4-base:1.25
	pkgsrc-2025Q3:1.25.0.2
	pkgsrc-2025Q3-base:1.25
	pkgsrc-2025Q2:1.24.0.12
	pkgsrc-2025Q2-base:1.24
	pkgsrc-2025Q1:1.24.0.10
	pkgsrc-2025Q1-base:1.24
	pkgsrc-2024Q4:1.24.0.8
	pkgsrc-2024Q4-base:1.24
	pkgsrc-2024Q3:1.24.0.6
	pkgsrc-2024Q3-base:1.24
	pkgsrc-2024Q2:1.24.0.4
	pkgsrc-2024Q2-base:1.24
	pkgsrc-2024Q1:1.24.0.2
	pkgsrc-2024Q1-base:1.24
	pkgsrc-2023Q4:1.23.0.14
	pkgsrc-2023Q4-base:1.23
	pkgsrc-2023Q3:1.23.0.12
	pkgsrc-2023Q3-base:1.23
	pkgsrc-2023Q2:1.23.0.10
	pkgsrc-2023Q2-base:1.23
	pkgsrc-2023Q1:1.23.0.8
	pkgsrc-2023Q1-base:1.23
	pkgsrc-2022Q4:1.23.0.6
	pkgsrc-2022Q4-base:1.23
	pkgsrc-2022Q3:1.23.0.4
	pkgsrc-2022Q3-base:1.23
	pkgsrc-2022Q2:1.23.0.2
	pkgsrc-2022Q2-base:1.23
	pkgsrc-2022Q1:1.21.0.4
	pkgsrc-2022Q1-base:1.21
	pkgsrc-2021Q4:1.21.0.2
	pkgsrc-2021Q4-base:1.21
	pkgsrc-2021Q3:1.20.0.6
	pkgsrc-2021Q3-base:1.20
	pkgsrc-2021Q2:1.20.0.4
	pkgsrc-2021Q2-base:1.20
	pkgsrc-2021Q1:1.20.0.2
	pkgsrc-2021Q1-base:1.20
	pkgsrc-2020Q4:1.19.0.18
	pkgsrc-2020Q4-base:1.19
	pkgsrc-2020Q3:1.19.0.16
	pkgsrc-2020Q3-base:1.19
	pkgsrc-2020Q2:1.19.0.14
	pkgsrc-2020Q2-base:1.19
	pkgsrc-2020Q1:1.19.0.10
	pkgsrc-2020Q1-base:1.19
	pkgsrc-2019Q4:1.19.0.12
	pkgsrc-2019Q4-base:1.19
	pkgsrc-2019Q3:1.19.0.8
	pkgsrc-2019Q3-base:1.19
	pkgsrc-2019Q2:1.19.0.6
	pkgsrc-2019Q2-base:1.19
	pkgsrc-2019Q1:1.19.0.4
	pkgsrc-2019Q1-base:1.19
	pkgsrc-2018Q4:1.19.0.2
	pkgsrc-2018Q4-base:1.19
	pkgsrc-2018Q3:1.17.0.2
	pkgsrc-2018Q3-base:1.17
	pkgsrc-2018Q2:1.16.0.2
	pkgsrc-2018Q2-base:1.16
	pkgsrc-2018Q1:1.15.0.2
	pkgsrc-2018Q1-base:1.15
	pkgsrc-2017Q4:1.14.0.6
	pkgsrc-2017Q4-base:1.14
	pkgsrc-2017Q3:1.14.0.4
	pkgsrc-2017Q3-base:1.14
	pkgsrc-2017Q2:1.11.0.4
	pkgsrc-2017Q2-base:1.11
	pkgsrc-2017Q1:1.11.0.2
	pkgsrc-2017Q1-base:1.11
	pkgsrc-2016Q4:1.10.0.6
	pkgsrc-2016Q4-base:1.10
	pkgsrc-2016Q3:1.10.0.4
	pkgsrc-2016Q3-base:1.10
	pkgsrc-2016Q2:1.10.0.2
	pkgsrc-2016Q2-base:1.10
	pkgsrc-2016Q1:1.7.0.6
	pkgsrc-2016Q1-base:1.7
	pkgsrc-2015Q4:1.7.0.4
	pkgsrc-2015Q4-base:1.7
	pkgsrc-2015Q3:1.7.0.2
	pkgsrc-2015Q3-base:1.7
	pkgsrc-2015Q2:1.5.0.4
	pkgsrc-2015Q2-base:1.5
	pkgsrc-2015Q1:1.5.0.2
	pkgsrc-2015Q1-base:1.5
	pkgsrc-2014Q4:1.2.0.2
	pkgsrc-2014Q4-base:1.2;
locks; strict;
comment	@# @;


1.27
date	2026.03.01.12.38.22;	author gdt;	state Exp;
branches;
next	1.26;
commitid	xaHXyYFajPgHPgwG;

1.26
date	2026.02.17.13.38.57;	author wiz;	state Exp;
branches;
next	1.25;
commitid	pkhLiUCry2inyJuG;

1.25
date	2025.08.25.08.34.56;	author wiz;	state Exp;
branches;
next	1.24;
commitid	tgYETpEmimJPw58G;

1.24
date	2023.12.30.21.18.11;	author zafer;	state Exp;
branches;
next	1.23;
commitid	PfyRuPI23qpvaxSE;

1.23
date	2022.05.24.18.59.23;	author jaapb;	state Exp;
branches;
next	1.22;
commitid	LWTaeJUGVvAsclFD;

1.22
date	2022.05.02.18.12.13;	author jaapb;	state Exp;
branches;
next	1.21;
commitid	5mo9tvMRDuehDvCD;

1.21
date	2021.11.01.19.50.50;	author wiz;	state Exp;
branches;
next	1.20;
commitid	SV0wFfRx87qS28fD;

1.20
date	2021.03.08.08.12.49;	author jaapb;	state Exp;
branches;
next	1.19;
commitid	ZSVtQ5nGxDdxPtKC;

1.19
date	2018.11.27.15.56.11;	author jaapb;	state Exp;
branches;
next	1.18;
commitid	ExZTWtWwoi1l8B1B;

1.18
date	2018.11.12.16.10.16;	author jaapb;	state Exp;
branches;
next	1.17;
commitid	FZB9fL8bVKwuHFZA;

1.17
date	2018.07.19.15.15.22;	author jaapb;	state Exp;
branches;
next	1.16;
commitid	ZBwJ6cko9yxK7LKA;

1.16
date	2018.04.07.11.42.13;	author jaapb;	state Exp;
branches;
next	1.15;
commitid	pjzq14uUjtSOfvxA;

1.15
date	2018.01.10.14.46.42;	author jaapb;	state Exp;
branches;
next	1.14;
commitid	fQeCx22ycPZs4lmA;

1.14
date	2017.09.08.09.51.20;	author jaapb;	state Exp;
branches;
next	1.13;
commitid	QlPKma5uQMhrqn6A;

1.13
date	2017.07.11.10.41.48;	author jaapb;	state Exp;
branches;
next	1.12;
commitid	93VeFrmLnimoBNYz;

1.12
date	2017.07.11.10.18.38;	author jaapb;	state Exp;
branches;
next	1.11;
commitid	dsUyyxpZ9ig9tNYz;

1.11
date	2016.12.30.11.16.56;	author jaapb;	state Exp;
branches;
next	1.10;
commitid	4UT4oNjI9i6XZZzz;

1.10
date	2016.06.20.10.43.18;	author jaapb;	state Exp;
branches;
next	1.9;
commitid	tB9LPmAggsQ51cbz;

1.9
date	2016.06.17.15.33.24;	author jaapb;	state Exp;
branches;
next	1.8;
commitid	lvvCFfaq6gPjIPaz;

1.8
date	2016.05.05.11.45.36;	author jaapb;	state Exp;
branches;
next	1.7;
commitid	hgz2yCFtg7paQh5z;

1.7
date	2015.08.07.11.20.32;	author jaapb;	state Exp;
branches;
next	1.6;
commitid	d2FFtHsvhgFxrkwy;

1.6
date	2015.06.30.11.52.56;	author jaapb;	state Exp;
branches;
next	1.5;
commitid	BIwgKflO8AXrQrry;

1.5
date	2015.03.06.01.18.04;	author sevan;	state Exp;
branches;
next	1.4;
commitid	4Upz4TePU21O2ucy;

1.4
date	2015.03.03.23.43.45;	author sevan;	state Exp;
branches;
next	1.3;
commitid	Z2T5yUxqjYE6Adcy;

1.3
date	2015.01.20.14.24.35;	author jaapb;	state Exp;
branches;
next	1.2;
commitid	hwPQ9mt8k2M4RL6y;

1.2
date	2014.11.27.13.38.15;	author joerg;	state Exp;
branches;
next	1.1;
commitid	wgrjMdn6dhH7lPZx;

1.1
date	2014.10.09.20.07.36;	author jaapb;	state Exp;
branches;
next	;
commitid	oyRenrjvZHId4zTx;


desc
@@


1.27
log
@*: revbump for lang/ocaml micro (security) update
@
text
@# $NetBSD: Makefile,v 1.26 2026/02/17 13:38:57 wiz Exp $

DISTNAME=	cmdliner-1.1.1
PKGNAME=	ocaml-${DISTNAME}
PKGREVISION=	2
CATEGORIES=	devel
MASTER_SITES=	https://erratique.ch/software/cmdliner/releases/
EXTRACT_SUFX=	.tbz

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	http://erratique.ch/software/cmdliner/
COMMENT=	Module for the declarative definition of command line interfaces
LICENSE=	isc

USE_LANGUAGES=	c
USE_TOOLS+=	gmake
MAKE_JOBS_SAFE=	no
MAKE_FLAGS+=	PREFIX=${PREFIX} LIBDIR=${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner DOCDIR=${DESTDIR}${PREFIX}/share/doc/cmdliner

INSTALL_TARGET=	install install-doc

.include "../../lang/ocaml/ocaml.mk"

.include "../../devel/ocamlbuild/buildlink3.mk"
.include "../../devel/ocaml-result/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.26
log
@*: recursive bump for ocaml-dune becoming a build dependency
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2025/08/25 08:34:56 wiz Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.25
log
@reset maintainer
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2023/12/30 21:18:11 zafer Exp $
d5 1
@


1.24
log
@https
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2022/05/24 18:59:23 jaapb Exp $
d9 1
a9 1
MAINTAINER=	jaapb@@NetBSD.org
@


1.23
log
@Replaced mk/ocaml.mk with lang/ocaml/ocaml.mk in ocaml packages
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2022/05/02 18:12:13 jaapb Exp $
d6 1
a6 1
MASTER_SITES=	http://erratique.ch/software/cmdliner/releases/
@


1.22
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
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2021/11/01 19:50:50 wiz Exp $
d21 1
a21 1
.include "../../mk/ocaml.mk"
@


1.21
log
@ocaml-cmdliner: update to 1.0.4.

v1.0.4 2019-06-14 Zagreb
------------------------

- Change the way `Error (_, e)` term evaluation results
  are formatted. Instead of treating `e` as text, treat
  it as formatted lines.
- Fix 4.08 `Pervasives` deprecation.
- Fix 4.03 String deprecations.
- Fix boostrap build in absence of dynlink.
- Make the `Makefile` bootstrap build reproducible.
  Thanks to Thomas Leonard for the patch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2021/03/08 08:12:49 jaapb Exp $
d3 1
a3 1
DISTNAME=	cmdliner-1.0.4
@


1.20
log
@Recursive revbump associated with update of lang/ocaml
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2018/11/27 15:56:11 jaapb Exp $
d3 1
a3 1
DISTNAME=	cmdliner-1.0.3
a4 1
PKGREVISION=	1
d17 1
a17 1
MAKE_ENV+=	PREFIX=${PREFIX} LIBDIR=${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner DOCDIR=${DESTDIR}${PREFIX}/share/doc/cmdliner
@


1.19
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: Makefile,v 1.18 2018/11/12 16:10:16 jaapb Exp $
d5 1
@


1.18
log
@Revbumps associated with update of lang/ocaml.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2018/07/19 15:15:22 jaapb Exp $
d3 1
a4 2
PKGREVISION=	4
DISTNAME=	cmdliner-1.0.2
@


1.17
log
@Recursive revbump associated with the update of lang/ocaml to 4.07.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2018/04/07 11:42:13 jaapb Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.16
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: Makefile,v 1.15 2018/01/10 14:46:42 jaapb Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.15
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: Makefile,v 1.14 2017/09/08 09:51:20 jaapb Exp $
d4 1
d16 3
d20 1
a20 2
OCAML_USE_TOPKG=	yes
INSTALLATION_DIRS+=	share/doc/cmdliner
a23 25
# Normally, we'd do this using opam-installer, but that requires
# this package.
do-install:
	for i in CHANGES.md LICENSE.md README.md test/chorus.ml test/cp_ex.ml \
		test/darcs_ex.ml test/revolt.ml test/rm_ex.ml test/tail_ex.ml; do \
		${INSTALL_DATA} ${WRKSRC}/_build/$$i \
		${DESTDIR}${PREFIX}/share/doc/cmdliner; \
	done
	${INSTALL_DATA} ${WRKSRC}/_build/opam \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner/opam
	for i in pkg/META src/cmdliner.cma src/cmdliner.cmi src/cmdliner.cmti \
		src/cmdliner.mli; do \
		${INSTALL_DATA} ${WRKSRC}/_build/$$i \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner; \
	done
.if ${OCAML_USE_OPT_COMPILER} == "yes"
	for i in cmdliner.a cmdliner.cmx cmdliner.cmxa cmdliner.cmxs \
		cmdliner_arg.cmx cmdliner_base.cmx cmdliner_cline.cmx cmdliner_docgen.cmx \
		cmdliner_info.cmx cmdliner_manpage.cmx cmdliner_msg.cmx \
		cmdliner_suggest.cmx cmdliner_term.cmx cmdliner_trie.cmx; do \
		${INSTALL_DATA} ${WRKSRC}/_build/src/$$i \
		${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner; \
	done
.endif

d25 1
@


1.14
log
@Recursive revbump associated with update of ocaml to 4.05
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2017/07/11 10:41:48 jaapb Exp $
d4 1
a4 2
PKGREVISION=	1
DISTNAME=	cmdliner-1.0.0
@


1.13
log
@Reflect licensing change in Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2017/07/11 10:18:38 jaapb Exp $
d4 1
@


1.12
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: Makefile,v 1.11 2016/12/30 11:16:56 jaapb Exp $
d12 1
a12 1
LICENSE=	modified-bsd
@


1.11
log
@Recursive revbump associated with ocaml update to 4.04.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2016/06/20 10:43:18 jaapb Exp $
d4 1
a4 2
DISTNAME=	cmdliner-0.9.8
PKGREVISION=	2
d15 3
a17 2
OCAML_USE_FINDLIB=	yes
INSTALLATION_DIRS+=	${OCAML_SITELIBDIR}/cmdliner
d21 2
a22 10
.if ${OCAML_USE_OPT_COMPILER} == "yes"
NATIVE=	true
.else
NATIVE=	false
.endif

do-build:
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \
		native=${NATIVE} native-dynlink=${NATIVE}

d24 11
a34 3
	${INSTALL_DATA} ${WRKSRC}/_build/pkg/META ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner
	for i in cmdliner.mli cmdliner.cmi cmdliner.cma; do \
		${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner; \
d37 6
a42 2
	for i in cmdliner.cmx cmdliner.a cmdliner.cmxa cmdliner.cmxs; do \
		${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner; \
@


1.10
log
@Updated buildlink3.mk file to reflect API change, revbump, removed
unused patch.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2016/06/17 15:33:24 jaapb Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.9
log
@Updated package to latest version, 0.9.8.

v0.9.8 2015-10-11 Cambridge (UK)
-------------------------------

- Bring back support for OCaml 3.12.0
- Support for pre-formatted paragraphs in man pages. This adds a ``
  `Pre`` case to the `Manpage.block` type which can break existing
  programs. Thanks to Guillaume Bury for suggesting and help.

- Support for environment variables. If an argument is absent from the
  command line, its value can be read and parsed from an environment
  variable. This adds an `env` optional argument to the `Arg.info`
  function which can break existing programs.
- Support for new variables in documentation strings. `$(opt)` can be
  used to refer name of the option being documented and `$(env)` for
  option's the environment variable.
- Deprecate `Term.pure` in favor of `Term.const`.
- Man page generation. Keep undefined variables untouched. Previously
  a `$(undef)` would be turned into `undef`.
- Turn a few misterious and spurious `Not_found` exceptions into
  `Invalid_arg`. These can be triggered by client programming errors
  (e.g. an unclosed variable in a documentation string).
- Positional arguments. Invoke the printer on the default (absent)
  value only if needed. See Optional arguments in the release notes of
  v0.9.6.

v0.9.7 2015-02-06 La Forclaz (VS)
---------------------------------

- Build system, don't depend on `ocamlfind`. The package no longer
  depends on ocamlfind. Thanks to Louis Gesbert for the patch.

v0.9.6 2014-11-18 La Forclaz (VS)
---------------------------------

- Optional arguments. Invoke the printer on the default (absent) value
  only if needed, i.e. if help is shown. Strictly speaking an
  interface breaking change �<80><93> for example if the absent value was lazy
  it would be forced on each run. This is no longer the case.
- Parsed command line syntax: allow short flags to be specified
  together under a single dash, possibly ending with a short option.
  This allows to specify e.g. `tar -xvzf archive.tgz` or `tar
  -xvzfarchive.tgz`. Previously this resulted in an error, all the
  short flags had to be specified separately. Backward compatible in
  the sense that only more command lines are parsed. Thanks to Hugo
  Heuzard for the patch.
- End user error message improvements using heuristics and edit
  distance search in the optional argument and sub command name
  spaces. Thanks to Hugo Heuzard for the patch.
- Adds `Arg.doc_{quote,alts,alts_enum}`, documentation string
  helpers.
- Adds the `Term.eval_peek_opts` function for advanced usage scenarios.
- The function `Arg.enum` now raises `Invalid_argument` if the
  enumeration is empty.
- Improves help paging behaviour on Windows. Thanks to Romain Bardou
  for the help.


v0.9.5 2014-07-04 Cambridge (UK)
--------------------------------

- Add variance annotation to Term.t. Thanks to Peter Zotov for suggesting.
- Fix section name formatting in plain text output. Thanks to Mikhail
  Sobolev for reporting.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2016/05/05 11:45:36 jaapb Exp $
d5 1
@


1.8
log
@Recursive revbump associated with ocaml update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2015/08/07 11:20:32 jaapb Exp $
d4 1
a4 2
DISTNAME=	cmdliner-0.9.4
PKGREVISION=	4
d15 2
a16 2
OCAML_SITELIBDIR=	${PREFIX}/lib/ocaml/site-lib
INSTALLATION_DIRS=	lib/ocaml/site-lib/cmdliner
d18 1
a18 1
.include "../../mk/bsd.prefs.mk"
d20 4
a23 5
PLIST_VARS=	opt
.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
OPTARG=	true
PLIST.opt=	yes
d27 2
a28 1
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./pkg/build ${OPTARG}
d31 3
a33 2
	for i in `cat ${WRKSRC}/cmdliner.program`; do \
	${INSTALL_PROGRAM} ${WRKSRC}/_build/$$i ${DESTDIR}${OCAML_SITELIBDIR}/cmdliner; \
d35 3
a37 10
	for i in `cat ${WRKSRC}/cmdliner.lib`; do \
	${INSTALL_LIB} ${WRKSRC}/_build/$$i ${DESTDIR}${OCAML_SITELIBDIR}/cmdliner; \
	done
	for i in `cat ${WRKSRC}/cmdliner.data`; do \
	${INSTALL_DATA} ${WRKSRC}/_build/$$i ${DESTDIR}${OCAML_SITELIBDIR}/cmdliner; \
	done

post-install:
	for i in META cmdliner.a cmdliner.cma cmdliner.cmi cmdliner.cmx cmdliner.cmxa cmdliner.mli; do \
		${CHMOD} -x ${DESTDIR}${OCAML_SITELIBDIR}/cmdliner/$$i; \
d39 1
d41 1
a41 2
.include "../../devel/ocaml-findlib/buildlink3.mk"
.include "../../lang/ocaml/buildlink3.mk"
@


1.7
log
@Recursive revbump associated with lang/ocaml update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2015/06/30 11:52:56 jaapb Exp $
d5 1
a5 1
PKGREVISION=	3
@


1.6
log
@Recursive revbump associated with update of lang/ocaml to 4.02.2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2015/03/06 01:18:04 sevan Exp $
d5 1
a5 1
PKGREVISION=	2
@


1.5
log
@Don't steer away from the documented procedure, use bsd.prefs.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2015/03/03 23:43:45 sevan Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.4
log
@Include mk/bsd.fast.prefs.mk, it's needed for setting MACHINE_ARCH correctly.
Resolves packing issue on FreeBSD/AMD64

Reviewed by jaapb@@ wiz@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2015/01/20 14:24:35 jaapb Exp $
d19 1
a19 1
.include "../../mk/bsd.fast.prefs.mk"
@


1.3
log
@Revbump associated with update of lang/ocaml.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2014/11/27 13:38:15 joerg Exp $
d19 2
@


1.2
log
@Correctly sanitize environment.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2014/10/09 20:07:36 jaapb Exp $
d5 1
@


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$
d26 1
a26 1
	cd ${WRKSRC} && ./pkg/build ${OPTARG}
@

