# -*- 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           ocaml 1.1

name                ocaml-ocf
version             1.0.0
revision            0
categories          ocaml devel
maintainers         {pguyot @pguyot} openmaintainer
license             GPL-3

description         OCaml library to read and write configuration files in JSON syntax
long_description    {*}${description}

homepage            https://zoggy.frama.io/ocf/
master_sites        ${homepage}releases/

distname            ocf-${version}

use_bzip2           yes

checksums           rmd160  22ee60caa9cac1f6179f185947eb32a31f955c84 \
                    sha256  5e463d8f008ca20c273c03934161f44c5b62ae65dc37015f23506fcf9c012db4 \
                    size    14091

depends_lib-append  port:ocaml-yojson

ocaml.build_type    dune

subport ocaml-ocf_ppx {
    description         Preprocessor for the Ocf library
    long_description    {*}${description}

    depends_lib-append  port:ocaml-ocf \
                        port:ocaml-ppxlib
}

livecheck.type      regex
livecheck.url       https://framagit.org/zoggy/ocf/-/tags
livecheck.regex     {ocf-(\d+\.\d+\.\d+)\.tar}
