1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit desktop pax-utils xdg
8 DESCRIPTION
="Multiplatform Visual Studio Code from Microsoft"
9 HOMEPAGE
="https://code.visualstudio.com"
10 BASE_URI
="https://update.code.visualstudio.com/${PV}"
11 SRC_URI
="${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz"
12 RESTRICT
="mirror strip bindist"
20 app-accessibility/at-spi2-atk:2
21 app-accessibility/at-spi2-core:2
22 app-crypt/libsecret[crypt]
37 x11-libs/libXcomposite
54 opt/${PN}/libffmpeg.so
55 opt/${PN}/libGLESv2.so
56 opt/${PN}/libvk_swiftshader.so
57 opt/${PN}/libvulkan.so
58 opt/${PN}/swiftshader/libEGL.so
59 opt/${PN}/swiftshader/libGLESv2.so
60 opt/${PN}/chrome-sandbox
61 opt/${PN}/libvulkan.so.1
62 opt/${PN}/resources/*"
64 S
="${WORKDIR}/VSCode-linux-x64"
70 dosym
"../../opt/${PN}/bin/code" "usr/bin/code"
71 domenu
"${FILESDIR}/visual-studio-code.desktop"
72 domenu
"${FILESDIR}/visual-studio-code-url-handler.desktop"
73 newicon
"resources/app/resources/linux/code.png" "${PN%-bin}.png"
74 fperms
+x
"/opt/${PN}/code"
75 fperms
+x
"/opt/${PN}/bin/code"
76 fperms
+x
"/opt/${PN}/resources/app/extensions/git/dist/askpass-empty.sh"
77 fperms
+x
"/opt/${PN}/resources/app/extensions/git/dist/askpass.sh"
78 fperms
+x
"/opt/${PN}/resources/app/extensions/ms-vscode.js-debug/src/terminateProcess.sh"
79 fperms
+x
"/opt/${PN}/resources/app/out/vs/base/node/cpuUsage.sh"
80 fperms
+x
"/opt/${PN}/resources/app/out/vs/base/node/ps.sh"
81 fperms
+x
"/opt/${PN}/resources/app/out/vs/base/node/terminateProcess.sh"
82 fperms
+x
"/opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg"
83 dodoc
"resources/app/LICENSE.rtf"
85 insinto
"/usr/share/mime/packages"
86 doins
"${FILESDIR}/visual-studio-code-workspace.xml"
91 elog
"You may install some additional utils, so check them in:"
92 elog
"https://code.visualstudio.com/Docs/setup#_additional-tools"