commit: ecc0b9e14bcf09afc55b1976363333bcb6d3e1d8 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Mar 6 06:21:58 2026 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Mar 6 06:21:58 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecc0b9e1
app-editors/vscode: add 1.110.0 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.110.0.ebuild | 169 +++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 42dce99d86bb..5189981ee1af 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.108.2-arm64.tar.gz 157492027 BLAKE2B ae0cf734441ff036e6eb228b89246 DIST vscode-1.109.5-amd64.tar.gz 167112868 BLAKE2B 2441bbe6c7bc7d8d418c8badfc1b3fd97376ee8884fc904d91fc95f59ee1427fdf52193a4983d70996007e87803472f7f7065b1ff3014b14137f07a5367257aa SHA512 d98d0fef39242f82959a926e21c433a80710aacbf50aa160db654cd08ca6eb411cb22abe5f3b911d43968d3299b63cb4f22898438e430f941f9fdc40441378ad DIST vscode-1.109.5-arm.tar.gz 150486351 BLAKE2B 50861333f0a17793378f3431c063c9e3cd2de0331b40a7acc865257650494d15206c606ef3b12255a7e0fc81d99d08c27d6e8ad9fbcb42df2d7d620fb79a8926 SHA512 d1e5bdca866b040caf9feba12d5750d7a794af8204cb0d2644ce1371b8a1264566927c83e860aafc903659b0df7639194e63bb87ac4e1697652ca62467beee53 DIST vscode-1.109.5-arm64.tar.gz 161379754 BLAKE2B 4edb472a25763f49b68967d2b3cabe18fb9615cd40ae388074678fcff4c1dff07649a28649584e45a5941a3a09eef771856617d778608c28ffdf69d0f7f27b1a SHA512 6a8f789c5f42e5149809fd07a6df6331c6b2d859634ab2418b63e26e5cdacecec24b65c58a45fce2fd94e6db0f0f69e0c35e473c6d4ea1a8cd3946d092707af1 +DIST vscode-1.110.0-amd64.tar.gz 175551197 BLAKE2B b308504958e1ae9c12afa5728d90a17f56ca40d19c140050864e2cec4d640a8ddec74d06f0d4101d9849e843f6a5c3e95cd9831e5d0092707e857b9e839430f7 SHA512 5034edcb02297db164c250e4bc2488b9ba58a77d2fe7e08a6d5a019223c48baa02af5edf8a0e166660dd0cd3d29164bb6a34f34ceaecdff601f98a5782ccc424 +DIST vscode-1.110.0-arm.tar.gz 158753818 BLAKE2B 110ad7bc91ff59ee4bb4ae51d29721e10cb98d5c241eb43f5e91f614354273cd87674ced52a60c00c1ca4a27d18bf52a9c99d9ed5a51d8f1f59723a6b5679601 SHA512 f7b9fe19577ca3f9a833c123146433444a80ccbd025e6f4f956ca5170aa9429356d4e5306acaa6ef6b429aea4893723d5dc01606117a4e1f244efced1930cf69 +DIST vscode-1.110.0-arm64.tar.gz 169710876 BLAKE2B 47b17abfa1ac0ca0e5e9fea9b4a3e30e1a6e39bb1bdc378d0b6004290c733b6613c7579864f8c9a2cb7226a5ec3d91ac55fdc90f373fdad901735e9c923763a0 SHA512 43ae030f9234b9ab761287559627f67ac8ec8c761d2432c31540dcff100472443442fa5809f1231d5a46dc5dc56be3b954269242edc40dc6b7d2bd05061ade10 diff --git a/app-editors/vscode/vscode-1.110.0.ebuild b/app-editors/vscode/vscode-1.110.0.ebuild new file mode 100644 index 000000000000..7c7e37f04a69 --- /dev/null +++ b/app-editors/vscode/vscode-1.110.0.ebuild @@ -0,0 +1,169 @@ +# 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 webkit" +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 ) + webkit? ( + net-libs/libsoup:3.0 + net-libs/webkit-gtk:4.1 + ) +" + +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 + + if ! use webkit; then + rm -r ./resources/app/extensions/microsoft-authentication || 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 +}
