# -*- 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.6
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  1c7d2b487e12bb70eb76a2f8bfc8b2113724f92c \
                    sha256  c5d1b22aefbb0f142e27b1cddad17021c43034c76103830fb2757387ac593eb1 \
                    size    1182775

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}
