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 3EB19158020 for ; Thu, 15 Dec 2022 18:02:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3882DE07E1; Thu, 15 Dec 2022 18:02:18 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 1BE12E07E1 for ; Thu, 15 Dec 2022 18:02:17 +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 E8290340E77 for ; Thu, 15 Dec 2022 18:02:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3EAAC77A for ; Thu, 15 Dec 2022 18:02:14 +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: <1671127325.9b1ec339a3c5bc55147aa115d2386af5ca6e1b4e.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.74.1.ebuild X-VCS-Directories: app-editors/vscode/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 9b1ec339a3c5bc55147aa115d2386af5ca6e1b4e X-VCS-Branch: master Date: Thu, 15 Dec 2022 18:02:14 +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: e352b652-c9eb-40b2-a5a5-1551426d2438 X-Archives-Hash: acc3b63d770ba598946fcb82d3dc34cc commit: 9b1ec339a3c5bc55147aa115d2386af5ca6e1b4e Author: Arthur Zamarin gentoo org> AuthorDate: Thu Dec 15 17:50:12 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Dec 15 18:02:05 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b1ec339 app-editors/vscode: add 1.74.1 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.74.1.ebuild | 130 ++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 5423c27aa3c5..9a9ba905f7c1 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.73.1-arm64.tar.gz 124921489 BLAKE2B dd244d2c1ebee9c8360284aa0a3afd DIST vscode-1.74.0-amd64.tar.gz 138266029 BLAKE2B ebc7c805d06c6e3685109d3432c0cde46ec40c009dfb4245c5446e9d234df470c10e256e5e4de919a98c20c66bb22b67ab59a8c1c80cfc5c05247c167c5b32f6 SHA512 0760d12364bf1440a42ffb96754a7bdee4a17a7f9e152d461ccdd6292417882fdfb5394d60ea1a774c1c446895c127cbe3de94972ee0dd83dba425163b9e6c22 DIST vscode-1.74.0-arm.tar.gz 117871171 BLAKE2B 8b2b4180c06b57ab28df603b52a9596c38cebb33d73deff2fe2053579ad3b0d92b50b9c7ccc8e193adbf38e836a8d73065978b0709d990adb9264132a4e2a8e8 SHA512 cc1749f20753c2001f798cad5217540701458cf61a0286623999b315c764858f7b131bec772c737aaf7ec3a34aa894137aecb863dc5d90826d87da69c873b1d5 DIST vscode-1.74.0-arm64.tar.gz 127510791 BLAKE2B 829539d4d4be86f59f0e8577b55fc656e6c78f4a172c6f1fa65147f4989893cc2c81d6aa30ca635078eba5cc9bcdf01465624abfa19f68cc7c5fe03514da57ec SHA512 68c1d67ece5493feab2259baee3dec3c5299baf10b07ab763c0a59bc909ee20731b4d589ae779c4e0115badc2c0da1dd12753f94591a11f45c2aed7156fe7092 +DIST vscode-1.74.1-amd64.tar.gz 138266991 BLAKE2B 283fedd15cf2eb75f339c741785cff35a0fca62b267cf71b26e2f0dce308f2f189c32bdfa0e4137109551b3bfb45c0e71fbb4d0940961d166955b053ae80e43d SHA512 73aabce1ce68c3b321490fe36083847d9d012c1a5fd6e095bf6a0160abad5e0935d4f1d8e0ad8e7e84bdc844bf8f2331baeb6ff58df2ffba080c97f46c096038 +DIST vscode-1.74.1-arm.tar.gz 117868697 BLAKE2B 331d1fa61d6a0ee4c588dc416fee3a62e33066c4d02a2a4a07002c89f5ec7a125269d05866817277f79649a3834221d209377d78622c4c8709cc6bffd9a9da71 SHA512 cb959dccdadbbcf4a592a92a543efa5bca193fcd9293dc61f42f4328676cfc1429099e4e10b8fef456b41e428f3eefecea462adde82a915ec3ab9c543184001b +DIST vscode-1.74.1-arm64.tar.gz 127513900 BLAKE2B 1d34816d28f2a415d33ee8196a2c6843ba49f736abf8d862232a4905ddf73679ac2bf5145cb2673355c16bc62143b1428ed0d503153d7a84a30d17cc9602a881 SHA512 6a41cc164e1fc2ea2ce5d3f0f2c346aa78df7aec93457e6b4359fb588c40120917c810f96d6434c532c199444f233690de46ec9cd94494ee1b6e2baaf2eb542b diff --git a/app-editors/vscode/vscode-1.74.1.ebuild b/app-editors/vscode/vscode-1.74.1.ebuild new file mode 100644 index 000000000000..6f579f293498 --- /dev/null +++ b/app-editors/vscode/vscode-1.74.1.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" +}