opam-version: "2.0"
maintainer: "ygrek@autistici.org"
authors: "ygrek"
homepage: "https://ygrek.org/p/ocaml-geoip/"
doc: ["https://ygrek.org/p/ocaml-geoip/api/index.html"]
bug-reports: "https://github.com/ygrek/ocaml-geoip/issues"
dev-repo: "git://github.com/ygrek/ocaml-geoip.git"
tags: ["org:ygrek"]
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
remove: [["ocamlfind" "remove" "geoip"]]
depends: [
  "ocaml" {< "4.06.0"}
  "ocamlfind" {build}
  "ocamlbuild" {build}
]
depexts: [
  ["libgeoip-dev"] {os-family = "debian"}
  ["geoip"] {os = "macos" & os-distribution = "homebrew"}
  ["geoip-dev"] {os-distribution = "alpine"}
  ["GeoIP-devel"] {os-distribution = "centos"}
]
install: ["ocaml" "setup.ml" "-install"]
synopsis: "Bindings to GeoIP database library."
description:
  "GeoIP lets you discover information about a specific IP address."
flags: light-uninstall
url {
  src: "https://ygrek.org/p/release/ocaml-geoip/ocaml-geoip-0.0.2.tar.gz"
  checksum: "md5=baae04937a9d0fd02cc531b600a080b2"
  mirrors:
    "https://github.com/ygrek/ocaml-geoip/releases/download/v0.0.2/ocaml-geoip-0.0.2.tar.gz"
}
