# -*- 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.tarball_from archive
github.setup        vapor toolbox 19.2.0

name                vapor-toolbox
categories          devel
platforms           {darwin >= 24}
license             MIT
maintainers         nomaintainer

description         Vapor Toolbox CLI tool for project initialization and management.
long_description    The Vapor Toolbox is a command-line utility used to initialize, \
                    build, and manage server-side Swift applications using the Vapor Framework.

use_xcode           yes

checksums           rmd160  e6626cada697e43238921da8adfd4096a1a3265a \
                    sha256  c2970459166469afe8614ecdca33dae556a5e2fb386b92eeba2498af9014fc60 \
                    size    21398

use_configure       no

build.cmd           swift
build.pre_args      build
build.args          -c release
build.post_args     --disable-sandbox

destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall -m 755 ${worksrcpath}/.build/release/vapor ${destroot}${prefix}/bin/
}
