# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup github    1.0
PortGroup ocaml     1.1

name                ocaml-ppxlib
# NB: 0.36.0+ bumps the internal AST to 5.2.0 and requires updating
# ppx_deriving, sedlex, bisect_ppx, lwt, the entire Jane Street
# ppx_* v0.16 to v0.17 suite, and OCaml 5.3+ (via ppxlib_jane).
github.setup        ocaml-ppx ppxlib 0.35.0
revision            0

categories          ocaml devel
maintainers         {landonf @landonf} openmaintainer
license             MIT
description         Standard library for ppx rewriters
long_description    Ppxlib is the standard library for ppx rewriters and other \
                    programs that manipulate the in-memory reprensation of the \
                    OCaml parsetree.

checksums           rmd160  8a79ce87e4c9295af3c79cce8254015648f88329 \
                    sha256  94cff5e18339d8582319beb8e9caa320c3482d9000c1269dad421565a2e8ce57 \
                    size    588917
github.tarball_from archive

conflicts           ocaml-migrate-parsetree

depends_lib         port:ocaml-ppx_derivers \
                    port:ocaml-sexplib0 \
                    port:ocaml-compiler-libs \
                    port:ocaml-stdlib-shims

ocaml.build_type    dune

post-destroot {
    # Installs a number of build-time-only tools under relatively generic
    # binary names (e.g. 'pp')
    delete "${destroot}${prefix}/bin"
}
