opam-version: "2.0"
maintainer: "Yann Hamdaoui <yann.hamdaoui@gmail.com>"
authors: "Yann Hamdaoui <yann.hamdaoui@gmail.com>"
homepage: "https://github.com/yannham/mechaml"
bug-reports: "https://github.com/yannham/mechaml/issues"
license: "LGPL-3.0-only"
dev-repo: "git://github.com/yannham/mechaml.git"
build: [
  ["./configure" "--prefix=%{prefix}%"]
  [make]
  ["./configure" "--enable-tests"] {with-test}
  [make "test"] {with-test}
  ["make doc"] {with-doc}
]
install: [make "install"]
remove: ["ocamlfind" "remove" "mechaml"]
depends: [
  "ocaml" {>= "4.03.0"}
  "ocamlbuild" {build}
  "ocamlfind" {build}
  "cohttp" {>= "0.21.0" & < "1.0"}
  "cohttp-lwt"
  "cohttp-lwt-unix"
  "lwt"
  "uri" {< "3.0.0"}
  "lambdasoup" {< "0.7.0"}
  "alcotest" {with-test & >= "0.8.0"}
]
synopsis:
  "Functional web scraping library based on Cohttp, Lambdasoup and Lwt"
description: """
Mechaml is a web scraping library that allows to :
* Fetch web content
* Analyze, fill and submit HTML forms
* Handle cookies, headers and redirections

Mechaml is built on top of existing libraries that provide low-level features : Cohttp (https://github.com/mirage/ocaml-cohttp) and
Lwt (https://github.com/ocsigen/lwt) for asynchronous I/O and HTTP handling, and
 Lambdasoup (https://github.com/aantron/lambda-soup) to parse HTML. It provides
an interface that handles the interactions between these and add a few
other features."""
flags: light-uninstall
url {
  src: "https://github.com/yannham/mechaml/archive/1.0.0.tar.gz"
  checksum: "md5=eae9ae1c4614447314de681018886030"
}
