diff options
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/ocaml-uutf/Makefile | 31 | ||||
-rw-r--r-- | devel/ocaml-uutf/distinfo | 2 | ||||
-rw-r--r-- | devel/ocaml-uutf/pkg-descr | 11 |
4 files changed, 45 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index e5308177594d..58b93f1743e2 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1491,6 +1491,7 @@ SUBDIR += ocaml-sexplib SUBDIR += ocaml-typeconv SUBDIR += ocaml-ulex + SUBDIR += ocaml-uutf SUBDIR += ocaml-xstr SUBDIR += ocaml-xstrp4 SUBDIR += ocfpcsc diff --git a/devel/ocaml-uutf/Makefile b/devel/ocaml-uutf/Makefile new file mode 100644 index 000000000000..2a84b72c2041 --- /dev/null +++ b/devel/ocaml-uutf/Makefile @@ -0,0 +1,31 @@ +# Created by: Veniamin Gvozdikov <vg@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= uutf +PORTVERSION= 0.9.4 +CATEGORIES= devel +MASTER_SITES= http://erratique.ch/software/uutf/releases/ +PKGNAMEPREFIX= ocaml- + +MAINTAINER= vg@FreeBSD.org +COMMENT= Non-blocking streaming Unicode codec for OCaml + +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 uutf.cmxs uutf.cma uutf.a + +do-install: + ${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}/uutf + cd ${WRKSRC} && ocamlfind install -destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib uutf pkg/META _build/src/uutf.a _build/src/uutf.cma _build/src/uutf.cmi _build/src/uutf.cmx _build/src/uutf.cmxa _build/src/uutf.cmxs _build/src/uutf.mli + ${INSTALL_LIB} ${WRKSRC}/_build/src/uutf.cmxs \ + ${STAGEDIR}${OCAMLFIND_DESTDIR}/uutf + +.include <bsd.port.mk> diff --git a/devel/ocaml-uutf/distinfo b/devel/ocaml-uutf/distinfo new file mode 100644 index 000000000000..dadbedfcb0c5 --- /dev/null +++ b/devel/ocaml-uutf/distinfo @@ -0,0 +1,2 @@ +SHA256 (uutf-0.9.4.tbz) = 13706722a0037b167eef359bac68d5426d05f64aa308f44c1784aace9577e1b8 +SIZE (uutf-0.9.4.tbz) = 36987 diff --git a/devel/ocaml-uutf/pkg-descr b/devel/ocaml-uutf/pkg-descr new file mode 100644 index 000000000000..a014d3114c69 --- /dev/null +++ b/devel/ocaml-uutf/pkg-descr @@ -0,0 +1,11 @@ +Uutf is an non-blocking streaming Unicode codec for OCaml to decode and +encode the UTF-8, UTF-16, UTF-16LE and UTF-16BE encoding schemes. It +can efficiently work character by character without blocking on IO. +Decoders perform character position tracking and support newline +normalization. + +Functions are also provided to fold over the characters of UTF encoded +OCaml string values and to directly encode characters in OCaml Buffer.t +values. + +WWW: http://erratique.ch/software/uutf |