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

# On <10.15 built-in libc++ has no support for std::filesystem
legacysupport.newest_darwin_requires_legacy 18
legacysupport.use_mp_libcxx                 yes

github.setup        poac-dev poac 0.6.0
revision            2
categories          sysutils
license             Apache-2

homepage            https://poac.dev

maintainers         nomaintainer
description         Package Manager for C++
long_description    Poac is a package manager for C++, inspired by Cargo \
                    for Rust. Poac can download project's dependencies \
                    and compile a project.

github.tarball_from archive

checksums           rmd160  c4159c78428d977bbcad58353560cdb0642a00d7 \
                    sha256  40f55553f7cca3bdad39599ce8c9049aeecf8f6140cfebac28c51d7d9abbbb78 \
                    size    153774

cmake.prefix_path-append \
                    ${prefix}/lib/libfmt9/cmake

# Do not allow CMake to use system Git on older systems
depends_fetch-append \
                    port:git

depends_lib-append  port:libarchive \
                    port:libfmt9 \
                    path:lib/pkgconfig/libgit2.pc:libgit2 \
                    port:spdlog
boost.version       1.81

# requires C++20
compiler.cxx_standard 2020
compiler.blacklist-append \
                    {clang < 1300}

test.run            yes
