# -*- 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-cmdliner
github.setup        dbuenzli cmdliner 2.1.1 v
revision            1
categories          ocaml devel
maintainers         nomaintainer
license             ISC
description         ${name} allows the declarative definition of command line interfaces for OCaml
long_description    ${description}
homepage            https://erratique.ch/software/cmdliner
checksums           rmd160  aca19565b18b274d83643821d97b2f892db0539e \
                    sha256  90dee3ef327fb7db1eb5859be7143ea9b60e37534865a725e2fcb92569a38370 \
                    size    120277
github.tarball_from archive

use_configure       no

post-extract {
    reinplace "s|%%VERSION_NUM%%|${github.version}|g" \
        ${worksrcpath}/pkg/META
}

destroot.target     install install-doc
destroot.args       PREFIX=${prefix} \
                    LIBDIR=${destroot}${ocaml.package_dir}/cmdliner
