opam-version: "2.0"
maintainer: "Romain Beauxis <toots@rastageeks.org>"
authors: "Romain Beauxis <toots@rastageeks.org>"
homepage: "https://github.com/toots/posix-getopt"
bug-reports: "https://github.com/toots/posix-getopt/issues"
license: "WTFPL"
dev-repo: "git+https://github.com/toots/posix-getopt.git"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-configure" "--enable-tests"] {with-test}
  ["ocaml" "setup.ml" "-build"] {with-test}
  ["ocaml" "setup.ml" "-test"] {with-test}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "posix-getopt"]
]
depends: [
  "ocaml"
  "ctypes" {>= "0.4" & < "0.18.0"}
  "ctypes-foreign"
  "ocamlfind" {build}
  "ocamlbuild" {build}
  "ounit" {with-test}
  "extunix" {with-test}
]
synopsis: "OCaml bindings for POSIX getopt/getopt_long"
description:
  "This module provides a simple interface for the POSIX getopt and its extensions, getopt_long and getopt_long_only."
flags: light-uninstall
url {
  src:
    "https://github.com/toots/posix-getopt/releases/download/0.1.0/posix-getopt-0.1.0.tar.gz"
  checksum: "md5=5a285e0dfc3bf293770d5310dda96127"
}
