app-editors/visual-studio-code-bin: bump to 1.63.0
[gentoo-zh.git] / app-editors / visual-studio-code-bin / visual-studio-code-bin-1.63.0.ebuild
blob30c5057c40b03400e393b600d6e31098915d8d56
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit desktop eutils 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"
14 LICENSE="MIT"
15 SLOT="0"
16 KEYWORDS="amd64"
17 IUSE=""
19 RDEPEND="
20 app-accessibility/at-spi2-atk:2
21 app-accessibility/at-spi2-core:2
22 app-crypt/libsecret[crypt]
23 dev-libs/atk
24 dev-libs/expat
25 dev-libs/glib:2
26 dev-libs/nspr
27 dev-libs/nss
28 media-libs/alsa-lib
29 media-libs/mesa
30 sys-apps/dbus
31 x11-libs/cairo
32 x11-libs/gdk-pixbuf:2
33 x11-libs/gtk+:3
34 x11-libs/libdrm
35 x11-libs/libX11
36 x11-libs/libxcb
37 x11-libs/libXcomposite
38 x11-libs/libXdamage
39 x11-libs/libXext
40 x11-libs/libXfixes
41 x11-libs/libxkbcommon
42 x11-libs/libxkbfile
43 x11-libs/libXrandr
44 x11-libs/libxshmfence
45 x11-libs/pango
46 !app-editors/vscode
49 QA_PRESTRIPPED="*"
50 QA_FLAGS_IGNORED="*"
51 QA_PREBUILT="
52 opt/${PN}/code
53 opt/${PN}/libEGL.so
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"
66 src_install(){
67 pax-mark m code
68 insinto "/opt/${PN}"
69 doins -r *
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"
89 pkg_postinst(){
90 xdg_pkg_postinst
91 elog "You may install some additional utils, so check them in:"
92 elog "https://code.visualstudio.com/Docs/setup#_additional-tools"