summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <Matt.Jolly@footclan.ninja>2022-05-19 16:53:29 +1000
committerArthur Zamarin <arthurzam@gentoo.org>2022-05-19 19:46:12 +0300
commit3f071f6bba6bc9e9b9a13ece90a01fe439474dba (patch)
tree9b0980bb8f63585e520527ded9ef27e62699a959 /app-editors
parentnet-mail/mailutils: drop 3.12-r4, 3.13-r1 (diff)
downloadgentoo-3f071f6bba6bc9e9b9a13ece90a01fe439474dba.tar.gz
gentoo-3f071f6bba6bc9e9b9a13ece90a01fe439474dba.tar.bz2
gentoo-3f071f6bba6bc9e9b9a13ece90a01fe439474dba.zip
app-editors/vscode: add 1.67.2
Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> 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.67.2.ebuild123
2 files changed, 126 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 4284fbca2a45..272218971169 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -7,3 +7,6 @@ DIST vscode-1.66.2-arm64.tar.gz 110613144 BLAKE2B e2d3139f7779152a52e34c740f4c95
DIST vscode-1.67.1-amd64.tar.gz 115657504 BLAKE2B aba44bf0e4f11865a6d3dc0baa2d596a7598d86133d6aa6ca078bae27ec0db876c4912834595b9f539ce5a64a1c48dcbc9e9b463581d7acb861387d738f33222 SHA512 e29d63a8f0d394a652dc34786529069a3e51bbfda3fa6c8ab89997d3e0954b1403aea571196cb4a706ec7f480c2a8f437b2d00686f33d27c7f5a67d19e91f40d
DIST vscode-1.67.1-arm.tar.gz 96747967 BLAKE2B 0506e041b8f90b27f691136a12a5c7332c06ced486930bc6915c16fb592a84920bfc4a18c15fa2715318f1373f9986562f786867f7405c947b4da7dfa9f02a76 SHA512 67777c17c6da4e0cc46613987275a9e561ce8fa52e6fa7da8fb9e7d0a2dfcf8244a5e1d66ea003bcf7752658306ec69a6fe66df620d00338d9963f975f967efb
DIST vscode-1.67.1-arm64.tar.gz 110634659 BLAKE2B 3b9ad946eb7d2e6441dfda234c50c91021f910b2bab1340aa651ee6bdbe414b49db51e5729e6a16d938d0b2e47cbaab5dc8045f3bc2735f64551ba60cb52132f SHA512 557bd49656991cc899316d0ee66cbce9dde2f2b77ef92b6a2d2e1fba4794f54ac5550fbb8fe3e64ee5fe77b9b019a93f78886ab7cb1efff9a4c777dd6b244ff3
+DIST vscode-1.67.2-amd64.tar.gz 115658426 BLAKE2B 1c091323b6ac492ca4b0c0a959d19a931b3ecfedfaeafb1d99b107e02b1ee0bdc7beff4604aef5e68bfcb20ab6c3106e4e625b7a5f85befd3ada3186387859e2 SHA512 fc4120e1b93d417c257250bbd4b9a4f5e11844a7d52013c321f0872928f178e57b73e3781e4141b96ccd4067b1360a7024103a46933d6e8e2a87e608dbac1043
+DIST vscode-1.67.2-arm.tar.gz 96748623 BLAKE2B 46a97090d9d8eb8c8cdb91c6bb15392b01c3312ab6fba02e45cd217f03d4a80cc514efc7f57bf88fe413f84604cb9add5d48482d1f77baccbe9eddfc881b976b SHA512 c08630eb2c1b51e8e34a8ab5dec658de3b59f59df4635d539f79d689ec89d116d2c220c642eeade48995ee815c318c7345aa88fec2d9ea5e942cd7d72abcb16c
+DIST vscode-1.67.2-arm64.tar.gz 110649454 BLAKE2B 0ecb552ce956dc4d5aaaf5b1c8c26ad35857d4ac43b05d8eefaf7da95aad8352b16817eb2c4ec0285a8dda8859276f9f1fb93e41459d5479bfa44988e410d955 SHA512 a9a22fa1c722f6329f0de3a81b73edbd681678ccf6ba1b7fefaf8202ee2ee929e2ae8a160e0b928d5dc53d9c74789fa06d610a5bb1a6b4a8223718e48db9f1f9
diff --git a/app-editors/vscode/vscode-1.67.2.ebuild b/app-editors/vscode/vscode-1.67.2.ebuild
new file mode 100644
index 000000000000..8ab1bd247c0a
--- /dev/null
+++ b/app-editors/vscode/vscode-1.67.2.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop pax-utils xdg
+
+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/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
+
+ # 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.sh
+ fperms 755 /opt/${PN}/resources/app/extensions/git/dist/askpass-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"
+}