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

name            fnc
version         0.18
revision        0
categories      devel
license         ISC
maintainers     {bsdbox.org:mark @mcjsk} \
                openmaintainer
description     An interactive text-based user interface for Fossil
long_description        ${name} is an interactive text-based user interface \
                        that uses ncurses and libfossil to create a fossil ui \
                        experience in the terminal by providing timeline, \
                        diff, tree, blame, and branch views to navigate \
                        repositories, and parse local changes at the hunk \
                        level with an interactive stash command to prepare \
                        atomic commits.
homepage        https://fnc.bsdbox.org
master_sites    ${homepage}/tarball/${version}/ \
                https://fnc.sh/tarball/${version}/

checksums       rmd160  0f5cdcdb679f4949e442c7e3f95fc6f2f7a6fb69 \
                sha256  9e94beb0ec45d12ffd4ee163b441657afd07a483ac68feb399c7e8a4f3547a19 \
                size    3244426

build.type      bsd

patchfiles      libf-Werror-include-ncursesw.diff

depends_lib-append      port:zlib \
                        port:ncurses

destroot {
    xinstall -m 755 ${worksrcpath}/src/${name} ${destroot}${prefix}/bin/${name}
    xinstall -m 444 ${worksrcpath}/src/${name}.1 ${destroot}${prefix}/share/man/man1/${name}.1
}
