mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
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
This commit is contained in:
parent
d9e8489d9b
commit
a01d59a814
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=386608
@ -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
|
||||
|
29
devel/ocaml-cmdliner/Makefile
Normal file
29
devel/ocaml-cmdliner/Makefile
Normal file
@ -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>
|
2
devel/ocaml-cmdliner/distinfo
Normal file
2
devel/ocaml-cmdliner/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (cmdliner-0.9.7.tbz) = 9c19893cffb5d3c3469ee0cce85e3eeeba17d309b33b9ace31aba06f68f0bf7a
|
||||
SIZE (cmdliner-0.9.7.tbz) = 50343
|
10
devel/ocaml-cmdliner/pkg-descr
Normal file
10
devel/ocaml-cmdliner/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user