# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "A Unicode library"
description: """
Camomile is a Unicode library for OCaml. Camomile provides Unicode character
type, UTF-8, UTF-16, UTF-32 strings, conversion to/from about 200 encodings,
collation and locale-sensitive case mappings, and more. The library is currently
designed for Unicode Standard 3.2."""
maintainer: ["romain.beauxis@gmail.com"]
authors: ["Yoriyuki Yamagata"]
license: "LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception"
homepage: "https://github.com/savonet/Camomile"
doc: "https://savonet.github.io/Camomile/"
bug-reports: "https://github.com/savonet/Camomile/issues"
depends: [
  "dune" {>= "3.4"}
  "dune-site"
  "dune-site-windows"
  "camlp-streams"
  "camlp-streams-windows"
  "ocaml-windows" {>= "4.13"}
]
build: [
  ["dune" "subst"] {dev}
  [
    "env"
    "CAMOMILE_CONFIG=env"
    "CAMOMILE_PREFIX=%{prefix}%/windows-sysroot"
    "dune"
    "build"
    "-p"
    "camomile"
    "-j"
    jobs
    "-x" "windows"
    "@install"
  ]
]
# Backport of ocaml-community/Camomile#13: dune 3.24 expands %{deps} to a
# path with a directory component, which broke charmap generation. Drop
# this override once camomile-windows ships a release carrying the fix.
patches: ["camomile-charmap-dune-3.24.patch"]
extra-files: [
  ["camomile-charmap-dune-3.24.patch" "md5=20cd5f46df063b0dbd347a5d5ca3f45f"]
]
dev-repo: "git+https://github.com/savonet/Camomile.git"
url {
  src: "https://github.com/savonet/Camomile/archive/refs/tags/v2.0.0.tar.gz"
  checksum: [
    "md5=41e02d124c3fa29ea511110d2c6532de"
    "sha512=b0ae3d921f65390e8ec88a04901dd097b568db9f9ae70fb328e9d3ddb2dd8922b9a8e8da9ace91ad9cb5f6a1310ae5b6ba502e287d6c828f4d60622289316ac8"
  ]
}
