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

name                wcd
version             6.0.5
revision            0
categories          sysutils
maintainers         {mps @Schamschula} openmaintainer
platforms           darwin
license             GPL-2

description         Wcd is a command-line program to change directory fast.

long_description    {*}${description} It \
                    saves time typing at the keyboard. One needs to type only \
                    a part of a directory name and wcd will jump to it. Wcd \
                    has a fast selection method in case of multiple matches \
                    and allows aliasing and banning of directories. Wcd also \
                    includes a full screen interactive directory tree browser \
                    with speed search.

homepage            https://waterlan.home.xs4all.nl/wcd.html
master_sites        https://waterlan.home.xs4all.nl/wcd/

checksums           rmd160  1696f80aa97c1bee9b8aefb86203731a92158b57 \
                    sha256  f2970e01a52886d330604490fdbedd7373faff0910ff2e14889435677f563763 \
                    size    1130436

depends_build       port:gettext

depends_lib         port:gettext-runtime \
                    port:ncurses

patchfiles          patch-src-Makefile.diff

use_configure       no

variant universal   {}

build.args          PREFIX=${prefix} \
                    INCPREFIX=${prefix} \
                    CC="${configure.cc} [get_canonical_archflags cc]" \
                    EXT= \
                    docsubdir=${name}

destroot.args       {*}${build.args}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
