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

boost.version       1.81
# AT_FDCWD
legacysupport.newest_darwin_requires_legacy 10

github.setup        msa1618 slash e5b2e0691a48d6a35a04ebdb80d33484eabf52eb
version             2025.08.28
revision            0
categories          shells
license             GPL-2
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         A new, modern shell currently in development
long_description    ${name} is a project that aims to create a customizable, vibrant and modern shell.
checksums           rmd160  143ab6ac4fa9487eb2598657d3404662173ecc91 \
                    sha256  dbea4bca905938c61bbe7e43a9af3ef5f3962e6ed4c5c2a5d4f3193b68c7a9a4 \
                    size    1526755
github.tarball_from archive

patchfiles-append   disku.cpp.patch install_slash.cpp.patch ls.cpp.patch timespec.patch

post-extract {
    delete -force ${worksrcpath}/CMakeLists.txt
    copy ${filespath}/CMakeLists.txt ${worksrcpath}/
}

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:nlohmann-json

compiler.cxx_standard   2020

post-build {
    system "${configure.cxx} ${worksrcpath}/install_slash.cpp -std=c++20 -o ${cmake.build_dir}/slash_setup"
}

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}/
    copy ${cmake.build_dir}/slash_setup ${destroot}${prefix}/share/${name}/
}

notes "
    To complete set-up, please run ${prefix}/share/${name}/slash_setup first.
"
