commit: 4f99957fd4898649f2d79c1dfdda2bbf9be20888 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Tue Mar 11 20:04:32 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Tue Mar 11 20:04:51 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f99957f
app-editors/vscode: add 1.98.1 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.98.1.ebuild | 137 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index fc640e99442b..5e63e5a4d025 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.97.2-arm64.tar.gz 146748925 BLAKE2B 045a6d5cb9e652452f934fd57acf17 DIST vscode-1.98.0-amd64.tar.gz 148573919 BLAKE2B 5ac95e06e304b7b4fa8e04d6eb22b622124d1b2b7615a707db7e588babe2613045626eb574b52678fc7a26a2828fc633f5f29328ff38417917eb69bf5c1f2130 SHA512 fa9e59d7cb30f55636dab6f58df114d0ac0bbca4bae7b939e3fb4cab970012987bc8bda54065abe349e34d17a0639431f844c17f2a8e4ec7d644079173f591c4 DIST vscode-1.98.0-arm.tar.gz 138870063 BLAKE2B 6dd1e7af92cac62ed30f52ecf721da7e5cea087fe9323cf2b3c128bffcdae200f75399a40b31e55e33a8244e6d2ccb8954a92ae829b976bc6e2be738506a4fe1 SHA512 77b6378f982ac552dc8028b928def72ac2d82d7f0d26c2862222bc283f3d288d42aec3367029f04e9ef2a2744bd479dabda4805bd81177079b699ea708398b55 DIST vscode-1.98.0-arm64.tar.gz 149345224 BLAKE2B 568c342a262cfa8f6b3520072d63eb7343f9676f16ed679d2af5ad90825325ab0dd02d643a4c1398667ef0f95997fec533ffc038f6d139a3b1a06a8e90ae2b96 SHA512 4bcc2d6af85e0a392cb5463d9aa8cbce459b01e8acacd609e0e5ff57f9a0f3f6c5e7b547a2c4f755c6cde0ab29e0d271058c47ee91b102be37f259c22b2463bb +DIST vscode-1.98.1-amd64.tar.gz 148575540 BLAKE2B addb847defc1e476da88b591fb13cddd965142bc6f43a33eec961e901b043575ab296498a4bc5b456979bb5c27a429eed16edfff3f8a2b729f2242f3d529a29c SHA512 f9056bf8c477ea170be6c34c20d321f482042dfa23899d7e3f225097ad2d10e2f5620d882d542b03f7291aaf95835943b7a74de53c2667e952f652a0f1a3884e +DIST vscode-1.98.1-arm.tar.gz 138886561 BLAKE2B b62c7c33185b79da9d071d50b21cac3f87797fd14f4e2c9cc2a5f95f438df255fdee38d7eeabafa1f0a0b44180db46e3fb725587304f1da81c459ac949c9c0e1 SHA512 53a9c93f26c66441f971a7cbf4bd57468c5f53b461c270733701c8cc3586869cdda9e78a5bd339001b0647a494a005ad7c8ce28f7c6ba7587db234a524c8d15b +DIST vscode-1.98.1-arm64.tar.gz 149342137 BLAKE2B 43836e1792a6f9d7bbfcc44e6c75d775b2748e172b332f62b02e7bb793284b32bf3c57dab47d87fbdf80680e5881c294add504701d0fec6e78227a9298598f90 SHA512 fc5de008a1742be595804868d14abb2c34844acf564eae02a1a3dbc2d6ad23a1603ab2784f1f80350defc4151a330f99a725e9fe4fb5db5845eb77d2a957f303 diff --git a/app-editors/vscode/vscode-1.98.1.ebuild b/app-editors/vscode/vscode-1.98.1.ebuild new file mode 100644 index 000000000000..04f694acb893 --- /dev/null +++ b/app-editors/vscode/vscode-1.98.1.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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=" + >=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_install() { + if use amd64; then + cd "${WORKDIR}/VSCode-linux-x64" || die + elif use arm; then + cd "${WORKDIR}/VSCode-linux-armhf" || die + elif use arm64; then + cd "${WORKDIR}/VSCode-linux-arm64" || die + else + die "Visual Studio Code only supports amd64, arm and arm64" + fi + + # 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 +}
