# -*- 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.2 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  11665172cb24f105d5c3b2d2cde1895ee5017a86 \
                    sha256  300162f899361d9f0263065f8728ef9086dcfc1a3d36bcbc4e0abe5de9c58bf8 \
                    size    2008796

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/
}
