summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-16 13:45:14 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-16 13:45:14 +0300
commit45754cf0ee197e0969da78c7df5e33536b3dac91 (patch)
tree88d9c15282f9b32653cec77d954c8d7f30c167c3 /app-editors/vscode
parentdev-python/snakeoil: drop 0.9.10 (diff)
downloadgentoo-45754cf0ee197e0969da78c7df5e33536b3dac91.tar.gz
gentoo-45754cf0ee197e0969da78c7df5e33536b3dac91.tar.bz2
gentoo-45754cf0ee197e0969da78c7df5e33536b3dac91.zip
app-editors/vscode: add 1.71.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.71.1.ebuild127
2 files changed, 130 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index cd4e6d44f02a..5539e04f2460 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.70.2-arm64.tar.gz 114896722 BLAKE2B df09413b7a56274e0c9408a774d43c
DIST vscode-1.71.0-amd64.tar.gz 120011495 BLAKE2B 21fe7b9b51d1e2707d93db638a2deb0c8f38f70f5270a66b42d8ab9feedaabec06c1ac0ac971b22ab5b602856511ab8236c385ea1c51cc6f670a31f1dd65393a SHA512 113d089f51a863d0f70abe0e12aa6639e26bb7a9abe69053cfaee64de270bfd83b9f257746116fa43b05bb2f18f5aae654e4e5d3d1b677a38193b0c7605c3475
DIST vscode-1.71.0-arm.tar.gz 101274306 BLAKE2B 305e1559141d0a382de63046b240b36d24c88597a93b68b2cea04dea9d6217a51f42cbe9f7470660754fabf02d9a2ccc95f1b6a36800fbfd9a23e5d946373ca1 SHA512 cd4189e21f1c343cb48dc49db3f5b546e64914e13bcd0799d6991e0bc3225b65577167a1dff64819bfa832d309a67c958af2f7fc67463901f9c331c26c1f6865
DIST vscode-1.71.0-arm64.tar.gz 110195894 BLAKE2B 92ad4f63535922c54ce8de7c6db152abdeb3e894d71807deea04f23c4debf8d441ddfa2f4c958a4975282d01bb1da4135a338b1c8ba17e430bad51bee860c32f SHA512 72c4ff1c2a62d609e5a3bbe29c2b36fef267c7e3b0c8af904ea9fcaf67625a91bc7de8c4e0d4570f8b98990e87b579149be9a15ca4284ed87c1cf0b1b48eaecd
+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
diff --git a/app-editors/vscode/vscode-1.71.1.ebuild b/app-editors/vscode/vscode-1.71.1.ebuild
new file mode 100644
index 000000000000..db027c6133a6
--- /dev/null
+++ b/app-editors/vscode/vscode-1.71.1.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"
+}