opam-version: "2.0"
maintainer:   ["David Kaloper Meršinjak <dk505@cam.ac.uk>"]
authors:      ["David Kaloper Meršinjak <dk505@cam.ac.uk>"]
license:      "ISC"
homepage:     "https://github.com/pqwy/ocaml-papi"
doc:          "https://pqwy.github.io/ocaml-papi/doc"
dev-repo:     "git+https://github.com/pqwy/ocaml-papi.git"
bug-reports:  "https://github.com/pqwy/ocaml-papi/issues"
synopsis:     "Performance Application Programming Interface (PAPI) bindings"

build: [ [ "dune" "subst" ] {pinned}
         [ "dune" "build" "-p" name "-j" jobs ]
         [ "dune" "runtest" "-p" name "-j" jobs ] {with-test} ]

depends: [
  "dune" {>= "1.7"}
  "fmt" {with-test} ]

depexts: [
  ["libpapi-dev"] {os-family = "debian"}
  ["papi-devel"] {os-distribution = "centos"}
  ["papi"] {os-distribution = "arch"}
]
description: """
Papi provides OCaml bindings to PAPI, a C library for portable access to
hardware performance counters.
"""
url {
  src:
    "https://github.com/pqwy/ocaml-papi/releases/download/v0.1.1/papi-v0.1.1.tbz"
  checksum: "md5=4acb07e494c1a2c0ff8244d042f02629"
}
