# -*- 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           cmake 1.1
PortGroup           github 1.0

if {${os.platform} eq "darwin" && ${configure.cxx_stdlib} eq "libc++"} {
    # filesystem
    PortGroup       legacysupport 1.1

    legacysupport.newest_darwin_requires_legacy 19
    legacysupport.use_mp_libcxx yes
}

github.setup        GiuseppeCesarano just-fast 276b7b860a641cadd8ef2abec7a77b67222172b0
version             2023.12.18
revision            0
categories          sysutils
supported_archs     i386 ppc ppc64 x86_64
license             MIT
maintainers         nomaintainer
description         Just Fast is CLI file manager
long_description    {*}${description} with focus on speed in both \
                    execution time and usage.
checksums           rmd160  1c2616efb46df754fb87b803674ff2efe6f50e57 \
                    sha256  61090cbe086062e4fc1e09f6059e31094a34a456fadddcc9b51010d162e601de \
                    size    43091
#github.tarball_from archive
# https://lists.macports.org/pipermail/macports-users/2024-July/052820.html
# upstream repository has been deleted for an unknown reason
master_sites        macports_distfiles

depends_lib-append  port:cxxopts \
                    port:FTXUI

patchfiles-append   patch-CMakeLists.diff

compiler.cxx_standard   2020

destroot {
    copy ${cmake.build_dir}/jf ${destroot}${prefix}/bin/
}

# FIXME: arm64 needs to be fixed:
# https://github.com/GiuseppeCesarano/just-fast/issues/16
