commit:     e82f2385efe9eaefedcc275be3e2bddc6a674e37
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 19 18:52:39 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 19 18:52:39 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e82f2385

app-editors/vscode: add 1.99.3

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

 app-editors/vscode/Manifest             |   3 +
 app-editors/vscode/vscode-1.99.3.ebuild | 137 ++++++++++++++++++++++++++++++++
 2 files changed, 140 insertions(+)

diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index a4da8b88951a..82aa71c14f5f 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -1,3 +1,6 @@
 DIST vscode-1.99.2-amd64.tar.gz 148557070 BLAKE2B 
d335c1ffbd53dec4e00e39f005e6b59e705307763dd6d51aab7bcb7aa5e608db4ff3a407fcb1815454570a5baa100714d5f73d04c5ba99a9b8c63e55e04d792e
 SHA512 
02a51b80ff9f4e6e980978e709b8d41f82a3a6732f70800033d7c6f88758cb09d40fc3aa68aa6385431787ee7bb33019824d9ef471034bae7716efbb861b2ec8
 DIST vscode-1.99.2-arm.tar.gz 138868652 BLAKE2B 
d72743eb87f3613203ba18153b59dab1b939314aec7f793d86466138f5bec6b5af5e69bc6e62404f96cc73f32fda6f1732d4136b5b0fcd3e33c528a9d850e612
 SHA512 
313a395821e4f3a61a472aad78a6916b6d157b835296a1d12a8db8fda4c4274bf2ac338869c532943006019e9be0c537199e76f0a83570e974e162f08bbe8e30
 DIST vscode-1.99.2-arm64.tar.gz 149311803 BLAKE2B 
857775f75098c934aac9f5cda9eb06cae1a973a5e46dc5d38948ed84499cfd2bebca91c4a865fa043f1ee94e512bfb629091b882054a471e2a42e9102c8c69b7
 SHA512 
17e0628ac10cc176bddad67ff16a64b2b006b0400514bc615ac9420606df7f4948858d9eedbf1e7441a45f9b26e813d6dfb5923400c5ee61546d3a59b93fa0a6
+DIST vscode-1.99.3-amd64.tar.gz 148550671 BLAKE2B 
cb0d763075e383d4998aaa9734ca6fed230f594acbf8d58c4ab8ae97431d0c3c5e68f53419999ae98aacf352440e96cc1a80b33d912c354422be3380b5347b81
 SHA512 
8e8c07dd115986c5ce9093f6b9d8a7808ab1b3d4a0a44434051a70eead794429bfda5794673474cbca2f57166e02698cc00e9913b3ec2b9ef9554d64aee2bcac
+DIST vscode-1.99.3-arm.tar.gz 138881987 BLAKE2B 
9c9d2fd072eb8dd45b3879b7dd8ea77bc3845bb258c1320d9d87d7dd80501c19b22497b20b4f396dccce45d695676a4445455783801221bce32123d1e0c77c10
 SHA512 
b5d9cce224a2d19cdcf57459d1bd44ebaee0b721e8adffdd562df90b4878b20696a8d0635d28c28866aa902616b310315d9b7a6fa1fcd181558f0792b519c6ce
+DIST vscode-1.99.3-arm64.tar.gz 149300809 BLAKE2B 
ab234cdbcc92643e70d4e78c2aa5b7e1e8ab21435e522e505dbcacdabe793c52bcd36c4237628031b629f4e27fc9b7901c9304eadf1b2c1780cffc6f6658ff3e
 SHA512 
fcc71dfd1d70deabc19b772c5ddd16fb4ccf2c053c486d29461968a987be99c94f84ad13f4ca3b50c7dddfc44f96ec7a0af7b853dfd067eed87e149622c47711

diff --git a/app-editors/vscode/vscode-1.99.3.ebuild 
b/app-editors/vscode/vscode-1.99.3.ebuild
new file mode 100644
index 000000000000..04f694acb893
--- /dev/null
+++ b/app-editors/vscode/vscode-1.99.3.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
+}

Reply via email to