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

github.setup        silentbicycle ff 0.6-flag-features v
name                fuzzy-find
version             [lindex [split ${github.version} -] 0]
categories          sysutils
platforms           darwin
license             GPL-3
maintainers         {chunyang @xuchunyang} openmaintainer

description         command-line program that find files with fuzzy-completion

long_description    ${name} is a small command-line program that searches a \
                    directory tree with basic fuzzy-completion.

checksums           rmd160  9076e7cda947e99d5b31a04671f243469ffba9a2 \
                    sha256  29ea46dd5ef23ecf823b406b1a2fe015fd90c20de6d411118cc6e5fa99d47df6

use_configure       no

variant universal {}

build.target        ff
build.args          CC="${configure.cc} ${configure.optflags} [get_canonical_archflags cc]"

destroot {
    xinstall -m 0755 ${worksrcpath}/ff ${destroot}${prefix}/bin/
    xinstall -m 0444 ${worksrcpath}/ff.1 ${destroot}${prefix}/share/man/man1/
}