opam-version: "2.0"
maintainer: "Markus Mottl <markus.mottl@gmail.com>"
authors: [ "Markus Mottl <markus.mottl@gmail.com>" ]
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
homepage: "http://mmottl.github.io/pcre-ocaml"
dev-repo: "git+https://github.com/mmottl/pcre-ocaml.git"
bug-reports: "https://github.com/mmottl/pcre-ocaml/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "pcre"]
]
depends: [
  "ocaml" {>= "3.12"}
  "base-bytes"
  "ocamlfind" {build & >= "1.5"}
  "ocamlbuild" {build & != "0.9.0"}
  "conf-libpcre"
]
depexts: [
  ["ocaml-ocamldoc"] {os-distribution = "centos"}
  ["ocaml-ocamldoc"] {os-distribution = "fedora"}
  ["ocaml-ocamldoc"] {os-family = "suse"}
]
synopsis:
  "Bindings to the Perl Compatibility Regular Expressions library"
description: """
pcre-ocaml offers library functions for string pattern matching and
substitution, similar to the functionality offered by the Perl
language."""
flags: light-uninstall
url {
  src:
    "https://github.com/mmottl/pcre-ocaml/releases/download/v7.2.3/pcre-ocaml-7.2.3.tar.gz"
  checksum: "md5=90b503355160d7422a7c3ef1623e6444"
}
