commit: 6bf1b8f780654bc390f3677f2ace853fcf758d11 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Jan 17 16:06:35 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Jan 17 16:09:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6bf1b8f7
app-editors/vscode: add 1.96.4 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.96.4.ebuild | 137 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 08749a2d1844..3d275682e5b7 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.96.2-arm64.tar.gz 145441808 BLAKE2B 183b7c3a3754dc155fcadef184e627 DIST vscode-1.96.3-amd64.tar.gz 149447740 BLAKE2B d27ffd0b7ec39b754ec5b7bcc40642fbf02699a90f8ce23e97f677e4983814579f6215e995f9810f1c357f522ecf1c7598affeec0bbaea08787d103388b8a6f3 SHA512 8b77d82d08ec5a53e802bc3b38d6177287519eff689b6aa57e6f722e99ec27035cf41caaed024192d61b23001c2a21ff9ebdebc496fcdbbd855b061e163ea882 DIST vscode-1.96.3-arm.tar.gz 133495363 BLAKE2B 43a77542b9654e63c3f2cf3534fc5bae82780c9294f2dee1ebf8e19aca93b692eed9b74605b5073a1f5a3e235bb8510c8c365f61391cc30985727e9e382e4792 SHA512 0d20d87056b6e4015ae692279943f013e459ebfa55a5bf753a1ad7dfe9f0476e0456f1dd5ea80720c2df5ed4b616808ad8806fa8cb325886f8cbfae0d0b8d1b1 DIST vscode-1.96.3-arm64.tar.gz 145452700 BLAKE2B 5e4a2ba15479549feb832a9d1feec69e0c4313146a265d351e6d811126cff7f07224db9e76faa829d0a615f94dacbc54184778ceeb3f7825796325dc792cecd4 SHA512 7a5a6360f2d2b84c4ec9747a8408c0223c1a6f6694405bd9da05e052a74842084b87c2f6d711d974fc43f08ff74bcf9864e1ddadb1fac390967a27c99912ff7f +DIST vscode-1.96.4-amd64.tar.gz 149442416 BLAKE2B 50003ff1b0bc04f53040d6b3119826bb92a9318dfa54d42ce326f2b9e6d00f8c0e57f3a0119d994ae7a5b773964c488115f70b0ce6d95840d206fc5397bc6e24 SHA512 67b25bb6f130aaaa74bfc98d9636ead3db03ad09827e71848a578b87ad90de940b6379d0d71acc6c8305ddabb47f3826ee12ee9eb17e51fd7b8b5112e70ac461 +DIST vscode-1.96.4-arm.tar.gz 133502392 BLAKE2B 5c01b9c40332cc39f66de17b37623d26b92a9fae797526caef472274e8c5d6c5f84dc52e110cea4a0288ae229634748fa1d0b1992ac5c57fb8a27b9a00cbf205 SHA512 1233dcdcabe640be59ddd9f3d6da1d34ccff165406dc2139b387708f5b95c941b1bb9e7506e3ae50af164ee9192d6f33cb99248f52eac5082bf352c508a31673 +DIST vscode-1.96.4-arm64.tar.gz 145445086 BLAKE2B 4caddcccb57e9e8623cbcf03f4fb9dfb6c9cf2a4456f655346cf0ddc264a9e96a99a768695080f382972c4e876651c334405f23dadcccbe412e866ccd6b15631 SHA512 fb987dfd85c529be46c7a76d4a44c4a3aa0a4e6a0a9df2cfa5e4984d4849cbfbf772dff6b410957fab92f560a56bea499309d14b682d293ac8e9dfb56c601e71 diff --git a/app-editors/vscode/vscode-1.96.4.ebuild b/app-editors/vscode/vscode-1.96.4.ebuild new file mode 100644 index 000000000000..04f694acb893 --- /dev/null +++ b/app-editors/vscode/vscode-1.96.4.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 +}
