opam-version: "2.0" maintainer: "simonjbeaumont@gmail.com" authors: "Si Beaumont" homepage: "https://github.com/simonjbeaumont/ocaml-pci" bug-reports: "https://github.com/simonjbeaumont/ocaml-pci/issues" dev-repo: "git+https://github.com/simonjbeaumont/ocaml-pci.git" build: [ ["./configure"] [make] # ["./configure" "--enable-tests"] {with-test} # [make "test"] {with-test} # Tests are machine configuration dependent ] install: [make "install"] remove: [ ["ocamlfind" "remove" "pci"] ["ocamlfind" "remove" "pci_bindings"] ] depends: [ "ocaml" {>= "4.01.0" & < "5.0.0"} "ctypes" {>= "0.4" & < "0.21.0"} "ocamlfind" {build} # "ounit" {with-test} "ocamlbuild" {build} ] available: os = "linux" depexts: [ ["hwdata" "libpci-dev"] {os-family = "debian"} ["hwdata" "pciutils-devel"] {os-distribution = "centos"} ["hwdata" "pciutils-dev"] {os-distribution = "alpine"} ["hwdata" "pciutil-devel"] {os-distribution = "fedora"} ] post-messages: [ "This package requires libpci-dev (>= 3.2.0) to be installed on your system" {failure & (os = "debian")} "This package requires libpci-dev (>= 3.2.0) to be installed on your system" {failure & (os = "ubuntu")} "This package requires pciutils-devel (>= 3.2.0) to be installed on your system" {failure & (os = "centos")} ] synopsis: "Ctypes bindings to libpci for OCaml" flags: light-uninstall url { src: "https://github.com/simonjbeaumont/ocaml-pci/archive/v1.0.1.tar.gz" checksum: [ "sha256=017aca48786abf8c0b4ada693ab295e600a895d5f164b14f3ccc7a3a812dafbe" "md5=0b1dff30d63b9104c4f9b2a175023e27" ] }