opam-version: "2.0"
maintainer: "Oliver Gu <gu.oliver@yahoo.com>"
authors: [ "Oliver Gu <gu.oliver@yahoo.com>" ]
license: "LGPL-2.1-or-later with OCaml-LGPL-linking-exception"
homepage: "https://bitbucket.org/ogu/ibx"
dev-repo: "git+https://bitbucket.org/ogu/ibx.git"
bug-reports: "https://bitbucket.org/ogu/ibx/issues"
build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix]
  ["ocaml" "setup.ml" "-build"]
  ["ocaml" "setup.ml" "-doc"] {with-doc}
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
  ["ocamlfind" "remove" "ibx"]
]
depends: [
  "ocaml" {>= "4.02.1"}
  "async" {>= "112.17.00" & < "v0.15"}
  "base-threads"
  "core" {>= "112.17.00" & < "v0.15"}
  "fieldslib" {< "113.01.00"}
  "ocamlfind" {>= "1.3.1"}
  "sexplib" {< "113.01.00"}
  "textutils" {< "v0.15"}
  "ocamlbuild" {build}
]
depopts: [
  "gnuplot"
]
patches: [ "async.patch" ]
synopsis: "OCaml implementation of the Interactive Brokers TWS API"
description: """
IBX is a pure OCaml implementation of the Interactive Brokers Trader
Workstation API (TWS API) built on top of Jane Street's Core and Async
library."""
flags: light-uninstall
extra-files: ["async.patch" "md5=918e03e75326753ac2f71a3d8cea5210"]
url {
  src: "https://bitbucket.org/ogu/ibx/downloads/ibx-0.8.0.tar.gz"
  checksum: "md5=b5496e9fa851abb5797e3c345d6b38d0"
}
