logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 3b8217e0c0108276a62da7e49980277c64c2c80e
parent 1d0bcd055a851d8d99109b37171d29bd3216e62a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 22 Sep 2024 11:33:38 +0200

dev-util/esbuild: add 0.24.0, drop 0.20.1

Diffstat:

Mdev-util/esbuild/Manifest2+-
Ddev-util/esbuild/esbuild-0.20.1.ebuild76----------------------------------------------------------------------------
Adev-util/esbuild/esbuild-0.24.0.ebuild79+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 80 insertions(+), 77 deletions(-)

diff --git a/dev-util/esbuild/Manifest b/dev-util/esbuild/Manifest @@ -1 +1 @@ -DIST esbuild-0.20.1.tar.gz 1829416 BLAKE2B 0603cbc4660cb18d3a777d9719a267c95022506bb5f362e6bbb268605ccab7d000a5255c3367a15c23ca9888e36f4883d2605e3b26ec6d51e4e9e2b9d6a4bb82 SHA512 fc06246acd873ac420b7887487a412466dd8c4402cef6b73813aa17e97c128e87dc6d62d2765a94d5614081bbc190188f55bb655f223b486a2aee4330ec1380b +DIST esbuild-0.24.0.tar.gz 1895084 BLAKE2B d4e2bbfb3b42e7cd666105f20188781ccfcbb935fe23adabf1706b243b6197ef3a3f87e5541c036f61fbf6df547e0cc88845a494ea6eea4e0a0e8b2e34609d05 SHA512 4e13a8858ecb04d16e0a4e26ae36267639705a31512edc73d452051cdf30db578a4403384958a55066820a1bff66425d298e871609d71192facca1244fff0fb6 diff --git a/dev-util/esbuild/esbuild-0.20.1.ebuild b/dev-util/esbuild/esbuild-0.20.1.ebuild @@ -1,76 +0,0 @@ -# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -EGO_PN="github.com/evanw/esbuild" - -DESCRIPTION="extremely fast bundler for the web" -HOMEPAGE="https://esbuild.github.io/" -SRC_URI="https://github.com/evanw/esbuild/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -S="${WORKDIR}/src/${EGO_PN}" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" - -DEPEND=" - >=dev-lang/go-1.13 - dev-go/sys - test? ( - net-libs/nodejs - dev-nodejs/source-map-js - ) -" -BDEPEND="sys-apps/help2man" - -RESTRICT="!test? ( test ) strip" -QA_FLAGS_IGNORED='.*' - -src_unpack() { - default - - mkdir -p "$(dirname "${S}")" || die - mv "${WORKDIR}/${P}" "${S}" || die -} - -src_prepare() { - default - - # complex: Depends on fuse.js + react - sed -i \ - -e "s;require('source-map');require('source-map-js');" \ - -e "/check('complex'/,/}),/d" \ - scripts/verify-source-map.js || die - - # No need to fetch dependencies via npm - sed -i -e 's;cd scripts && npm ci;true;' Makefile || die -} - -src_configure() { - # disable module-aware mode - export GO111MODULE=off - # no network access - export GOPROXY=off - # don't try to update the toolchain - export GOTOOLCHAIN="local" - - # With GO111MODULE=off WORKDIR needs to be included - export GOPATH="${WORKDIR}:${EPREFIX}/usr/lib/go-gentoo" - - export EGO_BUILD_FLAGS="${EGO_BUILD_FLAGS} -trimpath" -} - -src_test() { - # test target wraps around test-common target with -j6 - emake test-common -} - -src_install() { - set -- env GOBIN="${ED}/usr/bin" go install -v -work -x ${EGO_BUILD_FLAGS} ./cmd/esbuild - echo "$@" - "$@" || die - - help2man -s1 -o esbuild.1 -N "${ED}/usr/bin/esbuild" || die - doman esbuild.1 -} diff --git a/dev-util/esbuild/esbuild-0.24.0.ebuild b/dev-util/esbuild/esbuild-0.24.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGO_PN="github.com/evanw/esbuild" + +DESCRIPTION="extremely fast bundler for the web" +HOMEPAGE="https://esbuild.github.io/" +SRC_URI="https://github.com/evanw/esbuild/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/src/${EGO_PN}" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND=" + >=dev-lang/go-1.13 + dev-go/sys + test? ( + net-libs/nodejs + dev-nodejs/source-map-js + ) +" +BDEPEND="sys-apps/help2man" + +RESTRICT="!test? ( test ) strip" +QA_FLAGS_IGNORED='.*' + +src_unpack() { + default + + mkdir -p "$(dirname "${S}")" || die + mv "${WORKDIR}/${P}" "${S}" || die +} + +src_prepare() { + default + + # complex: Depends on fuse.js + react + sed -i \ + -e "s;require('source-map');require('source-map-js');" \ + -e "/check('complex'/,/}),/d" \ + scripts/verify-source-map.js || die + + # No need to fetch dependencies via npm + sed -i -e 's;cd scripts && npm ci;true;' Makefile || die + + # Not a dev repo + sed -i -e '/git diff/d' Makefile || die +} + +src_configure() { + # disable module-aware mode + export GO111MODULE=off + # no network access + export GOPROXY=off + # don't try to update the toolchain + export GOTOOLCHAIN="local" + + # With GO111MODULE=off WORKDIR needs to be included + export GOPATH="${WORKDIR}:${EPREFIX}/usr/lib/go-gentoo" + + export EGO_BUILD_FLAGS="${EGO_BUILD_FLAGS} -trimpath" +} + +src_test() { + # test target wraps around test-common target with -j6 + emake test-common +} + +src_install() { + set -- env GOBIN="${ED}/usr/bin" go install -v -work -x ${EGO_BUILD_FLAGS} ./cmd/esbuild + echo "$@" + "$@" || die + + help2man -s1 -o esbuild.1 -N "${ED}/usr/bin/esbuild" || die + doman esbuild.1 +}