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

# 0.8.x one switch to OCaml 5.x.
github.setup        darrenldl docfd 0.7.4
revision            2
categories          sysutils ocaml
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
license             MIT
description         TUI multiline fuzzy document finder
long_description    A {*}${description} in OCaml.
checksums           rmd160  ad8765e061214088c3eb1182797fb95b35b22cc3 \
                    sha256  3cf5ed7baf10c353eb4ef06b60585dc44833561413c4098de6839e1734d12ecf \
                    size    265920
github.tarball_from archive

# https://github.com/darrenldl/docfd/issues/18
patchfiles          patch-nottui.diff

depends_lib-append  port:ocaml-angstrom \
                    port:ocaml-cmdliner \
                    port:ocaml-containers \
                    port:ocaml-fmt \
                    port:ocaml-lwd \
                    port:ocaml-nottui-unix \
                    port:ocaml-notty \
                    port:ocaml-oseq \
                    port:ocaml-spelll

ocaml.build_type    dune

notes "
Make sure either VISUAL or EDITOR variable is set in the environment\
in order to open documents from ${name}.
"
