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 59E6A158020 for ; Fri, 4 Nov 2022 08:39:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5928E0874; Fri, 4 Nov 2022 08:39:08 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 901D4E0875 for ; Fri, 4 Nov 2022 08:39:08 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA3D7341462 for ; Fri, 4 Nov 2022 08:39:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7C2606F2 for ; Fri, 4 Nov 2022 08:39:06 +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: <1667551133.16b9829531a9358e87f98bdcaa58c0543fade250.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.73.0.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 16b9829531a9358e87f98bdcaa58c0543fade250 X-VCS-Branch: master Date: Fri, 4 Nov 2022 08:39:06 +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: 0d3c5ef5-3dda-47a3-a839-ba6d308cac06 X-Archives-Hash: 1f82ec1606bfc1ee2926bf6502d48b68 commit: 16b9829531a9358e87f98bdcaa58c0543fade250 Author: Arthur Zamarin gentoo org> AuthorDate: Fri Nov 4 08:27:54 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Nov 4 08:38:53 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16b98295 app-editors/vscode: add 1.73.0 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.73.0.ebuild | 130 ++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 12d61318932b..466167bbe669 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.72.1-arm64.tar.gz 113915650 BLAKE2B 7e06292ae9ad6266368b1583e11629 DIST vscode-1.72.2-amd64.tar.gz 123828026 BLAKE2B 87b60ababde0e9fd9e5958bfdfa4557f87b8d67f0a84428fdecafb8d4342e4d71bf33c7d180e02d5780fc6638fdf7cfec540fc7019d86d83d92070e394eecdc5 SHA512 efd701f7dbdd3669f22a22fb33b07ab5e044582b0095b8a45e9be14b906f66fa61492de6fbd9936ee6cd44bd065a323b809164a5c0e06029b66929434449926c DIST vscode-1.72.2-arm.tar.gz 104783748 BLAKE2B aef1eeaafda5c26cfa0783b8c15d973e539c63b9865e8200015c0158d44367863ec77dd798fda4934168695dd138db17b1cf81403deec753179aa457a3af19d5 SHA512 e952c748c9341a400584a80d612f6f2961dba9cf3997aefe6e948bd51d7ee41fdfb7bd488766045edfd892bca3584c68fbecd4712a32c694983226b0ed97f2ef DIST vscode-1.72.2-arm64.tar.gz 113919276 BLAKE2B 25d27a2bb435b7078ec1a09408d24045de2f72a89ea0914da5bf49c9819a786a0e0fad64e675d2771d4a5eb1c61dfc966ad88f2ea9091c057a2abdf8df4a0cbd SHA512 c9cdc341092c9185709af064b8fa93ea34ded7ae04f8a85e1f611e24cdd55473687318b1ad0537fb25a5ad9ecd600071a85afd1e97c464132c94325bb32d3b01 +DIST vscode-1.73.0-amd64.tar.gz 135608145 BLAKE2B a0d44d06f42071abc49ef4495c1e9fc4d3395c58e61211e1e2cd32ae2dfefe83880db1cb4c3ee5ead670936e73826cd588f10ff4076ce241afcfa4f929cf67a8 SHA512 116ba487b27fe6b9b3702deb9f6664139e10a2b7a53c372dc6849376e541eb3fb560e4f115e920862b1bff5cc7d7fc35d3353c843a6fdef549565dbc1c8ea552 +DIST vscode-1.73.0-arm.tar.gz 115197213 BLAKE2B 7f1bfc0c208be83525da810d8f198b8d14e969a9c68ace75a0304d49d3360dd0a65b27ead51487437764c9cf911d2196756df7f4793e02ccb630ee60f724d4ae SHA512 3b1e93b3c40a36b53c5a81cfffdf76238b8dfb2370589c0ffd38db8c3acbde0f69d0500af59f26de0b69b5e1c218fde9a25abc4a432b889d9f0097f2c1a31ab0 +DIST vscode-1.73.0-arm64.tar.gz 124908757 BLAKE2B 94006f56d5df515773d697c876479da7f97001b0b6dec0b8ea46efe0183898536edf0792ca41b74e6e4a09e44da2cae8c1960b0e69b8fd7f7c0d54ce59fc1af3 SHA512 9db4e79727eca2f7cc85d221a3ccb14866b90f7350b8bcdb558ec3bfe7b6fbfe91bf46dbd59b1c10e7af139c3bf07628dd42e51e7f47d49534b1b2ab46891a7d diff --git a/app-editors/vscode/vscode-1.73.0.ebuild b/app-editors/vscode/vscode-1.73.0.ebuild new file mode 100644 index 000000000000..6f579f293498 --- /dev/null +++ b/app-editors/vscode/vscode-1.73.0.ebuild @@ -0,0 +1,130 @@ +# 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-core-2.46.0:2 + ( app-accessibility/at-spi2-atk dev-libs/atk ) + ) + app-crypt/libsecret[crypt] + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + net-print/cups + 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/bin/code-tunnel + /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" +}