# -*- 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-ppx_protocol_conv
github.setup        andersfugmann ppx_protocol_conv 5.2.3
revision            2
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             BSD
description         Ppx for generating serialisation and de-serialisation functions \
                    of OCaml types
long_description    {*}${description}
use_bzip2           yes
extract.suffix      .tbz
distname            ppx_protocol_conv-${version}
checksums           rmd160  78b9eb4462144a5ca869404ef32d08bbd2656bdb \
                    sha256  3fe42f8deaee6b686cae81ac8cf650be299dd6c86b718e90ea05e903d7fa51b4 \
                    size    42836
github.tarball_from releases

depends_lib-append  port:ocaml-base \
                    port:ocaml-ppxlib

ocaml.build_type    dune

subport ocaml-ppx_protocol_conv_json {
    description     JSON driver for Ppx_protocol_conv

    depends_lib     port:ocaml-ppx_expect \
                    port:ocaml-ppx_inline_test \
                    port:ocaml-ppx_protocol_conv \
                    port:ocaml-yojson
}

subport ocaml-ppx_protocol_conv_xmlm {
    description     Xmlm driver for Ppx_protocol_conv

    depends_lib     port:ocaml-ezxmlm \
                    port:ocaml-ppx_protocol_conv
}
