opam-version: "2.0"
maintainer: "Daniel Bünzli <daniel.buenzl i@erratique.ch>"
authors: ["Daniel Bünzli <daniel.buenzl i@erratique.ch>"]
homepage: "http://erratique.ch/software/uuseg"
doc: "http://erratique.ch/software/uuseg"
dev-repo: "git+http://erratique.ch/repos/uuseg.git"
bug-reports: "https://github.com/dbuenzli/uuseg/issues"
tags: [ "segmentation" "text" "unicode" "org:erratique" ]
license: "ISC"
depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
  "topkg" {build}
  "uchar"
  "uucp" {>= "11.0.0" & < "12.0.0"}
]
depopts: [
  "uutf"
  "cmdliner"
  "uutf" {with-test}
  "cmdliner" {with-test}
]
conflicts: [ "uutf" {< "1.0.0"} ]
build: [[
  "ocaml" "pkg/pkg.ml" "build"
  "--pinned" "%{pinned}%"
  "--with-uutf" "%{uutf:installed}%"
  "--with-cmdliner" "%{cmdliner:installed}%" ]]
synopsis: "Unicode text segmentation for OCaml"
description: """
Uuseg is an OCaml library for segmenting Unicode text. It implements
the locale independent [Unicode text segmentation algorithms][1] to
detect grapheme cluster, word and sentence boundaries and the
[Unicode line breaking algorithm][2] to detect line break
opportunities.

The library is independent from any IO mechanism or Unicode text data
structure and it can process text without a complete in-memory
representation.

Uuseg depends on [Uucp](http://erratique.ch/software/uucp) and
optionally on [Uutf](http://erratique.ch/software/uutf) for support on
OCaml UTF-X encoded strings. It is distributed under the ISC license.

[1]: http://www.unicode.org/reports/tr29/
[2]: http://www.unicode.org/reports/tr14/"""
url {
  src: "http://erratique.ch/software/uuseg/releases/uuseg-11.0.0.tbz"
  checksum: "md5=47f29c44d3fc3fe0c3203ac363ce81d4"
}
