app-editors/vscodium: add 1.108.10359

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-01-24 09:38:41 +02:00
parent e9483d456b
commit 67e6431214
2 changed files with 159 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
DIST vscodium-1.106.37943-amd64.tar.gz 156446608 BLAKE2B fbbd0e809357251c975f45523c88133982640506aa16d99af61b2a14c27945db5c8ce69611d155c4c59c2ab55042c5fcd0aa9b2c94789adbb6ea33e9aa906f32 SHA512 0d00bd9215281f1fb356e64f6461c3bf307a670600f7144bd62326228bb2f31526162892c871970dcf0b09f880e3893c1c6157ce4cc3de972b703f6b47bede3f
DIST vscodium-1.106.37943-arm64.tar.gz 153804932 BLAKE2B ba82a60fb2637d0fe164f37e5d10ba85c6fd52b4e0a352c2c5f2d6df551bf5237a695d0465807042417a34e8f543847fcbd3a99ad64ae41c763195cf08701a1e SHA512 dd17449bce3245632a37cbf64dd62bb7a17f2fe8c5920387401b717aec24a1baa9f5c325558790b716df8d3566a3abf25e4228ef3fe0824a620320aceef5aa3b
DIST vscodium-1.106.37943-loong.tar.gz 152620377 BLAKE2B dc929805a6407efe35bdba054894630542d3015f3e56ab124db30a9d734a968b0ad9d1d98fbafcaea791fd1d94e559c1dce401d7e4c702ee643c5adb1a334f1f SHA512 2e722abaf269b7e3e3f8b60220fea8afcc2b7669763c35b310545b631c3f40959d026dfe113dce0e9f271ab587d9dc076042a4162f7f06f9792d71325d285e15
DIST vscodium-1.108.10359-amd64.tar.gz 157924340 BLAKE2B 31f399cc8fa8e4455267a456ae553b21800f506b8d5b4bd57a2ac7110530c7ed55cbe5e971c86575f9ea5717474c981f8b52efabe22c6de298134960b56cc801 SHA512 2d6ec0ab46467e1a2549f8007007d250e693b459811b3c89eca0914a57efe5719bb640707dc85c3c9518903305204933c863a946105ac00c222561d044a8c589
DIST vscodium-1.108.10359-arm64.tar.gz 155460970 BLAKE2B dc25d7acc7a65200e3d6a456e5bf11ac0dd1fbadb85434ccca4ca8aae6a2f4dfe20d3049b016ee6c4095f958fea4444d1768e9ad0bec0ce606da39873a2f811c SHA512 4599444873d051bec73137ce9b8319cc4c51188a1f2d3777fde9d5c47a817a6c4940477502b5c86756130399f70fc2fe8ae8347ff466a9e3391647949c16c828
DIST vscodium-1.108.10359-loong.tar.gz 155831716 BLAKE2B 154d7a4ae40cbbf16249d1604a331f34fec3303881823e2514d213b07ad11ded3cac18d244076e40a76d35dd30493af5458a3f348230e43359f574447e79c82d SHA512 dc482c8fd1ea81fa900212d9d7f8fa74cafe46494a30df31f70c58c7990259aea94a7566cbd3ab691d2c7f67feef97d4fb590e5d122361e475c89013849e794e

View File

@@ -0,0 +1,156 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
sv sw ta te th tr uk ur vi zh-CN zh-TW"
inherit chromium-2 desktop optfeature pax-utils shell-completion xdg
# Usage: arch_src_uri <gentoo arch> <upstream arch>
arch_src_uri() {
echo "${1}? (
https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-${2}-${PV}.tar.gz
-> ${P}-${1}.tar.gz
)"
}
DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
HOMEPAGE="https://vscodium.com/"
SRC_URI="
$(arch_src_uri amd64 x64)
$(arch_src_uri arm64 arm64)
$(arch_src_uri loong loong64)
"
S="${WORKDIR}"
LICENSE="
Apache-2.0
BSD
BSD-1
BSD-2
BSD-4
CC-BY-4.0
ISC
LGPL-2.1+
MIT
MPL-2.0
openssl
PYTHON
TextMate-bundle
Unlicense
UoI-NCSA
W3C
"
SLOT="0"
KEYWORDS="-* amd64 ~arm64 ~loong"
IUSE="egl kerberos wayland"
RESTRICT="strip bindist"
RDEPEND="
>=app-accessibility/at-spi2-core-2.46.0:2
app-crypt/libsecret[crypt]
app-misc/ca-certificates
dev-libs/expat
dev-libs/glib:2
dev-libs/nspr
dev-libs/nss
media-libs/alsa-lib
media-libs/libglvnd
media-libs/mesa
net-misc/curl
net-print/cups
sys-apps/dbus
virtual/zlib:=
sys-process/lsof
x11-libs/cairo
x11-libs/gtk+:3
x11-libs/libdrm
x11-libs/libX11
x11-libs/libxcb
x11-libs/libXcomposite
x11-libs/libXdamage
x11-libs/libXext
x11-libs/libXfixes
x11-libs/libxkbcommon
x11-libs/libxkbfile
x11-libs/libXrandr
x11-libs/libXScrnSaver
x11-libs/pango
x11-misc/xdg-utils
kerberos? ( app-crypt/mit-krb5 )
"
QA_PREBUILT="*"
src_prepare() {
default
pushd "locales" > /dev/null || die
chromium_remove_language_paks
popd > /dev/null || die
}
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
src_install() {
# Cleanup license file - it exists only in amd64 tarball
rm -f "${S}/resources/app/LICENSE.txt" || die
if ! use kerberos; then
rm -rf "${S}/resources/app/node_modules.asar.unpacked/kerberos" || die
fi
# Install
pax-mark m codium
mkdir -p "${ED}/opt/${PN}" || die
cp -r . "${ED}/opt/${PN}" || die
fperms 4711 /opt/${PN}/chrome-sandbox
dosym -r "/opt/${PN}/bin/codium" "usr/bin/vscodium"
dosym -r "/opt/${PN}/bin/codium" "usr/bin/codium"
local EXEC_EXTRA_FLAGS=()
if use wayland; then
EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" )
fi
if use egl; then
EXEC_EXTRA_FLAGS+=( "--use-gl=egl" )
fi
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
"${FILESDIR}/codium-url-handler.desktop" \
> "${T}/codium-url-handler.desktop" || die
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
"${FILESDIR}/codium.desktop" \
> "${T}/codium.desktop" || die
domenu "${T}/codium.desktop"
domenu "${T}/codium-url-handler.desktop"
newicon "resources/app/resources/linux/code.png" "vscodium.png"
# Install metainfo
insinto /usr/share/metainfo
doins "${FILESDIR}/codium.appdata.xml"
# Install MIME type definitions
insinto /usr/share/mime/packages
doins "${FILESDIR}/codium-workspace.xml"
# Install completions
newbashcomp resources/completions/bash/codium codium
newzshcomp resources/completions/zsh/_codium _codium
}
pkg_postinst() {
xdg_pkg_postinst
elog "When compared to the regular VSCode, VSCodium has a few quirks"
elog "More information at: https://github.com/VSCodium/vscodium/blob/master/docs/index.md"
optfeature "desktop notifications" x11-libs/libnotify
optfeature "keyring support inside vscode" "virtual/secret-service"
}