opam-version: "2.0"
maintainer: "zandoye@gmail.com"
authors: [ "ZAN DoYe" ]
homepage: "https://bitbucket.org/zandoye/ocaml-tidy/"
bug-reports: "https://bitbucket.org/zandoye/ocaml-tidy/issues"
license: "MIT"

build: [
  ["sh" "-exec" "cc -I/usr/include/tidy -I/usr/local/include/tidy $CFLAGS test.c -ltidy"]
]

depexts: [
  ["libtidy-dev"] {os-family = "debian"}
  ["libtidy-devel"] {os-distribution = "opensuse"}
  ["tidy"] {os-distribution = "arch"}
  ["app-text/tidy-html5"] {os-distribution = "gentoo"}
  ["libtidy-devel"] {os-distribution = "fedora"}
  ["libtidy-devel"] {os-distribution = "centos"}
  ["tidy-html5"] {os = "macos" & os-distribution = "homebrew"}
  ["tidy-html5"] {os = "freebsd"}
]
synopsis: "Virtual package relying on libtidy installation"
description: "This package can install only if the libtidy is available on the system"

extra-files: [
  "test.c" "md5=10ca381a34acb820dbaf7dffcbe8ae35"
]

flags: [conf]

