# -*- 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/evanw/esbuild 0.28.1 v
go.offline_build    no
go.toolchain_min    1.13
revision            0

categories          devel lang
license             MIT
maintainers         nomaintainer

description         An extremely fast bundler for the web
long_description    Our current build tools for the web are 10-100x slower than they could be. \
                    The main goal of the esbuild bundler project is to bring about a new era of \
                    build tool performance, and create an easy-to-use modern bundler along the way.
homepage            https://esbuild.github.io/

checksums           rmd160  6d12d87a63776459de2f400ee3191ac2c4d53085 \
                    sha256  65c756fa87d43178ac4a5242454c2bd0fde325f8ecf77997f8fa4b88f94d5cd2 \
                    size    1997481

build.args          -o esbuild
build.post_args     -trimpath \
                    -buildvcs=false \
                    -ldflags='-s -w -buildid=' \
                    ./cmd/esbuild
build.env-append    CGO_ENABLED=0

destroot {
    xinstall -m 0755 ${worksrcpath}/esbuild ${destroot}${prefix}/bin/
}
