From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E3E915815E for ; Thu, 1 Feb 2024 15:03:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A7F62E2A31; Thu, 1 Feb 2024 15:03:06 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 9042EE2A31 for ; Thu, 1 Feb 2024 15:03:06 +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 A9D683431AF for ; Thu, 1 Feb 2024 15:03:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 14DB5AE3 for ; Thu, 1 Feb 2024 15:03:04 +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: <1706799772.5be32a6988990866b303b25afe53289c2e7133b2.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.86.0.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 5be32a6988990866b303b25afe53289c2e7133b2 X-VCS-Branch: master Date: Thu, 1 Feb 2024 15:03:04 +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: fd8f6c31-b34f-44fd-aed9-0207e0e3d82c X-Archives-Hash: ec045b88bbd976a70524190345f60fd1 commit: 5be32a6988990866b303b25afe53289c2e7133b2 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Feb 1 15:02:03 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Feb 1 15:02:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5be32a69 app-editors/vscode: add 1.86.0 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.86.0.ebuild | 132 ++++++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index d794407e7182..8ce3667c7576 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.85.1-arm64.tar.gz 132288396 BLAKE2B 7888bf80ef6f2452b7f06f5f5ec77f DIST vscode-1.85.2-amd64.tar.gz 135093754 BLAKE2B 3445162de80d3bc01f2e9546f582c760ae4f08156b9f96f28957ef32e16ed12fbfbfb175b4d1ee2eb4ce37563b37e48e7b8fe269f186d2ccecc222a220d44dfe SHA512 84eaf46805a449f11bc2c8acbb200c22c20a20ea613e68d8d18e31b327f308366e84c4b867663b919cbc5569a56544f0e78bab6162945fa3f55f8e4c3086b044 DIST vscode-1.85.2-arm.tar.gz 122030066 BLAKE2B 09a235369b27b2e44e4009849cf3fe04be2ab15f7077bd47d81b3fdbaf31f5814c29712bc05bef81ff26c428a33df2838a56368d92324cfc0aa1933569218ccd SHA512 014597f3b08e218f8750a5edd1ecdc00a97a07e3f45362ab706cf1bd65844e7a79df5f5772a634045632a672db920cb9754555781760b9b47e42306a4a28eac4 DIST vscode-1.85.2-arm64.tar.gz 132290027 BLAKE2B 70044266ed60431547a2d4a55c62ada59a7bd2f3299fe4a75076550e1a1206f188776bff98b0d0e1d380557976db7b45c4bb29e60bc5831a2a34a3e6ce420c5e SHA512 86ddc90149e9e9a4d2bebc2790d883ffdab6e33f84355719581935ed70c3a3bf8bb709cbc2cfbb000e47adb98ed2ebc69324c4cc34b408e6ba5c5ac982e5adf5 +DIST vscode-1.86.0-amd64.tar.gz 140414646 BLAKE2B 4ce937554f06c3c78a85c15193eb80daec3629843e20c0d9316bb59a2c8e1d4611c0c062156b3efda0a1d2b7c2320568eb7f90c12048c1e94b609da857e7084a SHA512 ee738df782645276c60a59fa7e933106d0793b14ca290e5bd837a731d606f152083605e0006d494195a492c8332424fd81647c6e3fa3e5abccb17cdb593220f7 +DIST vscode-1.86.0-arm.tar.gz 125997645 BLAKE2B 2cee9b572c382b4af1e429000478c8aa7910a150a59836cbe87e94c5d1a1e6e6a972f8bc37d168081050fb98ea7d1adf29968d6d3701adc1d5de920fefa0dfde SHA512 4157368b5346b7ac2685ba9de6f70492481124fe03fd6d76424d8edce5fbecc4fb9d14d5e1b04bf6333d5f66fafd56d82d49747a94cdb460ccb09aa48440d089 +DIST vscode-1.86.0-arm64.tar.gz 137551699 BLAKE2B 21b3cee54f83e5cf7c81079f7f14f517b2a820762377d2c77a0c6be185e28bf3f84cd964824ed909fa6769efc9186c9ebd8580b6d4700842fd226782b342f16f SHA512 dc82b06024ba7746f8e3aee08373552a153ef4c1a6a608a7aa4e3b62be378ee9aa253e7b03c2f6879e04b7077d0da835bb2252122f1ff580afce38be76e4370f diff --git a/app-editors/vscode/vscode-1.86.0.ebuild b/app-editors/vscode/vscode-1.86.0.ebuild new file mode 100644 index 000000000000..f8ecb8a0a190 --- /dev/null +++ b/app-editors/vscode/vscode-1.86.0.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2024 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/libcanberra[gtk3] + 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/libnotify + 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.asar.unpacked/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" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscode-url-handler.desktop" \ + > "${T}/vscode-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscode.desktop" \ + > "${T}/vscode.desktop" || die + + domenu "${T}/vscode.desktop" + domenu "${T}/vscode-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "keyring support inside vscode" "virtual/secret-service" +}