opam-version: "2.0"
maintainer: "Christophe.Troestler@umons.ac.be"
authors: [
  "Christophe Troestler"
  "Noémie Meunier"
  "Pierre Hauweele"
]
homepage: "https://forge.ocamlcore.org/projects/ml-gammu/"
license: "LGPL-3.0-only with OCaml-LGPL-linking-exception"
dev-repo: "git+https://github.com/Chris00/ocaml-gammu.git"
bug-reports: "https://github.com/Chris00/ocaml-gammu/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "gammu"]]
depends: [
  "ocaml" {< "4.06"}
  "ocamlfind"
  "ocamlbuild" {build}
  "conf-pkg-config" {build}
]
depexts: [
  ["libgammu-dev"] {os-family = "debian"}
  ["epel-release" "gammu-devel"] {os-distribution = "centos"}
  ["gammu-devel"] {os-distribution = "fedora"}
  ["lib64gammu-devel"] {os-distribution = "mageia"}
  ["gammu-devel"] {os-family = "suse"}
  ["gammu-dev"] {os-distribution = "alpine"}
  ["gammu"] {os = "macos" & os-distribution = "homebrew"}
]
install: ["ocaml" "setup.ml" "-install"]
synopsis: "Cell phone and SIM card access."
description: """
Gammu is a binding to libGammu which allows to manage data in your
cell phone such as contacts, calendar or messages."""
flags: light-uninstall
url {
  src: "https://download.ocamlcore.org/ml-gammu/ml-gammu/0.9.2/gammu-0.9.2.tar.gz"
  checksum: "md5=f12232e69d989f2d353117bc33ade0e4"
}
