commit:     ce2014d8f3f03609934c8d65ba990426472cfe43
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 24 07:36:39 2026 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jan 24 07:39:03 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce2014d8

app-editors/vscode: add 1.108.2

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 app-editors/vscode/Manifest              |   3 +
 app-editors/vscode/vscode-1.108.2.ebuild | 161 +++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+)

diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index ccc468c2fd08..baa3df37789e 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.107.1-arm64.tar.gz 157441094 BLAKE2B 
72d0fc45d59611b12ceec318600ee
 DIST vscode-1.108.1-amd64.tar.gz 163223567 BLAKE2B 
2350824dc69a845f1b25f700a3442198b03e013596bc60aa1137818939354d469b1037bcf88b152a4d2599b4dbd04e414aef343e09c96c9015db6fdc3649bcd0
 SHA512 
e974e5d2b49a58d3c6c2bb0b320242445eb22f1662152a448f666a52de5494e0e6a0af46db3d7413b3a8c38d0f27ef1611dcd51044b148c876f1284b87508cd7
 DIST vscode-1.108.1-arm.tar.gz 146602890 BLAKE2B 
6fe036b809e96f3424a35596cd8fe4320438e4e45b6a62cc12f1dbc3367237658628e3e0e596a35a348a70f6836fcd83136dfe4e1c06ad7922cf6e3aa7d18e75
 SHA512 
aab248882f0526fb84e7dfec16e3ca7ddc9b45e2b2d43887c960e34f002cc2330d370bca29a6c6f1ab79590d2a16b5b28a253dccb92afbf23f0de8c4553dd1bb
 DIST vscode-1.108.1-arm64.tar.gz 157508068 BLAKE2B 
7b80c1e59e38e36d5cc510ac9aac36d9e5138a473cdff5b68337dbb75d01b6fd151d2ee3a2285d77af7d9755db3828807641f5a3c86f94bbd99e7c832b4fac1c
 SHA512 
a3befc1d64e1344643f1feda46cd0d6fba52dce90e8594780237af212ede90959f744f67f0279d6bb554cca4a4985d3d5cec191f4fce3ef38d04f5b0d3e2a6cc
+DIST vscode-1.108.2-amd64.tar.gz 163225943 BLAKE2B 
a231a19684b050d90e127bbe3aab737178a32d23cc89c934999fdadea8c6c194fc9282e9364a2e825d59061ea0d03a6491d8ff9b649e0bb899060a2040d4844f
 SHA512 
e646d0a5fbdfe19d20e426d2b10b2ee35eb964b4de47281d58c4197f053f05adfa5b9aaa9e249e934021a954249e8006191271774103ea6289c31c266154f6be
+DIST vscode-1.108.2-arm.tar.gz 146595261 BLAKE2B 
640d6067fed7a2f89bbdbd174f89b83006e712727aa07cf75c8811dd9c247a250138ef4661c1c21a1c7d8e1fd7561aa3e3fce06ad20433140443201fd8d29a76
 SHA512 
ee03467cc8f04776d928258fcdadf2b3e52a89255fef9afbe1bd8626584648ba44b2cb5c255321be2edfddf50feb45029bff67b6df22fdf5a18925d8cfe67572
+DIST vscode-1.108.2-arm64.tar.gz 157492027 BLAKE2B 
ae0cf734441ff036e6eb228b89246d0fa39d5a5af5049532c477e3e834963de70a34b2a763225295df024661aaaadb245c6c7ec7ca665b27d0e4514c390087b5
 SHA512 
34be7fda81b208e3c62cfe287f3f0060442167365850f0fae6fda9c6e0f21b4ebde329173d13defada4cd294e8e259b7f1a3c22b8675a799acc166544e3d5f9e

diff --git a/app-editors/vscode/vscode-1.108.2.ebuild 
b/app-editors/vscode/vscode-1.108.2.ebuild
new file mode 100644
index 000000000000..da15f100c4e3
--- /dev/null
+++ b/app-editors/vscode/vscode-1.108.2.ebuild
@@ -0,0 +1,161 @@
+# 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
+
+DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
+HOMEPAGE="https://code.visualstudio.com";
+SRC_URI="
+       amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> 
${P}-amd64.tar.gz )
+       arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> 
${P}-arm.tar.gz )
+       arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable 
-> ${P}-arm64.tar.gz )
+"
+S="${WORKDIR}"
+
+LICENSE="
+       Apache-2.0
+       BSD
+       BSD-1
+       BSD-2
+       BSD-4
+       CC-BY-4.0
+       ISC
+       LGPL-2.1+
+       Microsoft-vscode
+       MIT
+       MPL-2.0
+       openssl
+       PYTHON
+       TextMate-bundle
+       Unlicense
+       UoI-NCSA
+       W3C
+"
+SLOT="0"
+KEYWORDS="-* amd64 ~arm arm64"
+IUSE="egl kerberos wayland"
+RESTRICT="mirror strip bindist"
+
+RDEPEND="
+       || (
+               sys-apps/systemd
+               sys-apps/systemd-utils
+       )
+       >=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
+       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_unpack() {
+       default
+       mv "${S}"/VSCode-linux-* "${S}/vscode" || die
+}
+
+src_configure() {
+       default
+       chromium_suid_sandbox_check_kernel_config
+}
+
+src_prepare() {
+       default
+       pushd "vscode/locales" > /dev/null || die
+       chromium_remove_language_paks
+       popd > /dev/null || die
+}
+
+src_install() {
+       cd vscode || die
+
+       # Cleanup
+       rm -r ./resources/app/ThirdPartyNotices.txt || die
+
+       # Disable update server
+       sed -e "/updateUrl/d" -i ./resources/app/product.json || die
+
+       if ! use kerberos; then
+               rm -r ./resources/app/node_modules/kerberos || die
+       fi
+
+       # Install
+       pax-mark m code
+       mkdir -p "${ED}/opt/${PN}" || die
+       cp -r . "${ED}/opt/${PN}" || die
+       fperms 4711 /opt/${PN}/chrome-sandbox
+
+       dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode"
+       dosym -r "/opt/${PN}/bin/code" "usr/bin/code"
+
+       local EXEC_EXTRA_FLAGS=()
+       if use wayland; then
+               EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" 
"--enable-wayland-ime" )
+       fi
+       if use egl; then
+               EXEC_EXTRA_FLAGS+=( "--use-gl=egl" )
+       fi
+
+       sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
+               "${FILESDIR}/code-url-handler.desktop" \
+               > "${T}/code-url-handler.desktop" || die
+
+       sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
+               "${FILESDIR}/code.desktop" \
+               > "${T}/code.desktop" || die
+
+       domenu "${T}/code.desktop"
+       domenu "${T}/code-url-handler.desktop"
+       newicon "resources/app/resources/linux/code.png" "vscode.png"
+
+       # Install metainfo
+       insinto /usr/share/metainfo
+       doins "${FILESDIR}/code.appdata.xml"
+
+       # Install MIME type definitions
+       insinto /usr/share/mime/packages
+       doins "${FILESDIR}/code-workspace.xml"
+
+       # Install completions
+       newbashcomp resources/completions/bash/code code
+       newzshcomp resources/completions/zsh/_code _code
+}
+
+pkg_postinst() {
+       xdg_pkg_postinst
+       optfeature "desktop notifications" x11-libs/libnotify
+       optfeature "keyring support inside vscode" "virtual/secret-service"
+       optfeature "Live Share" dev-libs/icu
+}

Reply via email to