pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ocaml-cmdliner Updated package to latest version...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/52323b20a8da
branches:  trunk
changeset: 348664:52323b20a8da
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Fri Jun 17 15:33:24 2016 +0000

description:
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.

diffstat:

 devel/ocaml-cmdliner/Makefile |  45 ++++++++++++++++++------------------------
 devel/ocaml-cmdliner/PLIST    |  26 ++++++++----------------
 devel/ocaml-cmdliner/distinfo |  11 ++++-----
 3 files changed, 33 insertions(+), 49 deletions(-)

diffs (115 lines):

diff -r 7f268ad6f953 -r 52323b20a8da devel/ocaml-cmdliner/Makefile
--- a/devel/ocaml-cmdliner/Makefile     Fri Jun 17 15:15:41 2016 +0000
+++ b/devel/ocaml-cmdliner/Makefile     Fri Jun 17 15:33:24 2016 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2016/05/05 11:45:36 jaapb Exp $
+# $NetBSD: Makefile,v 1.9 2016/06/17 15:33:24 jaapb Exp $
 
 PKGNAME=       ocaml-${DISTNAME}
-DISTNAME=      cmdliner-0.9.4
-PKGREVISION=   4
+DISTNAME=      cmdliner-0.9.8
 CATEGORIES=    devel
 MASTER_SITES=  http://erratique.ch/software/cmdliner/releases/
 EXTRACT_SUFX=  .tbz
@@ -13,37 +12,31 @@
 LICENSE=       modified-bsd
 
 USE_LANGUAGES= c
-OCAML_SITELIBDIR=      ${PREFIX}/lib/ocaml/site-lib
-INSTALLATION_DIRS=     lib/ocaml/site-lib/cmdliner
+OCAML_USE_FINDLIB=     yes
+INSTALLATION_DIRS+=    ${OCAML_SITELIBDIR}/cmdliner
 
-.include "../../mk/bsd.prefs.mk"
+.include "../../mk/ocaml.mk"
 
-PLIST_VARS=    opt
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
-    (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
-OPTARG=        true
-PLIST.opt=     yes
+.if ${OCAML_USE_OPT_COMPILER} == "yes"
+NATIVE=        true
+.else
+NATIVE=        false
 .endif
 
 do-build:
-       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./pkg/build ${OPTARG}
+       cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ocaml ./pkg/build.ml \
+               native=${NATIVE} native-dynlink=${NATIVE}
 
 do-install:
-       for i in `cat ${WRKSRC}/cmdliner.program`; do \
-       ${INSTALL_PROGRAM} ${WRKSRC}/_build/$$i ${DESTDIR}${OCAML_SITELIBDIR}/cmdliner; \
-       done
-       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; \
+       ${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; \
        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; \
+.if ${OCAML_USE_OPT_COMPILER} == "yes"
+       for i in cmdliner.cmx cmdliner.a cmdliner.cmxa cmdliner.cmxs; do \
+               ${INSTALL_DATA} ${WRKSRC}/_build/src/$$i ${DESTDIR}${PREFIX}/${OCAML_SITELIBDIR}/cmdliner; \
        done
+.endif
 
-.include "../../devel/ocaml-findlib/buildlink3.mk"
-.include "../../lang/ocaml/buildlink3.mk"
+.include "../../devel/ocamlbuild/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 7f268ad6f953 -r 52323b20a8da devel/ocaml-cmdliner/PLIST
--- a/devel/ocaml-cmdliner/PLIST        Fri Jun 17 15:15:41 2016 +0000
+++ b/devel/ocaml-cmdliner/PLIST        Fri Jun 17 15:33:24 2016 +0000
@@ -1,17 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1 2014/10/09 20:07:36 jaapb Exp $
-lib/ocaml/site-lib/cmdliner/CHANGES.md
-lib/ocaml/site-lib/cmdliner/META
-lib/ocaml/site-lib/cmdliner/README.md
-lib/ocaml/site-lib/cmdliner/chorus.ml
-${PLIST.opt}lib/ocaml/site-lib/cmdliner/cmdliner.a
-lib/ocaml/site-lib/cmdliner/cmdliner.cma
-lib/ocaml/site-lib/cmdliner/cmdliner.cmi
-${PLIST.opt}lib/ocaml/site-lib/cmdliner/cmdliner.cmx
-${PLIST.opt}lib/ocaml/site-lib/cmdliner/cmdliner.cmxa
-${PLIST.opt}lib/ocaml/site-lib/cmdliner/cmdliner.cmxs
-lib/ocaml/site-lib/cmdliner/cmdliner.mli
-lib/ocaml/site-lib/cmdliner/cp_ex.ml
-lib/ocaml/site-lib/cmdliner/darcs_ex.ml
-lib/ocaml/site-lib/cmdliner/revolt.ml
-lib/ocaml/site-lib/cmdliner/rm_ex.ml
-lib/ocaml/site-lib/cmdliner/tail_ex.ml
+@comment $NetBSD: PLIST,v 1.2 2016/06/17 15:33:24 jaapb Exp $
+${OCAML_SITELIB}/cmdliner/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cmdliner/cmdliner.a
+${OCAML_SITELIB}/cmdliner/cmdliner.cma
+${OCAML_SITELIB}/cmdliner/cmdliner.cmi
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cmdliner/cmdliner.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cmdliner/cmdliner.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cmdliner/cmdliner.cmxs
+${OCAML_SITELIB}/cmdliner/cmdliner.mli
diff -r 7f268ad6f953 -r 52323b20a8da devel/ocaml-cmdliner/distinfo
--- a/devel/ocaml-cmdliner/distinfo     Fri Jun 17 15:15:41 2016 +0000
+++ b/devel/ocaml-cmdliner/distinfo     Fri Jun 17 15:33:24 2016 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 03:27:52 agc Exp $
+$NetBSD: distinfo,v 1.3 2016/06/17 15:33:24 jaapb Exp $
 
-SHA1 (cmdliner-0.9.4.tbz) = afa604e527fc3e0753c643a96c354d4a6421321c
-RMD160 (cmdliner-0.9.4.tbz) = 6963db6f83956106d58d3ee6288d99eb8a376812
-SHA512 (cmdliner-0.9.4.tbz) = 309ded86222130da5a705695e19ce13e41025dbaeafc22987c1f7186fe49619bc67a486b63e4f3dd42aa62a250c4feaf0ee3e2923532e98ac7b732ebfdd18783
-Size (cmdliner-0.9.4.tbz) = 43984 bytes
-SHA1 (patch-pkg_pkg-builder) = 23d53d50fc6b86731c3abb3215290b4e56fe4580
+SHA1 (cmdliner-0.9.8.tbz) = 2f8af80a8d172222daf8a35ea0861ebf88e9d6d6
+RMD160 (cmdliner-0.9.8.tbz) = de19b38209faac7d39dd230a3cdec325bb09f596
+SHA512 (cmdliner-0.9.8.tbz) = 6c71c360eaba7f7127e422a71a00a830a086f1d6750897bea0ebc1cc10f8fdaf9e9532d354abd84dbc6c5fcc1878f19d3f424fd9335e7226b625b63b51c89cab
+Size (cmdliner-0.9.8.tbz) = 53249 bytes



Home | Main Index | Thread Index | Old Index