[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 35/96] gnu: Add ocaml-uutf
From: |
Julien Lepiller |
Subject: |
[PATCH 35/96] gnu: Add ocaml-uutf |
Date: |
Tue, 3 Jan 2017 20:11:16 +0100 |
* gna/packages/ocaml.scm (ocaml-uutf): New variable.
---
gnu/packages/ocaml.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 48583e8c0..a4b129f42 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -1513,3 +1513,34 @@ representation of the data.")
(description "The uchar package provides a compatibility library for the
`Uchar` module introduced in OCaml 4.03.")
(license license:lgpl2.1)))
+
+(define-public ocaml-uutf
+ (package
+ (name "ocaml-uutf")
+ (version "1.0.0")
+ (home-page "http://erratique.ch/software/uutf")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append home-page "/releases/uutf-" version ".tbz"))
+ (sha256
+ (base32
+ "08i0cw02cxw4mi2rs01v9xi307qshs6fnd1dlqyb52kcxzblpp37"))))
+ (build-system ocaml-build-system)
+ (arguments `(#:tests? #f
+ #:build-flags (list "build")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (native-inputs `(("opam" ,opam)
+ ("topkg" ,ocaml-topkg)))
+ (propagated-inputs `(("uchar" ,ocaml-uchar)
+ ("cmdliner" ,ocaml-cmdliner)))
+ (synopsis "Non-blocking streaming Unicode codec for OCaml")
+ (description "Uutf is a non-blocking streaming codec 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.")
+ (license license:isc)))
--
2.11.0
- [PATCH 25/96] gnu: Add ocaml-ppx-tools, (continued)
- [PATCH 25/96] gnu: Add ocaml-ppx-tools, Julien Lepiller, 2017/01/03
- [PATCH 26/96] gnu: Add ocaml-react, Julien Lepiller, 2017/01/03
- [PATCH 27/96] gnu: Add ocaml-ssl, Julien Lepiller, 2017/01/03
- [PATCH 28/96] gnu: Add ocaml-lwt, Julien Lepiller, 2017/01/03
- [PATCH 29/96] gnu: Add ocaml-logs, Julien Lepiller, 2017/01/03
- [PATCH 30/96] gnu: Add ocaml-fpath, Julien Lepiller, 2017/01/03
- [PATCH 31/96] gnu: Add ocaml-bos, Julien Lepiller, 2017/01/03
- [PATCH 32/96] gnu: Add ocaml-xmlm, Julien Lepiller, 2017/01/03
- [PATCH 33/96] gnu: Add ocaml-ulex, Julien Lepiller, 2017/01/03
- [PATCH 34/96] gnu: Add ocaml-uchar, Julien Lepiller, 2017/01/03
- [PATCH 35/96] gnu: Add ocaml-uutf,
Julien Lepiller <=
- [PATCH 36/96] gnu: Add ocaml-jsonm, Julien Lepiller, 2017/01/03
- [PATCH 37/96] gnu: Add ocaml-ocurl, Julien Lepiller, 2017/01/03
- [PATCH 38/96] gnu: Add ocaml-base64, Julien Lepiller, 2017/01/03
- [PATCH 39/96] gnu: Add ocamlify, Julien Lepiller, 2017/01/03
- [PATCH 41/96] gnu: Add ocaml-batteries, Julien Lepiller, 2017/01/03
- [PATCH 40/96] gnu: Add omake, Julien Lepiller, 2017/01/03
- [PATCH 42/96] gnu: Add ocaml-pcre, Julien Lepiller, 2017/01/03
- [PATCH 43/96] gnu: Add ocaml-expect, Julien Lepiller, 2017/01/03
- [PATCH 44/96] gnu: Add ocaml-fileutils, Julien Lepiller, 2017/01/03