commit: 1113fa42c323424b4ce91822f1b90d5df470db28 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Thu Jun 12 19:41:37 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Thu Jun 12 19:41:54 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1113fa42
app-editors/vscode: add 1.101.0 Closes: https://bugs.gentoo.org/957204 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.101.0.ebuild | 154 +++++++++++++++++++++++++++++++ 2 files changed, 157 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 6cd184b9501d..e20bf11bae47 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.100.2-arm64.tar.gz 150615399 BLAKE2B 154d92ee6df0b168733135c796f84 DIST vscode-1.100.3-amd64.tar.gz 149944339 BLAKE2B 001aecf75ef5cd2efbc97042eb5079df917600c3e6dc485f0408a6091af182c0624596ffcd59eb82627ff9bc7efce84a08e4f3395dc0081d62a94f67f773d7fd SHA512 b7d84dea08aa0dd7f4274cce68d32ccba69d2e575cd061fa1944c3332614a8015365df1784a01d3eecff4cd886a94ea6a292935b57d71d2a0ef2fa24b66a96ef DIST vscode-1.100.3-arm.tar.gz 140108296 BLAKE2B 8febb9a5b87d88e5f3a242cbac1c0b7bbadf43a5554f5878f1372f53231fa54f54e2810e5309cde61bab73695ec442469dbf5c1c583c09bfc29cfa48c09a97a6 SHA512 1ca551d91e362b6814af795bbf44b130d08fa4e0bde0198dec61cb0b5ced9104ac0b5aa903b797ce2b3466c78cd40342bc550ced3dfb2fc2c2f3849f13e6f58d DIST vscode-1.100.3-arm64.tar.gz 150607038 BLAKE2B 6414c7eec859595b81e461ef4eb339cacd08890881ea45ad5e37577db813099718333634d2e29402bc7843d66eb2c90d7ca248f5ce0c45eb83c07ef4ff6f5234 SHA512 e3cfae7cb1e82249cccc7ff40d09286ca92d5260d0305ee303c31a8ed1412e6acd7d806ee772fe15d3bac1d1581a7a88e90129a1d73620076446a1249cf5ae62 +DIST vscode-1.101.0-amd64.tar.gz 154271656 BLAKE2B ef02a3541eacaaba9ee2dfa80f2bdd86a273481a762d3ed8ab280ad61b0e710ee4bd80f4a9e6cbbf67e8e2fcabf2e68e05a303a1d4c10c110aef68f0468b1598 SHA512 5cd7e22246b8a28f543a08e6378de31a8541bb139eefdab9eae7a49da69256684ce7ea6c278e9aa5e42fde8454241266faf0471971d4426e0e654b2141392114 +DIST vscode-1.101.0-arm.tar.gz 139375058 BLAKE2B dbf0e06c79075a138d0419935886afbe6b578237e8a88fc8d5743b3da8aec6b7d0136eb6e8813930ee2982e7df875cc8968dfd5b5ac29407a821b735cceb0eba SHA512 e9c924bc8e322e72fc06a733c82a19a04e87a0c3ccb875a504c2482ce794e37219711f76a76a02d94a778123d27e0924424613ff2333e51aebd44c09d6df5ac0 +DIST vscode-1.101.0-arm64.tar.gz 150210684 BLAKE2B aa6f5953ad2f2a3145af98a7ee87c1ae99f010acfdf19fd625ed07ad90a9446227951849095c235b95b8a7d38553e614d06164e72651883ab6d8183b2c06d74c SHA512 e42822df3fc32bc2d15b2fcb346de8ab386aad6da43b47db9d288e28b32df4d46612e4ef0c2825ff0373dfbf0f34383497eca0a8330341dc61edb9d88543b487 diff --git a/app-editors/vscode/vscode-1.101.0.ebuild b/app-editors/vscode/vscode-1.101.0.ebuild new file mode 100644 index 000000000000..bc12746ee850 --- /dev/null +++ b/app-editors/vscode/vscode-1.101.0.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2025 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 pax-utils xdg optfeature + +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 + sys-libs/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 + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-open-in-new-window.desktop" \ + > "${T}/code-open-in-new-window.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + domenu "${T}/code-open-in-new-window.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +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 +}