From b996c09763f73b3ac1303b549702dcfad1f45373 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Wed, 28 Jan 2026 17:44:27 +0000 Subject: update bun version --- dev-lang/bun-bin/Manifest | 12 ++ dev-lang/bun-bin/bun-bin-1.3.7.ebuild | 205 ++++++++++++++++++++++++++++++++++ 2 files changed, 217 insertions(+) create mode 100644 dev-lang/bun-bin/bun-bin-1.3.7.ebuild diff --git a/dev-lang/bun-bin/Manifest b/dev-lang/bun-bin/Manifest index 4483f45..ce454e5 100644 --- a/dev-lang/bun-bin/Manifest +++ b/dev-lang/bun-bin/Manifest @@ -22,3 +22,15 @@ DIST bun-bin-1.3.6-arm64-musl-profile.zip 161639030 BLAKE2B c436b44012bcbb3f0edf DIST bun-bin-1.3.6-arm64-musl.zip 34835356 BLAKE2B 576cbf6f7272bb8f51cdc0d1d5683a20bf31715a6ff504c5472b578e0ad0a1d0c1bdd7b087018619df3679ee4d32fa5618a01e9dfbeae6987d9fcd91682ca1d0 SHA512 b0d6998ca247bdac4d31cf472451e1963d6c3b20ce760385fbf2c22b6c926aeab97a8d24136beda47c80aecf8d74d7c2e4de4f34659cc7d0f80837f5ae1f0503 DIST bun-bin-1.3.6-arm64-profile.zip 182013749 BLAKE2B ce96b1428c7b6bad4110190bd1bb378b47327ea4f8601ceb73375351c22313e1caf864f56841350d562357b1de60b627124791797581aa82f83c82ee0be5e6eb SHA512 9aa04a0d1a62746c0a3fba9ddc3d338d3897d82d8f2ab0767e242862845e5315b8e8de415b058897905780500016aba114748f29e8777aef3dc9699acec5192f DIST bun-bin-1.3.6-arm64.zip 36791318 BLAKE2B 8e5609b1af253a011a026840220e041a01c73f649da34aa1315fc944e3bcd41b01f656817069522af0b9a1fcca934da213852ff935a53432171eba958df9b6ca SHA512 09c43605e8b0c418cf89e04e29dd480100498e0a718b3e63b2cfa4331727e2fcedfe8fafa91900e8b89f9b8d16cc33dd13f3b5e7dc23a9abcdcbcd442ba623b1 +DIST bun-bin-1.3.7-amd64-baseline-profile.zip 196016315 BLAKE2B a90f43a0fe406e8920a0dbcf73aafaf0d18891a404e98ee9b6f2c7f82e212e14b7fbed1ce9ed7fa86ef20cae74d1cc31f1a709be78c18a8880f0982d77b8309e SHA512 f2e71e72c6ca7b845d226f7176fb4bfdb111c776b143c91ca5150ef2c9a3ab1c41578eb185e29aaead070a6fd543c1dd3ac4a0e842697f57b5b58ab13afa024e +DIST bun-bin-1.3.7-amd64-baseline.zip 38334678 BLAKE2B 0820a83ced54068567b30b6663bc9d1db2035423e74df92620fdbd7041347d0542877482697b7160c2a3bcc3d3724653622109ced2824d6ea2aaaf79c3c8618a SHA512 85df63cf0ec1245e1c066940d2934418b6c288629aac03af610af1780c646771cfe99d156936c8a93e8f822aec4cf930a06b1100d18fcb0db70c133b7b436cb1 +DIST bun-bin-1.3.7-amd64-musl-baseline-profile.zip 171604181 BLAKE2B f2f0510601464322590a913566f62ec5f35ae28faf8504c3880dce7e0f7bd95819f4888d0279f7f89463e0101a11db318ba28357b1a41f7bc452da91cfc8150c SHA512 3793f480db4152ac8b368db1c4b443eede9fb21627e51e42ee3425c4b35b8ba6582db8a03cad32ab5fc0a4b26df0d1797cacc597741f605d865cd7f6cfd9a0fa +DIST bun-bin-1.3.7-amd64-musl-baseline.zip 36066426 BLAKE2B de68ef24d602bd0a6af2f370a96353ca76052a876e4bfa24331bd18a4467a1924499c8502f36ab492d0d5982a20e869fd3da8b8a3c75a9b7aa46178d6cac3a97 SHA512 9e30621e764d271466180b5badfd4bf4eb2e68331e87acbe4942092cc771c92c2198dcf5ec770d66a2feeb7837f93fbaa6dd26385511acb41049a1de4da92dda +DIST bun-bin-1.3.7-amd64-musl-profile.zip 171898811 BLAKE2B f4b98c495f05c25a794fd2905d9efc2e95eb198cd13b212b342ddadca24c391a070f55664c1e60e5c789da25ad146d95deb861d03b6bcb79bce228150a3c6e27 SHA512 2ee690c65b7abe975389e1cdf8d93897ec8085d852f0f2823e9777b7884d1f32f9d423d599dbe9076bef0ca4afbf02ce506c6ce3593c2b9abb0ad59eb62896e7 +DIST bun-bin-1.3.7-amd64-musl.zip 36237133 BLAKE2B 6a2ed1e82032f1b1857ae65478aa06f5674909eb08559e8cf3a864ef6716aaa173f8f59ee1d56c6949bf2647eefc51687f8cec945b9815dc30b51c16c0f5bd2d SHA512 d16741b1e549b4c7dac1da300fdb8257df9e7cac87fc93f055549e95420ad36e769bcab6e2abe0737afda3040860dac2564b81c659ef76c73e8806b84186388a +DIST bun-bin-1.3.7-amd64-profile.zip 196333457 BLAKE2B fcf8059b102b3c8e93eecfc762588c04465062c82bc91811c96b78f5c81cd6c796486313989853acd7b0530e9e36236cc1f5133b89c53670b2dac55c55721f27 SHA512 451dfeb4add72ed62984e33e7eacd23e0812ef323bca2258d358ae158b2a87d4464a4f8ed68e58cb2fae1279af75a1f630e078435b162a1fa9e05fabb13babcd +DIST bun-bin-1.3.7-amd64.zip 38511923 BLAKE2B e017f490276051f3025f98ea33370c892b2e360b9737de0ef2024bbffff4639d0bfa31878854ba247745de8b3ed8fbb3ec8abc8577752d2da1b6b6d063b0b84a SHA512 d7d46458711b82f90c6ff13d01a39bbe4aa5ce260313caa163fa3b11007fe14f2855f6b13dc73b45a465860a4a83eaa22877c5ae051867a97e0cf124e2f3949d +DIST bun-bin-1.3.7-arm64-musl-profile.zip 163529307 BLAKE2B 65472837d0d0567ad6ed7ecedc501ab6b45e63d9e6c8ce5b50bf941e2a1d67fb9e464c3797678630d34bc3d8b3a98b05b78cf4ed603651282f94e65612d0b7b0 SHA512 0d92d690e4623af740af064c0d7f4c3d32979422f99469bc62d25abbe128ab68a60a8a25e3130b8a090d66ada18792a193469e1d3ee7c72a37e3fb7aaf6bc995 +DIST bun-bin-1.3.7-arm64-musl.zip 35065203 BLAKE2B 160fa680e58ccd55039018ed7e974d64696d7d414862ca31a1dfb6121473945dc299be93ce6328c4f5287ef8b8353ec50521b3558d34f27039aeb00ed4a6fdea SHA512 1a4e0970c083e5493284fc9fd904e2c0c86c59efb14c69b8167a356746c96e5c7ef12e88b1b246bdb9f9878876eca58fc98f9975aec824f0bc44579bda8b9288 +DIST bun-bin-1.3.7-arm64-profile.zip 184415257 BLAKE2B dc218dfec1f28b7558f7abdd188843a4d1c8ff98115eef776cf8d4e924533032464deb704e502e2958b56463186a906661823328cf80905ea6a40cf73bdb1939 SHA512 edabe2a1c482e96af672cd763479c81b5102061700c1c436170e456a39291574ba0a2ab2d219bbb8fe8b4d3ed8eacfde0d15efb6c2ed1fada9bca8a25f648b28 +DIST bun-bin-1.3.7-arm64.zip 37056106 BLAKE2B 1432713132cf15faceb4a9369b3ccd3571365d87b3651c53ad393e406663ce26ad690f2f481af7a4b6acd31270004f55408cfa30ab05a37c1b9eed357b2c56b2 SHA512 d656768a5c56ab81cfeac558862412feaa616a2b36cb10188b8459d9146a79e336e116501395704eeab3a76dbbfc8481c680850fcc92aabb651d2fae001f374e diff --git a/dev-lang/bun-bin/bun-bin-1.3.7.ebuild b/dev-lang/bun-bin/bun-bin-1.3.7.ebuild new file mode 100644 index 0000000..a698f0a --- /dev/null +++ b/dev-lang/bun-bin/bun-bin-1.3.7.ebuild @@ -0,0 +1,205 @@ +# Copyright 2020-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit shell-completion + +BUN_PN="${PN//-bin/}" + +DESCRIPTION="Incredibly fast JavaScript runtime, bundler, test runner, and package manager" +HOMEPAGE="https://bun.sh" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* amd64 ~arm64" +IUSE="bash-completion cpu_flags_x86_avx2 debug fish-completion zsh-completion" + +DEPEND=" + bash-completion? ( >=app-shells/bash-completion-2.0 ) + fish-completion? ( app-shells/fish ) + zsh-completion? ( app-shells/zsh ) +" + +bun_bin_filename_prefix() { + local -r arch=$1 + local -r elibc=$2 + local -ir avx2=$3 + local -ir debug=$4 + + local -a specifier + + # -- Add CPU architecture. + case "${arch}" in + amd64) specifier+=('x64') ;; + arm64) specifier+=('aarch64') ;; + * ) die "Unsupported arch: '${arch}'" ;; + esac + + # -- Add libc type. + case "${elibc}" in + musl ) specifier+=('musl') ;; + glibc) : ;; + * ) die "Unsupported libc: '${elibc}'" ;; + esac + + # -- Add CPU features. + (( avx2 == 0 )) && + specifier+=('baseline') + + # -- Add debug type. + (( debug != 0 )) && + specifier+=('profile') + + # -- Construct string. + suffix="$(IFS='-'; echo "${specifier[*]}")" + echo "bun-linux-${suffix}" +} + +BASE_URI="https://github.com/oven-sh/${BUN_PN}/releases/download/${BUN_PN}-v${PV}" +SRC_URI=" + amd64? ( + elibc_musl? ( + cpu_flags_x86_avx2? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 musl 1 1).zip + -> ${PN}-${PV}-amd64-musl-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 musl 1 0).zip + -> ${PN}-${PV}-amd64-musl.zip + ) + ) + !cpu_flags_x86_avx2? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 musl 0 1).zip + -> ${PN}-${PV}-amd64-musl-baseline-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 musl 0 0).zip + -> ${PN}-${PV}-amd64-musl-baseline.zip + ) + ) + ) + !elibc_musl? ( + cpu_flags_x86_avx2? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 glibc 1 1).zip + -> ${PN}-${PV}-amd64-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 glibc 1 0).zip + -> ${PN}-${PV}-amd64.zip + ) + ) + !cpu_flags_x86_avx2? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 glibc 0 1).zip + -> ${PN}-${PV}-amd64-baseline-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix amd64 glibc 0 0).zip + -> ${PN}-${PV}-amd64-baseline.zip + ) + ) + ) + ) + arm64? ( + elibc_musl? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix arm64 musl 1 1).zip + -> ${PN}-${PV}-arm64-musl-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix arm64 musl 1 0).zip + -> ${PN}-${PV}-arm64-musl.zip + ) + ) + !elibc_musl? ( + debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix arm64 glibc 1 1).zip + -> ${PN}-${PV}-arm64-profile.zip + ) + !debug? ( + ${BASE_URI}/$(bun_bin_filename_prefix arm64 glibc 1 0).zip + -> ${PN}-${PV}-arm64.zip + ) + ) + ) +" + +BDEPEND="app-arch/unzip" + +QA_PREBUILT="*" + +bun_bin_dirname() { + local elibc + if use elibc_glibc; then + elibc='glibc' + elif use elibc_musl; then + elibc='musl' + else + die 'Unsupported libc' + fi + + local -i avx2=0 + if use cpu_flags_x86_avx2 \ + || [[ "${ARCH}" == 'arm64' ]]; then + (( avx2 = 1 )) + fi + + local -i debug=0 + use debug && + (( debug = 1 )) + + bun_bin_filename_prefix "${ARCH}" "${elibc}" "${avx2}" "${debug}" +} + +src_unpack() { + unpack "${A}" + mv "$(bun_bin_dirname)" "${P}" +} + +src_compile() { + local bun_bin='bun' + if use debug; then + bun_bin='bun-profile' + fi + + if use bash-completion; then + SHELL=bash "./${bun_bin}" completions > bun.bash || + die 'Unable to generate bash completions' + fi + + if use fish-completion; then + SHELL=fish "./${bun_bin}" completions > bun.fish || + die 'Unable to generate fish completions' + fi + + if use zsh-completion; then + SHELL=zsh "./${bun_bin}" completions > bun.zsh || + die 'Unable to generate zsh completions' + fi +} + +src_install() { + exeinto /usr/bin + + if use debug; then + doexe bun-profile + dosym /usr/bin/bun-profile /usr/bin/bun + dosym /usr/bin/bun-profile /usr/bin/bunx + else + doexe bun + dosym /usr/bin/bun /usr/bin/bunx + fi + + use bash-completion && + newbashcomp bun.bash "${BUN_PN}" + + use fish-completion && + newfishcomp bun.fish bun.fish + + use zsh-completion && + newzshcomp bun.zsh "_${BUN_PN}" +} -- cgit v1.2.3