opam-version: "2.0"
maintainer:   "thomas@gazagnaire.org"
authors:      ["Thomas Gazagnaire" "Trevor Summers Smith"]
homepage:     "https://github.com/mirage/ocaml-hex"
bug-reports:  "https://github.com/mirage/ocaml-hex/issues"
dev-repo: "git+https://github.com/mirage/ocaml-hex.git"
license:      "ISC"

build: [
  ["./configure" "--prefix" prefix]
  [make]
  ["./configure" "--prefix" prefix "--enable-tests"] {with-test}
  [make "test"] {with-test}
]
install: [make "install"]
remove:  ["ocamlfind" "remove" "hex"]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind" {build}
  "cstruct" {>= "1.7.0" & < "5.0.0"}
  "ocamlbuild" {build}
]
synopsis: "Minimal library providing hexadecimal converters."
description: """
```ocaml
#require "hex";;
# Hex.of_string "Hello world!";;
- : Hex.t = "48656c6c6f20776f726c6421"
# Hex.to_string "dead-beef";;
- : string = "ޭ��"
# Hex.hexdump (Hex.of_string "Hello world!\\n")
00000000: 4865 6c6c 6f20 776f 726c 6421 0a        Hello world!.
- : unit = ()
```"""
flags: light-uninstall
url {
  src: "https://github.com/mirage/ocaml-hex/archive/1.0.0.tar.gz"
  checksum: "md5=e8af07c37b54076dc33a86e203b0c0d3"
}
