opam-version: "2.0"
maintainer: "opensource@janestreet.com"
authors: ["Jane Street Group, LLC <opensource@janestreet.com>"]
homepage: "https://github.com/ocaml-ppx/ppxlib"
bug-reports: "https://github.com/ocaml-ppx/ppxlib/issues"
dev-repo: "git+https://github.com/ocaml-ppx/ppxlib.git"
doc: "https://ocaml-ppx.github.io/ppxlib/"
license: "MIT"
build: [
  ["dune" "subst"] {pinned}
  ["dune" "build" "-p" name "-j" jobs]
]
run-test: [
  ["dune" "runtest" "-p" name "-j" jobs]
]
depends: [
  "ocaml"                   {>= "4.04.1" & < "4.13"}
  "ocaml"                   {with-test & >= "4.10" & < "4.12"}
  "dune"                    {>= "1.11"}
  "ocaml-compiler-libs"     {>= "v0.11.0"}
  "ocaml-migrate-parsetree" {>= "2.1.0"}
  "ppx_derivers"            {>= "1.0"}
  "sexplib0"                {>= "v0.12"}
  "stdlib-shims"
  "ocamlfind"               {with-test}
  "cinaps"                  {with-test & >= "v0.12.1"}
  "base"                    {with-test}
  "stdio"                   {with-test}
]
synopsis: "Standard library for ppx rewriters"
description: """
Ppxlib is the standard library for ppx rewriters and other programs
that manipulate the in-memory reprensation of OCaml programs, a.k.a
the "Parsetree".

It also comes bundled with two ppx rewriters that are commonly used to
write tools that manipulate and/or generate Parsetree values;
`ppxlib.metaquot` which allows to construct Parsetree values using the
OCaml syntax directly and `ppxlib.traverse` which provides various
ways of automatically traversing values of a given type, in particular
allowing to inject a complex structured value into generated code.
"""
x-commit-hash: "cb9be6802b983f7851c35c91400bbdd28536215f"
url {
  src:
    "https://github.com/ocaml-ppx/ppxlib/releases/download/0.19.0/ppxlib-0.19.0.tbz"
  checksum: [
    "sha256=b4a438247935b0e68b6423875a30f086bcd9b9f68ca96f71b5325570aeafd801"
    "sha512=ead654a6430e2809c44ed4d16dc493a35258fc04b07d8f9268c0362ef21cf46a8e2ea83752ae33ad083cee788925ed232717eb76f40b72b136e03ef6cfdf65bf"
  ]
}
