# -*- 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.7
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://waterlander.net/wcd/
master_sites        https://waterlander.net/wcd/files/

checksums           rmd160  4cbba12192e6c0779144ca9832049629d6cc8f6a \
                    sha256  91a63282a15e5df97b6797075d4b7600ad433c3216f4c76e538009363e857a3f \
                    size    1208038

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}
