opam-version: "2.0"
maintainer: "roberto@dicosmo.org"
authors: [
  "Roberto Di Cosmo"
  "Ralf Treinen"
  "Stefano Zacchiroli"
  "Pietro Abate"
  "Jaap Boender"
  "Jakub Zwolakowski"
  "Olivier Rosello"
  "Johannes Schauer"
]
homepage: "http://www.mancoosi.org/software/"
license: "LGPL-3.0-or-later with OCaml-LGPL-linking-exception"
build: [
  ["./configure" "--with-ocamlgraph" "--bindir=%{bin}%"]
  [make "TARGETS="]
]
remove: [
  ["ocamlfind" "remove" "dose3"]
  ["rm" "-f"
      "%{bin}%/distcheck"
      "%{bin}%/debcheck"
      "%{bin}%/rpmcheck"
      "%{bin}%/eclipsecheck"]
]
depends: [
  "ocaml"
  "ocamlgraph" {= "1.8.5"}
  "cudf" {>= "0.7"}
  "camlp4"
  ("extlib" | "extlib-compat")
  "re" {>= "1.2.0"}
  "ocamlbuild" {build}
]
patches: [
  "0003-Removed-hard-failure-cases-in-favor-of-finer-diagnos.patch"
  "0004-Remove-broken-assert.patch"
  "0005-Add-a-check_request-function-allowing-more-control-o.patch"
  "0002-ocamlgraph-1.8.6.diff" {ocamlgraph:version >= "1.8.6"}
]
install: [make "install"]
depexts: ["perl-Pod-Html"] {os-distribution = "fedora"}
synopsis: "Dose library (part of Mancoosi tools)"
description: """
This version has been patched specifically for compiling OPAM itself, but
remains backwards-compatible, and the patches will be backported upstream."""
flags: light-uninstall
extra-files: [
  [
    "0005-Add-a-check_request-function-allowing-more-control-o.patch"
    "md5=fdcd12e2053172a3af032c198d66c0bb"
  ]
  ["0004-Remove-broken-assert.patch" "md5=f996dd85cca97fa0a8a7d0f561b8784a"]
  [
    "0003-Removed-hard-failure-cases-in-favor-of-finer-diagnos.patch"
    "md5=3e550296be4774f254404ebdc3ad299d"
  ]
  ["0002-ocamlgraph-1.8.6.diff" "md5=c44ed3dc7a5c5128089abf11278f042b"]
]
url {
  src:
    "https://gforge.inria.fr/frs/download.php/file/33677/dose3-3.2.2.tar.gz"
  checksum: "md5=3ffed1987a040024076c08f4a7af9b21"
}
