summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-02 17:30:05 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-02 18:17:07 +0300
commitaf9249d26632ac58853ef30f01844e27429575b9 (patch)
treee9cf6df7f84f4f5487b217c2437ee9b6756c5621 /app-editors/vscode
parentdev-python/google-api-core: add 2.10.0 (diff)
downloadgentoo-af9249d26632ac58853ef30f01844e27429575b9.tar.gz
gentoo-af9249d26632ac58853ef30f01844e27429575b9.tar.bz2
gentoo-af9249d26632ac58853ef30f01844e27429575b9.zip
app-editors/vscode: add 1.71.0
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.0.ebuild127
2 files changed, 130 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 3f64d8113514..cd4e6d44f02a 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.70.1-arm64.tar.gz 114897540 BLAKE2B 9728a77a9b012352f5f85a236f3cde
DIST vscode-1.70.2-amd64.tar.gz 119730258 BLAKE2B 3d9098ea2bfea299eca56eac56c4b503b3cb504350009891d508da99cd1644e4290fabeb7fe9a1128f9606fea7c227d0de2b125af0e63086c62005895bdfc5f5 SHA512 aeaeab1c6a67f211e1e7b4132c10e12577663914b519b68d1971d81d8c20cbf80e02921d4b3ac2e6bda97c76984a76961a9a96cfe8480026d731498377dfc4bf
DIST vscode-1.70.2-arm.tar.gz 100796924 BLAKE2B b59d96166dcfca06666f8efe84f0e8c81d9c94ed5d9cbe2e4e1ddef0590ff67dd4d31cdb9a15950026519d98b6d542c9f9993398b473c6bace5371cb7898bde3 SHA512 4e60480dabdf8100be9e6db269ba2603e3c730b94437bbd1f8e8535bbfad2694c3c717ad97776181bd10a95c40840c25a8af928e5ce3952b0b6761437e9c1055
DIST vscode-1.70.2-arm64.tar.gz 114896722 BLAKE2B df09413b7a56274e0c9408a774d43cb15fd01b94447044558f9e51d0d03a7d99941efd78e85c5a602659f27cc013e32327f52f31d1ebfe338f6be26d2e6d60ab SHA512 bf0ceb5a8bbfb20c8a7c08d2a4179d78bba161bbf54582ad4d3821387ee1b090d191dac791cb446fa7439e185708aad2c6fa2f5997f4e92df99a692a7b8f5b38
+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
diff --git a/app-editors/vscode/vscode-1.71.0.ebuild b/app-editors/vscode/vscode-1.71.0.ebuild
new file mode 100644
index 000000000000..db027c6133a6
--- /dev/null
+++ b/app-editors/vscode/vscode-1.71.0.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"
+}