summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-10-08 22:44:10 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-10-08 22:44:10 +0300
commite9e972d97cfc7b8313129f98f6deaf25e586bd59 (patch)
treeda2f03fa194a1d497126ca33ff2c10e823e851e2 /app-editors
parentxfce-extra/xfce4-screenshooter: Stabilize 1.9.11 ppc64, #876097 (diff)
downloadgentoo-e9e972d97cfc7b8313129f98f6deaf25e586bd59.tar.gz
gentoo-e9e972d97cfc7b8313129f98f6deaf25e586bd59.tar.bz2
gentoo-e9e972d97cfc7b8313129f98f6deaf25e586bd59.zip
app-editors/vscode: add 1.72.0
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.72.0.ebuild128
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 25b573c96fd4..3c2cd45f9de5 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.71.1-arm64.tar.gz 110197541 BLAKE2B dc042fb9325dce6d3c9dfe6ce2f650
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
+DIST vscode-1.72.0-amd64.tar.gz 123819482 BLAKE2B 02af76ac4f68f688c6c0d7c2df41e6a01b575bf8c0f1073f5c13d5d390bbd1b56ab2f1fb22352d6d407842cd18ebd078ffc05472400efb397eaa2a5207c6de0e SHA512 c228ffad233f7162226bc2a51bbb5339f5c008326c92a895a5c0def02dd1150cae58794fb44b6425b2ad365f462cd3972480061ab2e87891b61b76cf280490dd
+DIST vscode-1.72.0-arm.tar.gz 104770726 BLAKE2B 5885de454ae094d814ead3ff9c910156714e4ec6cbdcc36fed8c4caf319e24cc41a5e40552a98c76d2c2a472d82f287ead24fd43e67321c9c5a246ef23f4aa7a SHA512 24aad1ceed99a04141f7aeb7a1150b9d8b51f31e10ea373929e86a45bcc56abf68c22aaf370c46b5639262dae76dbf4ed914d7154a8b2dbec65808d1247b006f
+DIST vscode-1.72.0-arm64.tar.gz 113898746 BLAKE2B 98690c88d41695614258100133232c73ef2112be2082245026412b93a13df122cbf7b2a77601fa87268af0c4ef7c5794b7399593b060dc3a844579d808083960 SHA512 b982e638420dffadb5200bb9bca5d7bcc1632280e62e1f237d43fc2d80f77ccb756edf6ac54550a5a8db4d4e4f50c307434d3f71cc881827e1649f474a01cde7
diff --git a/app-editors/vscode/vscode-1.72.0.ebuild b/app-editors/vscode/vscode-1.72.0.ebuild
new file mode 100644
index 000000000000..415f727447c3
--- /dev/null
+++ b/app-editors/vscode/vscode-1.72.0.ebuild
@@ -0,0 +1,128 @@
+# 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
+ 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"
+}