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 BB974158094 for ; Fri, 16 Sep 2022 15:18:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E1EB8E0893; Fri, 16 Sep 2022 15:18:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C9AEBE0893 for ; Fri, 16 Sep 2022 15:18:41 +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 E958034085A for ; Fri, 16 Sep 2022 15:18:40 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 59FEDD4 for ; Fri, 16 Sep 2022 15:18:39 +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: <1663341495.2a1a7d0bd9e7d9b4def355dc749050ec8776cb8c.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.71.2.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 2a1a7d0bd9e7d9b4def355dc749050ec8776cb8c X-VCS-Branch: master Date: Fri, 16 Sep 2022 15:18:39 +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: ec069a72-9b53-46a7-af90-94ffa0e803fe X-Archives-Hash: 12d8d5c2fd8cb129cc56b2eea337b739 commit: 2a1a7d0bd9e7d9b4def355dc749050ec8776cb8c Author: Arthur Zamarin gentoo org> AuthorDate: Fri Sep 16 15:17:58 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Sep 16 15:18:15 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a1a7d0b app-editors/vscode: add 1.71.2 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.71.2.ebuild | 127 ++++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index b0bd455aab14..25b573c96fd4 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.71.0-arm64.tar.gz 110195894 BLAKE2B 92ad4f63535922c54ce8de7c6db152 DIST vscode-1.71.1-amd64.tar.gz 120014241 BLAKE2B 95268c8fd7ec5aec98baf496ac07f380fe80ec95264ddbc1f38003cb185ae7f70e8e0168eb079b2bbf3c7c97e14f634be603e5d267b8672426b59d80f6cf6183 SHA512 b09d5b8e2e4fd90ab548cf03d16409dcac3a083ecf82639eee235f169d14cb224ca66b47acf5f4cc080a9bc3ca9f12785e5bbd4be405e5ba56c7fc47de31e91b DIST vscode-1.71.1-arm.tar.gz 101249342 BLAKE2B 60c0dcaa3badbde83a3c426268b7484f7d1dd9b56c9aed510e8383f362d7b662f093e6d94ec0abf513839f5f03e852e2c3c661c2787128ff1baf27750a210df4 SHA512 66ed8e396572ecb2040727aa2989b163e51838bdbd9388e8c85e1618ed227add47904773e309bf26e5d40d039cb2e338f55f9306929b8c2602f3caadf8889608 DIST vscode-1.71.1-arm64.tar.gz 110197541 BLAKE2B dc042fb9325dce6d3c9dfe6ce2f650319a7eb30eb799c46a0563ab6049c7777ff814f94f97ff835d557eccf39051f68440850936f3ce9a3692ccefce9b4fa3b7 SHA512 8f57c5298d8389d51600893f545103c1101d956bce3bbb9f8334d11847254c31ff3367387d9a78c6546597c3cf6647fa5fd045976b1e1fddb14ac7a338763a1b +DIST vscode-1.71.2-amd64.tar.gz 120012826 BLAKE2B 4e93141ebacc39e47600b9919175e206f4b9d26134657b0f70137d35ab75582846783a3a6f4642e6b9f6a5c64f258efdef3fd480b08a6261bef68eed2e081ca0 SHA512 4ea93a95c009f1b6a816b47374e68f49b43d3bad195de612912f488a83eb48d63382c480fbaff0efa1baa738bd50aa6dbd8244d56870dd27e1592d043778d156 +DIST vscode-1.71.2-arm.tar.gz 101261361 BLAKE2B 563faefdc0132b41f50166f84f7e508cd34f4e6609d47ce2966a17083f6b28e5c302faff8374060c74137d05f691bcf1120abb4c6111333b9317306691a00bcb SHA512 50821062437cbcc662791bc1c9f5004cbbfb2455de768ac205fcb9019b3e5775d24ca39cc60ed3280fb67b026c86f4ee117995e2826f2b7a6defc81169f53585 +DIST vscode-1.71.2-arm64.tar.gz 110174916 BLAKE2B 8f14bd5df25a64c5872b3044c5d66810b88af6d496f159788651f9177525999747713888814c125189c817a814db41e165a754dfd5a689b21b507eea1572673d SHA512 978c0c613ec2d74278de829b158dcc4983fd9ffe86ddcab92968df7fa8d08fef29f9b1126b65fbe15864c72f6169106ba5da505e8d038de67896a00ab426182a diff --git a/app-editors/vscode/vscode-1.71.2.ebuild b/app-editors/vscode/vscode-1.71.2.ebuild new file mode 100644 index 000000000000..db027c6133a6 --- /dev/null +++ b/app-editors/vscode/vscode-1.71.2.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2022 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}" + +RESTRICT="mirror strip bindist" + +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" + +RDEPEND=" + app-accessibility/at-spi2-atk:2 + app-accessibility/at-spi2-core:2 + app-crypt/libsecret[crypt] + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + sys-apps/util-linux + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + 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/libxshmfence + x11-libs/pango +" + +QA_PREBUILT=" + /opt/vscode/chrome_crashpad_handler + /opt/vscode/chrome-sandbox + /opt/vscode/code + /opt/vscode/libEGL.so + /opt/vscode/libffmpeg.so + /opt/vscode/libGLESv2.so + /opt/vscode/libvk_swiftshader.so + /opt/vscode/libvulkan.so* + /opt/vscode/resources/app/extensions/* + /opt/vscode/resources/app/node_modules.asar.unpacked/* + /opt/vscode/swiftshader/libEGL.so + /opt/vscode/swiftshader/libGLESv2.so +" + +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/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + # Install + pax-mark m code + insinto "/opt/${PN}" + doins -r * + fperms +x /opt/${PN}/{,bin/}code + fperms +x /opt/${PN}/chrome_crashpad_handler + fperms 4711 /opt/${PN}/chrome-sandbox + fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh + fperms -R +x /opt/${PN}/resources/app/out/vs/base/node + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg + dosym "../../opt/${PN}/bin/code" "usr/bin/vscode" + dosym "../../opt/${PN}/bin/code" "usr/bin/code" + domenu "${FILESDIR}/vscode.desktop" + domenu "${FILESDIR}/vscode-url-handler.desktop" + domenu "${FILESDIR}/vscode-wayland.desktop" + domenu "${FILESDIR}/vscode-url-handler-wayland.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + elog "You may want to install some additional utils, check in:" + elog "https://code.visualstudio.com/Docs/setup#_additional-tools" + optfeature "keyring support inside vscode" "gnome-base/gnome-keyring" +}