opam-version: "2.0"
maintainer: "andreashauptmann@t-online.de"
authors: [ "andreashauptmann@t-online.de" ]
license: "LGPL-2.1+ with OCaml linking exception"
homepage: "https://fdopen.github.io/ppx_cstubs/"
dev-repo: "git+https://github.com/fdopen/ppx_cstubs.git"
doc: "https://fdopen.github.io/ppx_cstubs/"
bug-reports: "https://github.com/fdopen/ppx_cstubs/issues"
build: [
  ["dune" "build" "-p" name "-j" jobs]
]
depends: [
  "ctypes" {>= "0.13.0" & < "0.18"}
  "integers"
  "num"
  "result"
  "containers" {>= "2.2"}
  "cppo" {build & >= "1.3"}
  "ocaml" {>= "4.04.2" & < "4.13.0"}
  "ppxlib" {>= "0.22.0"}
  "ocamlfind" {>= "1.7.2"} # not only a build dependency, it depends on findlib.top
  "dune" {>= "1.6"}
  "re" {>= "1.7.2"}
]

synopsis: """
Preprocessor for easier stub generation with ctypes
"""

description: """
ppx_cstubs is a ppx-based preprocessor for stub generation with
ctypes. ppx_cstubs creates two files from a single ml file: a file
with c stub code and an OCaml file with all additional boilerplate
code.
"""
url {
  src: "https://github.com/fdopen/ppx_cstubs/archive/0.6.1.tar.gz"
  checksum: [
    "md5=aa6e7bf797bca6436c0457f143d959e2"
    "sha512=35aea15f898aef2149599c5ce3407d25cb4ed557e3b13d9222dc47acaa69703c5b3ee1550f19c1b7c28bd7b892e0a4a084c9cdb45d59177f21a3222046a25ca2"
  ]
}
