opam-version: "2.0"
maintainer: "Sylvain Le Gall <sylvain+ocaml@le-gall.net>"
authors: [ "Sylvain Le Gall" ]
license: "LGPL-2.1-only WITH OCaml-LGPL-linking-exception"
homepage: "https://github.com/gildor478/ocaml-gettext"
dev-repo: "git+https://github.com/gildor478/ocaml-gettext.git"
bug-reports: "https://github.com/gildor478/ocaml-gettext/issues"
doc: "https://gildor478.github.io/ocaml-gettext/"
build: [
  ["ocaml" "configure.ml"
    "--with-defaultlocaledir" "%{lib}%/gettext/share/locale"
    "--version" version]
  ["dune" "build" "-p" name "-j" jobs
   "@install"
   "@doc" {with-doc}
   "@runtest" {with-test} ]
]
depends: [
  "ocaml" {>= "4.03.0"}
  "dune" {>= "1.11.0"}
  "camomile" {>= "2.0.0"}
  "gettext" {= version}
  "ounit" {with-test & > "2.0.8"}
  "fileutils" {with-test}
]
synopsis: "Internationalization library using camomile (i18n)"
description:"""
See gettext package description.
"""
url {
  src:
    "https://github.com/gildor478/ocaml-gettext/releases/download/v0.4.2/gettext-v0.4.2.tbz"
  checksum: [
    "sha256=8b672c7c521b8ac753c6a90925243cdd367dd5202e7c1e5d1a2507b11ad5d6a7"
    "sha512=72bad53ce15ccc5113e4cfdc76b56c633926bb3702623964e006a99d21a758e7d47f0b9b67bebffe8b9a0c5f4d018cb7d4ae665568dfab52070ed355d5f9d31b"
  ]
}
patches: [
  "0001-Do-not-mark-ml2c_lc-as-inline-due-to-changed-semanti.patch"
  "0002-Fix-a-spelling-error.patch"
  "0003-Fix-compilation-with-camomile-2.0.0.patch"
  "0004-Fix-compilation-with-OCaml-5.x.patch"
]
extra-files: [
  ["0001-Do-not-mark-ml2c_lc-as-inline-due-to-changed-semanti.patch" "md5=534c5be7702bd7327caef98d936b9acb"]
  ["0002-Fix-a-spelling-error.patch" "md5=a77a0f80faec91f8fc4a886592c92da7"]
  ["0003-Fix-compilation-with-camomile-2.0.0.patch" "md5=7fef5b7aee9128310453d4d800a804f5"]
  ["0004-Fix-compilation-with-OCaml-5.x.patch" "md5=d0a95c9f5b00917591ff50974fbcde42"]
]
