opam-version: "2.0"
maintainer: "fabrice.le_fessant@ocamlpro.com"
authors: [
    "Robert Julien"
    "Von Tokarski Guillaume"
    "Filliatre Jean-Christophe"
    "Conchon Sylvain"
    "Le Fessant Fabrice"
]
substs: ["opam.patch"]
homepage: "http://ocamlviz.forge.ocamlcore.org/"
# dev-repo: "svn://svn.forge.ocamlcore.org/svn/ocamlviz/"
bug-reports: "https://forge.ocamlcore.org/tracker/?atid=503&group_id=104&func=browse"
license: "LGPL-2.0"
build: [
  ["mkdir" "-p" "%{lib}%/ocamlviz/camlp4"]
  ["autoconf"]
  ["./configure" "--prefix" prefix]
  [make]
]
install: [
  [make "install" "BINDIR=%{bin}%" "MANDIR=%{man}%" "OCAMLLIB=%{lib}%/ocamlviz"]
]
remove: [
  ["rm" "-rf"
    "%{bin}%/ocamlviz-ascii"
    "%{bin}%/ocamlviz-gui"
    "%{man}%/man1/ocamlviz.1"
    "%{lib}%/ocamlviz"]
]
depends: ["ocaml" "cairo2" "lablgtk" "conf-autoconf" "camlp4" "base-unsafe-string"]
patches: ["opam.patch"]
synopsis: "real-time profiling tool"
description: """
The key idea of Ocamlviz is the ability to instrument an existing
code, in real time, with lightweight monitoring annotations. Ocamlviz
can also be used as a debugging tool."""
flags: light-uninstall
extra-files: [
  ["opam.patch.in" "md5=adb704fd3664b3ce9b7e61bb02c745d0"]
  ["ocamlviz.install" "md5=0446feb2c8a0150e7e1d8168653c69c9"]
]
url {
  src: "http://ocamlviz.forge.ocamlcore.org/ocamlviz-1.01.tar.gz"
  checksum: "md5=9b5f96de1475d134287d64907c317c85"
}
