opam-version: "2.0"
maintainer: "Edgar Aroutiounian <edgar.factorial@gmail.com>"
authors: "Edgar Aroutiounian <edgar.factorial@gmail.com>"
homepage: "http://hyegar.com"
bug-reports: "https://github.com/fxfactorial/ocaml-libssh/issues"
license: "BSD-3-Clause"
tags: "clib:ssh"
dev-repo: "git+https://github.com/fxfactorial/ocaml-libssh.git"
build: [
  ["oasis" "setup"]
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["oasis" "setup"] {with-test}
  ["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" "ssh"]
depends: [
  "ocaml" {>= "4.02.3"}
  "oasis" {build & >= "0.4"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
depexts: [
  ["libssh-devel"] {os-distribution = "centos"}
  ["libssh-dev"] {os-family = "debian"}
  ["libssh"] {os-distribution = "homebrew" & os = "macos"}
]
post-messages: [
  "This package requires libssh https://www.libssh.org on your system"
    {failure}
]
synopsis: "Bindings to libssh"
description: """
Bindings to libssh, https://www.libssh.org. This library exposes both
the Client and Server side implementations of ssh."""
flags: light-uninstall
url {
  src: "https://github.com/fxfactorial/ocaml-libssh/archive/v0.1.tar.gz"
  checksum: "md5=5eea8bf42523058cd1a6c9bada7f5b3f"
}
