diff options
author | Johan van Selst <johans@FreeBSD.org> | 2015-05-17 13:01:19 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2015-05-17 13:01:19 +0000 |
commit | a01d59a8140011d4a2906bb576f8e37b8b819b72 (patch) | |
tree | 15e2db429590ae046ce6ed7cdf2783979e9adaaa /devel | |
parent | - Add CPE info (diff) |
Add new port devel/ocaml-cmdliner
Cmdliner is an OCaml module for the declarative definition of command
line interfaces.
It provides a simple and compositional mechanism to convert command line
arguments to OCaml values and pass them to your functions. The module
automatically handles syntax errors, help messages and UNIX man page
generation. It supports programs with single or multiple commands
(like darcs or git) and respects most of the POSIX and GNU conventions.
This module is required to update lang/js_of_ocaml
Notes
Notes:
svn path=/head/; revision=386608
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/ocaml-cmdliner/Makefile | 29 | ||||
-rw-r--r-- | devel/ocaml-cmdliner/distinfo | 2 | ||||
-rw-r--r-- | devel/ocaml-cmdliner/pkg-descr | 10 |
4 files changed, 42 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index d84e7c8084a4..216c580377cb 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1400,6 +1400,7 @@ SUBDIR += ocaml-camomile-examples SUBDIR += ocaml-cfg SUBDIR += ocaml-classes + SUBDIR += ocaml-cmdliner SUBDIR += ocaml-cppo SUBDIR += ocaml-deriving-ocsigen SUBDIR += ocaml-equeue diff --git a/devel/ocaml-cmdliner/Makefile b/devel/ocaml-cmdliner/Makefile new file mode 100644 index 000000000000..0123d89a9961 --- /dev/null +++ b/devel/ocaml-cmdliner/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= cmdliner +PORTVERSION= 0.9.7 +CATEGORIES= devel +MASTER_SITES= http://erratique.ch/software/cmdliner/releases/ +PKGNAMEPREFIX= ocaml- + +MAINTAINER= johans@FreeBSD.org +COMMENT= OCaml module for handling of command line interfaces + +LICENSE= BSD3CLAUSE + +USES= tar:tbz +USE_OCAML= yes +USE_OCAML_FINDLIB= yes +USE_OCAMLFIND_PLIST= yes +USE_OCAML_LDCONFIG= yes + +do-build: + cd ${WRKSRC} && ocamlbuild cmdliner.cmxs cmdliner.cma cmdliner.a + +do-install: + ${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}/cmdliner + cd ${WRKSRC} && ocamlfind install -destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib cmdliner pkg/META _build/src/cmdliner.a _build/src/cmdliner.cma _build/src/cmdliner.cmi _build/src/cmdliner.cmx _build/src/cmdliner.cmxa _build/src/cmdliner.cmxs _build/src/cmdliner.mli + ${INSTALL_LIB} ${WRKSRC}/_build/src/cmdliner.cmxs \ + ${STAGEDIR}${OCAMLFIND_DESTDIR}/cmdliner + +.include <bsd.port.mk> diff --git a/devel/ocaml-cmdliner/distinfo b/devel/ocaml-cmdliner/distinfo new file mode 100644 index 000000000000..6d761a61bf9b --- /dev/null +++ b/devel/ocaml-cmdliner/distinfo @@ -0,0 +1,2 @@ +SHA256 (cmdliner-0.9.7.tbz) = 9c19893cffb5d3c3469ee0cce85e3eeeba17d309b33b9ace31aba06f68f0bf7a +SIZE (cmdliner-0.9.7.tbz) = 50343 diff --git a/devel/ocaml-cmdliner/pkg-descr b/devel/ocaml-cmdliner/pkg-descr new file mode 100644 index 000000000000..f14bdd4f9ed0 --- /dev/null +++ b/devel/ocaml-cmdliner/pkg-descr @@ -0,0 +1,10 @@ +Cmdliner is an OCaml module for the declarative definition of command +line interfaces. + +It provides a simple and compositional mechanism to convert command line +arguments to OCaml values and pass them to your functions. The module +automatically handles syntax errors, help messages and UNIX man page +generation. It supports programs with single or multiple commands +(like darcs or git) and respects most of the POSIX and GNU conventions. + +WWW: http://erratique.ch/software/cmdliner |