1 |
commit: 37625616b6a5b1f73937b012c6c32af1e62b3c3c |
2 |
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> |
3 |
AuthorDate: Fri Aug 20 09:48:35 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 26 06:42:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37625616 |
7 |
|
8 |
app-editors/vscode: bump to 1.59.1 |
9 |
|
10 |
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> |
11 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
12 |
|
13 |
app-editors/vscode/Manifest | 3 + |
14 |
app-editors/vscode/vscode-1.59.1.ebuild | 103 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 106 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest |
18 |
index e6594d012a5..dacdc158efb 100644 |
19 |
--- a/app-editors/vscode/Manifest |
20 |
+++ b/app-editors/vscode/Manifest |
21 |
@@ -7,3 +7,6 @@ DIST vscode-1.58.2-arm64.tar.gz 110942132 BLAKE2B 3fb2a83087789690ba930ae0910b93 |
22 |
DIST vscode-1.59.0-amd64.tar.gz 106146198 BLAKE2B 3928706d31b1034e689a12cc28fc64d2517f70c3018f975c8c6d1bd144dfd6c75619995ae1763db19768cdac91711057ebbf0c2f86010a5cdb3797b2726f53cf SHA512 71ad32dd4a5ad36f33939970aaab3d71c23134d8743bb5806b62cc12c159c6695d6616a78bc111f81c0bb11fb8665f3986bb8bed49a8ed98d3e876a30e3b660d |
23 |
DIST vscode-1.59.0-arm.tar.gz 97705945 BLAKE2B 4be8024c2133b336bf8b40e1941f2dd8a7bfa59a3894b26298fe413485b6968dacaf8c8a34cd8bb4fc887285a4e216788780f05d46e7b769bfc020af330809c2 SHA512 62b9b18bd8c43e33adb4b18ce5018fa872cd399473e326deb0d7a136e39191d271709db4c675b9eb6a5d9e9126980f52e38062e2de316bdf578266800c99d15f |
24 |
DIST vscode-1.59.0-arm64.tar.gz 111285142 BLAKE2B a7cd2d69850537780270cf1531fb413215803282ff0d3aed5636719c1755a7d90c4af055fe0d19a20b874e86a5a452eb408444b12557720dd12e5b66d1eeceff SHA512 af8005092c4f40657197489e9e1b6363106e24cc89f38631061c9aaa30183ea5ebac6a97a13de7b872a2202fe7ffec2f5085755e054f65e93b41269aec45de86 |
25 |
+DIST vscode-1.59.1-amd64.tar.gz 106142213 BLAKE2B eed73d0e98ea0275ed005586f18e14b3671a4dea301f44f469798bae3c298d8eb7e819c896957f9a1cd3e978ce171ff9d3a7433ede540b0647cae735b2d53bcd SHA512 c7ae7417bd233498b6be0dbcbc67ee44283a14938bfecb3b61d224533a4edf31c291bebdb90e87d769cb52afb9ac17f2fb20ba64dab7773d1ce965aa9d7bfae6 |
26 |
+DIST vscode-1.59.1-arm.tar.gz 97705768 BLAKE2B daf2b56ecbf45b57d6b147e4b839000621e367caac66189151b9021ade6901941a8d641291a132d1c1bbdf40bb411bc65d8663743307e896670cfaf24d335feb SHA512 ade1499986a4cefad933cbcf9a073230e74b1a554248e41f1b58480d53b68f6ed0fa0e8faa6f52e59eebc94dcc5127bdbedf77deeab0b108ec7832c71cfd3f6f |
27 |
+DIST vscode-1.59.1-arm64.tar.gz 111284699 BLAKE2B c349c47208a6caf868070f9bb5bb6b23ff6eaa11de8d754edf8bec8fdd6fdd81c0ff246829a7ef4a92697ecb6356b779456aa8c1781f50ca4c7891297788aa43 SHA512 27b8aeac5ed2bac8bc6dc502ca39cac94f7e8ea4ea6baedffaa3b44dea451738e798674976444268db5543b6a144d55cadd47ded755a66c484c4c05cd5d20ad8 |
28 |
|
29 |
diff --git a/app-editors/vscode/vscode-1.59.1.ebuild b/app-editors/vscode/vscode-1.59.1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..65a39e1f5f9 |
32 |
--- /dev/null |
33 |
+++ b/app-editors/vscode/vscode-1.59.1.ebuild |
34 |
@@ -0,0 +1,103 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit desktop pax-utils xdg |
41 |
+ |
42 |
+DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" |
43 |
+HOMEPAGE="https://code.visualstudio.com" |
44 |
+SRC_URI=" |
45 |
+ amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) |
46 |
+ arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) |
47 |
+ arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) |
48 |
+" |
49 |
+S="${WORKDIR}" |
50 |
+ |
51 |
+RESTRICT="mirror strip bindist" |
52 |
+ |
53 |
+LICENSE=" |
54 |
+ Apache-2.0 |
55 |
+ BSD |
56 |
+ BSD-1 |
57 |
+ BSD-2 |
58 |
+ BSD-4 |
59 |
+ CC-BY-4.0 |
60 |
+ ISC |
61 |
+ LGPL-2.1+ |
62 |
+ Microsoft-vscode |
63 |
+ MIT |
64 |
+ MPL-2.0 |
65 |
+ openssl |
66 |
+ PYTHON |
67 |
+ TextMate-bundle |
68 |
+ Unlicense |
69 |
+ UoI-NCSA |
70 |
+ W3C |
71 |
+" |
72 |
+SLOT="0" |
73 |
+KEYWORDS="-* ~amd64 ~arm ~arm64" |
74 |
+ |
75 |
+RDEPEND=" |
76 |
+ app-accessibility/at-spi2-atk |
77 |
+ app-crypt/libsecret[crypt] |
78 |
+ dev-libs/nss |
79 |
+ media-libs/alsa-lib |
80 |
+ media-libs/libpng:0/16 |
81 |
+ x11-libs/cairo |
82 |
+ x11-libs/gtk+:3 |
83 |
+ x11-libs/libnotify |
84 |
+ x11-libs/libxkbcommon |
85 |
+ x11-libs/libxkbfile |
86 |
+ x11-libs/libXScrnSaver |
87 |
+ x11-libs/libXtst |
88 |
+ x11-libs/pango |
89 |
+" |
90 |
+ |
91 |
+QA_PREBUILT=" |
92 |
+ /opt/vscode/code |
93 |
+ /opt/vscode/libEGL.so |
94 |
+ /opt/vscode/libffmpeg.so |
95 |
+ /opt/vscode/libGLESv2.so |
96 |
+ /opt/vscode/libvulkan.so* |
97 |
+ /opt/vscode/chrome-sandbox |
98 |
+ /opt/vscode/libvk_swiftshader.so |
99 |
+ /opt/vscode/swiftshader/libEGL.so |
100 |
+ /opt/vscode/swiftshader/libGLESv2.so |
101 |
+ /opt/vscode/resources/app/extensions/* |
102 |
+ /opt/vscode/resources/app/node_modules.asar.unpacked/* |
103 |
+" |
104 |
+ |
105 |
+src_install() { |
106 |
+ if use amd64; then |
107 |
+ cd "${WORKDIR}/VSCode-linux-x64" || die |
108 |
+ elif use arm; then |
109 |
+ cd "${WORKDIR}/VSCode-linux-armhf" || die |
110 |
+ elif use arm64; then |
111 |
+ cd "${WORKDIR}/VSCode-linux-arm64" || die |
112 |
+ else |
113 |
+ die "Visual Studio Code only supports amd64, arm and arm64" |
114 |
+ fi |
115 |
+ |
116 |
+ # Cleanup |
117 |
+ rm -r ./resources/app/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die |
118 |
+ |
119 |
+ # Install |
120 |
+ pax-mark m code |
121 |
+ insinto "/opt/${PN}" |
122 |
+ doins -r * |
123 |
+ fperms +x /opt/${PN}/{,bin/}code |
124 |
+ fperms 4711 /opt/${PN}/chrome-sandbox |
125 |
+ fperms -R +x /opt/${PN}/resources/app/out/vs/base/node |
126 |
+ fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg |
127 |
+ dosym "../../opt/${PN}/bin/code" "usr/bin/vscode" |
128 |
+ domenu "${FILESDIR}/vscode.desktop" |
129 |
+ domenu "${FILESDIR}/vscode-url-handler.desktop" |
130 |
+ newicon "resources/app/resources/linux/code.png" "vscode.png" |
131 |
+} |
132 |
+ |
133 |
+pkg_postinst() { |
134 |
+ xdg_pkg_postinst |
135 |
+ elog "You may want to install some additional utils, check in:" |
136 |
+ elog "https://code.visualstudio.com/Docs/setup#_additional-tools" |
137 |
+} |