opam-version: "2.0"
maintainer: "Gregory Tsipenyuk <gregtsip@gmail.com>"
authors: "Gregory Tsipenyuk <gregtsip@gmail.com>"
homepage: "https://github.com/gregtatcam/imaplet-lwt"
bug-reports: "https://github.com/gregtatcam/imaplet-lwt/issues"
dev-repo: "git+https://github.com/gregtatcam/imaplet-lwt.git"
license: "MIT"

build: [
  ["./configure" "--prefix=%{prefix}%"]
  [make]
]
install: [make "install"]
remove: [
  ["ocamlfind" "remove" "imaplet"]
  ["rm" "-f"
    "%{bin}%/imaplet"
    "%{bin}%/imaplet_configure"
    "%{bin}%/imaplet_create_account"
    "%{bin}%/imaplet_deploy"
    "%{bin}%/imaplet_irmin_build"
    "%{bin}%/imaplet_irmin_read"
    "%{bin}%/imaplet_maildir_index"
    "%{bin}%/smtplet"
  ]
]
depends: [
  "ocaml" {>= "4.01.0"}
  "ocamlfind" {build}
  "lwt"
  "fieldslib" {<= "113.00.00"}
  "cohttp" {>= "0.18.2"}
  "git" {>= "1.5.1"}
  "irmin" {>= "0.9.5" & < "0.10.0"}
  "irmin-unix" {< "0.12.0"}
  "re"
  "tls" {>= "0.6.0"}
  "nocrypto" {>= "0.5.0" & < "0.5.3"}
  "dns" {>= "0.15.2" & < "2.0.0"}
  "menhir"
  "ocamlbuild" {build}
]
synopsis: "IMAP server prototype, supports IMAPv4rev1"
flags: light-uninstall
url {
  src: "https://github.com/gregtatcam/imaplet-lwt/archive/v0.1.14.tar.gz"
  checksum: "md5=f27f505c0dc254ddfdae0eef10aeb88a"
}
