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

go.setup            github.com/wailsapp/wails 2.15.0 v
revision            0

homepage            https://wails.io

description         Create beautiful applications using Go

long_description    \
    The traditional method of providing web interfaces to Go programs is via \
    a built-in web server. Wails offers a different approach: it provides the \
    ability to wrap both Go code and a web frontend into a single binary. \
    Tools are provided to make this easy for you by handling project \
    creation, compilation and bundling. All you have to do is get creative\!

categories          devel
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  137250cf9271304f486a104aa5c4d1dcfb057ff6 \
                    sha256  4c865cbd5ab81401cf4557e54dfe517efc90d29980ccdaa54178b426fdd6d4a3 \
                    size    98943160

depends_run-append  bin:npm:npm11 \
                    port:upx

go.offline_build no
go.toolchain_min    1.25.0

# 2.15.0 no longer has a module at the top level; the CLI lives in v2/.
build.dir           ${worksrcpath}/v2
build.args-append   ./cmd/${name}

destroot {
    xinstall -m 0755 ${build.dir}/${name} ${destroot}${prefix}/bin/
}

github.livecheck.regex \
                    {([\d.]+)}
