commit: 75a9543e51a04ce363b79f26b1018326c70aad01
Author: Matt Jolly <kangie <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 13 04:53:53 2026 +0000
Commit: Matt Jolly <kangie <AT> gentoo <DOT> org>
CommitDate: Fri Feb 13 11:50:15 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a9543e
dev-util/esbuild: new package
This is the native binary portion of a given esbuild version. The
`esbuild` binary needs to match the javascript half exactly, at least
for reliability. It may be possible to loosen that, but that depends on
the consumer (or perhaps an eclass) - it'll need to be patched out of
the node module / JS portion.
Signed-off-by: Matt Jolly <kangie <AT> gentoo.org>
dev-util/esbuild/Manifest | 8 ++++++++
dev-util/esbuild/esbuild-0.25.1.ebuild | 34 ++++++++++++++++++++++++++++++++++
dev-util/esbuild/esbuild-0.25.2.ebuild | 30 ++++++++++++++++++++++++++++++
dev-util/esbuild/esbuild-0.25.5.ebuild | 30 ++++++++++++++++++++++++++++++
dev-util/esbuild/esbuild-0.27.3.ebuild | 34 ++++++++++++++++++++++++++++++++++
dev-util/esbuild/metadata.xml | 20 ++++++++++++++++++++
6 files changed, 156 insertions(+)
diff --git a/dev-util/esbuild/Manifest b/dev-util/esbuild/Manifest
new file mode 100644
index 000000000000..971abad0f2d2
--- /dev/null
+++ b/dev-util/esbuild/Manifest
@@ -0,0 +1,8 @@
+DIST esbuild-0.25.1-vendor.tar.xz 285316 BLAKE2B
cb6504562c9d93b19d68dcab1692769bd70d353e71083f7fb817bf1f014c46535664755fee72a7006d2c95b67988b7c665f1f0a6d472ca95737313df32b144a6
SHA512
759583dab5d6f859599bfe39768a5dad19a73ffb551d4a8c869c791440190ce0ea298894764626ad783baea4da319fda1a65fb425f187821f11f4999f3c797cb
+DIST esbuild-0.25.1.tar.gz 1934119 BLAKE2B
bc580f830f9a955d09e96bfbab93f4bece51bef7f6eb80a2e348526ac8bf47d8d83f42e9f05355df195e7bff026dc8e25d6573f9e3d1049ce513759d8287ce37
SHA512
61616bbf2fbdbd1eb298a465180971a07f09eeb172a16cf1bd0e1315aec4fc9ac8f447991b4d25226cb1ba8758ad9efaf5f1e86608918107f89467edbc1ff498
+DIST esbuild-0.25.2-vendor.tar.xz 285548 BLAKE2B
e53afa7f1a9e4c5dc4bc2340be0565518bbd90fb558ee657cc598c2e48796693dd0125db3460e30278707ce50d7d83c8e38c835b83629dcb1f0db94aad255d47
SHA512
419f1e94c82f0aa40fb6d7e3f540d5924df92758e8a88056232a76c564f9223de07462dc73966a92fd839d8a38144e5a7bc1a8c861edacd2cd3b6722b095ac04
+DIST esbuild-0.25.2.tar.gz 1938735 BLAKE2B
98ebf2dce4c5715eba2b749ea7f6f00d5fcf6daf8f22ded970ec41df9676d1ca40d6185dab03a9bf6d7931489d2e5aca0c510c991dfc80294826c57b216921da
SHA512
6e1a868de7c1b6c672175a1f0eef42bcf04f236a00d21e23dd8935accd80d1accacb53cb1ead0edfabdb0dc0e5440907ee070aa061779c2c9faa57f94935152c
+DIST esbuild-0.25.5-vendor.tar.xz 285372 BLAKE2B
0539694a0c059282effb9fd670e8539bbca05d3be80adba4dea752140b85719b2fdd9f82643b9f8315b19a2613b73137d3e8f9701759fcb9cd649cc6e19bdbe8
SHA512
debd700f35ca99d4e52385d3332e592d50c2e03eb63c48981ec21b229acb68e49009d14d795ff10d18eedc30d4ac8ba612d95fcb6419b975d2c9953838f7f5ed
+DIST esbuild-0.25.5.tar.gz 1946445 BLAKE2B
4eb9200fe2fd3667a5965241aa9daa401ae2e11fce8cd90074c61da9cd2e1072ba10a17f74463e7d333b965c45131a654febf4c3c87cd1249ba0c188019ae705
SHA512
70ca6398f026b67d0b32fd17652dbfe13e8de741a9017555d499a0e606279b0ad4536f1912d6aacc9c41ac518ef5421a07a42b957a028f8f95dc5e415dbaa2f0
+DIST esbuild-0.27.3-vendor.tar.xz 285712 BLAKE2B
404a4c078e3f3ac3f965f0cfe3b979d5103d1d36d4d690d44a7f0f89c6f6f3ade3f0f3dc7c1f60e36269542956d6b313e6da43be56b752bf058f2dabd4861d3d
SHA512
98dde208b529d2eabbb8dc675b3f2a9af347d5d24282d7a408252a0c28b0fdc0acabb74038c8049b323ec0fc53f9ee692a822f869df770d5671aee2414623981
+DIST esbuild-0.27.3.tar.gz 1983973 BLAKE2B
b9a3f3d5c573e64e983d87d49de4b677aaab3f71d5c3dd32b22956833c407129a82b7caf4b2b5025dae95d56edec42acbf4f8f61c0b6860d0c29ee1e007c448e
SHA512
169861c528ffb4943b8c7074017e1b65d97c3b598eb7be355e9842ce40ea75393e6ecc40a29e6a9d865175b354a5c74e18f3b024c480a3a09446a66db4ee02a4
diff --git a/dev-util/esbuild/esbuild-0.25.1.ebuild
b/dev-util/esbuild/esbuild-0.25.1.ebuild
new file mode 100644
index 000000000000..aafafbbcdf9c
--- /dev/null
+++ b/dev-util/esbuild/esbuild-0.25.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+: ${ESBUILD_VENDOR_TARBALL:=1}
+
+inherit go-module
+
+DESCRIPTION="A modern, extremely fast, JavaScript and CSS bundler and minifier"
+HOMEPAGE="https://esbuild.github.io/"
+SRC_URI="https://github.com/evanw/esbuild/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${ESBUILD_VENDOR_TARBALL} -eq 1 ]]; then
+ SRC_URI+="
https://deps.gentoo.zip/dev-util/esbuild/esbuild-${PV}-vendor.tar.xz"
+fi
+
+LICENSE="BSD MIT"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="test" # tests require more work, but chromium needs esbuild already.
+
+src_compile() {
+ # Build using vendored dependencies instead of Makefile
+ ego build -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
+
+src_install() {
+ newbin esbuild esbuild-${PV}
+}
+
+src_test() {
+ ego test -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
diff --git a/dev-util/esbuild/esbuild-0.25.2.ebuild
b/dev-util/esbuild/esbuild-0.25.2.ebuild
new file mode 100644
index 000000000000..e6d22c360c3d
--- /dev/null
+++ b/dev-util/esbuild/esbuild-0.25.2.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+: ${ESBUILD_VENDOR_TARBALL:=1}
+
+inherit go-module
+
+DESCRIPTION="A modern, extremely fast, JavaScript and CSS bundler and minifier"
+HOMEPAGE="https://esbuild.github.io/"
+SRC_URI="https://github.com/evanw/esbuild/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${ESBUILD_VENDOR_TARBALL} -eq 1 ]]; then
+ SRC_URI+="
https://deps.gentoo.zip/dev-util/esbuild/esbuild-${PV}-vendor.tar.xz"
+fi
+
+LICENSE="BSD MIT"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="test"
+
+src_compile() {
+ # Build using vendored dependencies instead of Makefile
+ ego build -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
+
+src_install() {
+ newbin esbuild esbuild-${PV}
+}
diff --git a/dev-util/esbuild/esbuild-0.25.5.ebuild
b/dev-util/esbuild/esbuild-0.25.5.ebuild
new file mode 100644
index 000000000000..e6d22c360c3d
--- /dev/null
+++ b/dev-util/esbuild/esbuild-0.25.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+: ${ESBUILD_VENDOR_TARBALL:=1}
+
+inherit go-module
+
+DESCRIPTION="A modern, extremely fast, JavaScript and CSS bundler and minifier"
+HOMEPAGE="https://esbuild.github.io/"
+SRC_URI="https://github.com/evanw/esbuild/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${ESBUILD_VENDOR_TARBALL} -eq 1 ]]; then
+ SRC_URI+="
https://deps.gentoo.zip/dev-util/esbuild/esbuild-${PV}-vendor.tar.xz"
+fi
+
+LICENSE="BSD MIT"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="test"
+
+src_compile() {
+ # Build using vendored dependencies instead of Makefile
+ ego build -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
+
+src_install() {
+ newbin esbuild esbuild-${PV}
+}
diff --git a/dev-util/esbuild/esbuild-0.27.3.ebuild
b/dev-util/esbuild/esbuild-0.27.3.ebuild
new file mode 100644
index 000000000000..aafafbbcdf9c
--- /dev/null
+++ b/dev-util/esbuild/esbuild-0.27.3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+: ${ESBUILD_VENDOR_TARBALL:=1}
+
+inherit go-module
+
+DESCRIPTION="A modern, extremely fast, JavaScript and CSS bundler and minifier"
+HOMEPAGE="https://esbuild.github.io/"
+SRC_URI="https://github.com/evanw/esbuild/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+if [[ ${ESBUILD_VENDOR_TARBALL} -eq 1 ]]; then
+ SRC_URI+="
https://deps.gentoo.zip/dev-util/esbuild/esbuild-${PV}-vendor.tar.xz"
+fi
+
+LICENSE="BSD MIT"
+SLOT="${PV}"
+KEYWORDS="~amd64 ~arm64"
+
+RESTRICT="test" # tests require more work, but chromium needs esbuild already.
+
+src_compile() {
+ # Build using vendored dependencies instead of Makefile
+ ego build -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
+
+src_install() {
+ newbin esbuild esbuild-${PV}
+}
+
+src_test() {
+ ego test -mod=vendor -v -ldflags="-s -w" ./cmd/esbuild
+}
diff --git a/dev-util/esbuild/metadata.xml b/dev-util/esbuild/metadata.xml
new file mode 100644
index 000000000000..db613e4fb7b8
--- /dev/null
+++ b/dev-util/esbuild/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <description>Primary maintainer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>[email protected]</email>
+ <name>Gentoo Chromium Project</name>
+ </maintainer>
+ <longdescription>
+ 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.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">evanw/esbuild</remote-id>
+ </upstream>
+</pkgmetadata>