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

github.setup        CraigFe ocaml-progress 0.5.0
revision            3
categories          ocaml devel
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         User-definable progress bars
long_description    {*}${description}
use_bzip2           yes
extract.suffix      .tbz
distname            progress-${version}
checksums           rmd160  b0a60b874494b7bd890786d9032ee89ba7d3e257 \
                    sha256  7f87f0597363928c45ba859ae5a1430f6aa3c29e251ff1a53cf786ed0e045961 \
                    size    904088
github.tarball_from releases

depends_lib-append  port:ocaml-uucp \
                    port:ocaml-uutf

if {${subport} eq ${name}} {
    depends_lib-append \
                    port:ocaml-fmt \
                    port:ocaml-logs \
                    port:ocaml-mtime \
                    port:ocaml-optint \
                    port:ocaml-terminal \
                    port:ocaml-vector
}

ocaml.build_type    dune

subport ocaml-terminal {
    description     Basic utilities for interacting with terminals

    depends_lib-append \
                    port:ocaml-stdlib-shims
}
