opam-version: "2.0"
maintainer: "Dario Teixeira <dario.teixeira@nleyten.com>"
authors: ["Dario Teixeira <dario.teixeira@nleyten.com>"]
homepage: "http://bookaml.forge.ocamlcore.org/"
bug-reports: "https://github.com/darioteixeira/bookaml/issues"
dev-repo: "git+https://github.com/darioteixeira/bookaml.git"
license: "LGPL-2.1-only with OCaml-LGPL-linking-exception"
build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--docdir"
    "%{doc}%/bookaml"
    "--%{ocsigenserver:enable}%-ocsigen"
    "--%{ocamlnet:enable}%-ocamlnet"
  ]
  [make]
  [make "doc"]
]
remove: [["ocamlfind" "remove" "bookaml"]]
depends: [
  "ocaml" {>= "4.00.0"}
  "ocamlfind"
  "batteries"
  "calendar" {>= "2.00"}
  "cryptokit"
  "ocamlnet" {< "4"}
  "tyxml" {< "4.3"}
  "camlp4"
  "ocamlbuild" {build}
]
depopts: [
    "lwt"
    "ocsigenserver"
]
install: [make "install"]
synopsis: "Library for retrieving information about published books"
description: """
Bookaml is a library providing a basic API to gather information about a book
given its ISBN, or to find any number of books matching given search criteria.
The library is closely tied to the Amazon Product Advertising API, which is
used internally for retrieving book information."""
flags: light-uninstall
url {
  src: "https://github.com/darioteixeira/bookaml/archive/v2.0.tar.gz"
  checksum: "md5=e9c0fc2caa4394f1912d50475e30561f"
}
