opam-version: "2.0"
maintainer: "dave.scott@eu.citrix.com"
homepage: "https://libvirt.org/ocaml/"
bug-reports: "http://libvirt.org/bugs.html"
authors: "Richard W.M. Jones"
tags: [
  "org:mirage"
  "org:xapi-project"
]
install: [
    [make "install-opt"]
]
build: [
  ["./configure"]
  [
    "env"
    "CPPFLAGS=-Wno-error=tautological-compare -Wno-error=unused-function"
    make
    "all"
  ] {os = "macos"}
  [make "all"] {os != "macos"}
  [make "opt"]
]
remove: [["ocamlfind" "remove" "libvirt"]]
depends: [
  "ocaml" {< "4.03.0"}
  "ocamlfind"
]
depexts: [
  ["libvirt-dev"] {os-family = "debian"}
  ["libvirt"] {os = "macos" & os-distribution = "homebrew"}
]
synopsis:
  "Libvirt is a portable toolkit to interact with the virtualisation capabilities of Linux, Solaris and other operating systems."
description: """
From http://libvirt.org/ocaml/

Some things which you might want to do with ocaml-libvirt:

  * Monitor performance of virtual machines
  * Pause and resume virtual machines according to demand
  * Provision new virtual machines automatically for customers
  * Configure how virtual machines are networked together"""
flags: light-uninstall
url {
  src: "http://libvirt.org/sources/ocaml/ocaml-libvirt-0.6.1.4.tar.gz"
  checksum: "md5=92723c155c009880475f3c9a093d1fe6"
}
