From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AAD861582EF for ; Wed, 12 Feb 2025 09:25:33 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 90FAB340C57 for ; Wed, 12 Feb 2025 09:25:33 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8C89A11042D; Wed, 12 Feb 2025 09:25:32 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 7F6A611042D for ; Wed, 12 Feb 2025 09:25:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 041C9342FF9 for ; Wed, 12 Feb 2025 09:25:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3511BE65 for ; Wed, 12 Feb 2025 09:25:30 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1739352326.af3a2ba88090e0be3d677e087c8a7e548a7e710c.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscode/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/vscode/Manifest app-editors/vscode/vscode-1.97.1.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: af3a2ba88090e0be3d677e087c8a7e548a7e710c X-VCS-Branch: master Date: Wed, 12 Feb 2025 09:25:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7a61d68d-50b4-4354-89ff-023931b88b61 X-Archives-Hash: b6292ff31a0c10f4f561388f115381e8 commit: af3a2ba88090e0be3d677e087c8a7e548a7e710c Author: Arthur Zamarin gentoo org> AuthorDate: Wed Feb 12 09:22:18 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Feb 12 09:25:26 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af3a2ba8 app-editors/vscode: add 1.97.1 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.97.1.ebuild | 137 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 157e96e43b8e..a8342ee0e1a4 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.96.4-arm64.tar.gz 145445086 BLAKE2B 4caddcccb57e9e8623cbcf03f4fb9d DIST vscode-1.97.0-amd64.tar.gz 150727110 BLAKE2B 6203cafb733a251618830d46901bc5be50c137e575ec0955141d1bfaad778d9e2fe01d45866e0d3bcfeb7759f869544fa64ef09eecc2980a2e10a10df9f14e2e SHA512 518dbc3d17455c0096f8b21b47549c429745c818cfc938711cb6af1f325ea126ab7c9b80e3cb1e43f596854c4ddbecf2279e7cbe6b8e0bf692569800956ebf73 DIST vscode-1.97.0-arm.tar.gz 134802622 BLAKE2B 82668537dfac9347f2ea0ee63838c7973a6636c968cec3a00ab59f67e6177c272fd5790c8e0e888fefee3ba52cde14705c4debf8ce248809a51044fabd378603 SHA512 9b7b7b10b711355cc3f3034161190984aa2d164438d15d584f00d13559d8ddb3cac0d3dde208c694553997c17cc26510c89c96366d9d156a9f4918b594b633ca DIST vscode-1.97.0-arm64.tar.gz 146745694 BLAKE2B b5a63442a9894949cdd92aee42fc7a8532b7d798d47d0d1aa37fd60a78b9e51aef8bab216c75ad9be0aa25f5efc0635de8abc40fc09b33557de3d82ae2e7fd65 SHA512 43b432617d6fe5c586c1af68e6bf49587c6196868e9bb1d6b0782a95f489ef23745ce7b3e6516f9464ecfd602f5fc77b102bce511f123eb6bb3bdca9987a305f +DIST vscode-1.97.1-amd64.tar.gz 150733407 BLAKE2B d2100a17d2ce027bdb734049a5ac3a63405a01cb3835419c2f7c942b102020dd0879263171586a95b0f7470e1d55ef779487a19a43b40e73d70234b857131603 SHA512 959e5d9e649befa2b72d15cf1e8fe839eea99eb237727e00c0fdc78c04437d404770e27d31ca28dca31242f6a306dd6862424e1abb3be289c1d1a3c692bf9035 +DIST vscode-1.97.1-arm.tar.gz 134817766 BLAKE2B 7513e1781682c80bbd1ffd4a27a261ee9bd5cd351dd50a5adfb6e5a075820ebc8ad8269f75ad532878778230c3ec58cc0bb5483c34156dd9fe1115ecbb55d003 SHA512 7ad5f8c3ebdec00c3335ac000e97a825abbe2fe7f5ac4f6fa4f74330a0f3a4d9a1203f43d527cb545dc2cf7ef9ef742fcb3116a91e508e5af63653d3c9a0cd13 +DIST vscode-1.97.1-arm64.tar.gz 146757140 BLAKE2B b295f1332bb934c867bdb5f8e15b8e702f17ae786d7c945e386c03d4ca6ec8d681f4b44bc8f7fedd1428e575f84f54ccd02d5be1e678d008cc70a532705e3cad SHA512 db35c677b057d380893000c83fa42304e8758c00cd0348acda5e37eafb301d1848851ee9c734fea09e5650cbd396512806e4daa4be7ca9b1c0ee4598f77ed365 diff --git a/app-editors/vscode/vscode-1.97.1.ebuild b/app-editors/vscode/vscode-1.97.1.ebuild new file mode 100644 index 000000000000..04f694acb893 --- /dev/null +++ b/app-editors/vscode/vscode-1.97.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 +}