1 |
commit: c81e88b6f381125fdd1d7f6c364160d0a4a32f4c |
2 |
Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com> |
3 |
AuthorDate: Sat Apr 2 11:20:24 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 2 12:06:53 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c81e88b6 |
7 |
|
8 |
app-editors/vscode: version bump to 1.66.0 |
9 |
|
10 |
Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com> |
11 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
12 |
|
13 |
app-editors/vscode/Manifest | 3 + |
14 |
app-editors/vscode/vscode-1.66.0.ebuild | 129 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 132 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest |
18 |
index 335f049381a5..23228a221d59 100644 |
19 |
--- a/app-editors/vscode/Manifest |
20 |
+++ b/app-editors/vscode/Manifest |
21 |
@@ -7,3 +7,6 @@ DIST vscode-1.64.2-arm64.tar.gz 107090187 BLAKE2B 15587ce30f15c393f78d5ea554da51 |
22 |
DIST vscode-1.65.2-amd64.tar.gz 109564124 BLAKE2B 5b842253ed6438019de5f114f951651adc1773db93b408d3fec59b781ff32c0fb66f0e80ff0c02b6306ae46f541d55667f37d50ccf64709e810bf5e952af543e SHA512 1b5fd6c42966e66f963cb63a289414d3733cb64c051c36ad5a43481ccbd24996e99b58738b23be25a51890eb95593b7a2f224d61c3a21ea3195baed4f57cc761 |
23 |
DIST vscode-1.65.2-arm.tar.gz 90793512 BLAKE2B 8e29cd51635408280a9f3e36cc7d8a0925feee6a2239352b9a44075454ae36d7b784be2ecf9eb310440e416511a0d38b801ae41bfae400edd06345f960d66b29 SHA512 9c10a9a6ed82d321228b41202ab1584d580596bea9aa9759db6500e41f1979d1e9e1fa3e3af4fd86bdbbd0844ec528a499dbeb2eee988bb87b549073f0d112de |
24 |
DIST vscode-1.65.2-arm64.tar.gz 104431396 BLAKE2B 17251a994ba15b9293b4bebbc8b34b8351bf5d15ea047d8789492839ab902d9802afcd94c6a805f26be505c9f05077c395c6a5c73a8f3614668c042400e3f4b0 SHA512 7365d8bec81bbd8bf72d6073cfd9034b8afca7309044863a921b190aadbb8fe16d5b58f98beab7d24d77c1077c60a1761a68a12e01ea974855608006973ec739 |
25 |
+DIST vscode-1.66.0-amd64.tar.gz 115615178 BLAKE2B e6e13cb52f04cae605868b508f8e3323bfbcff4589a6bd9b29cf978d9fa8cfa3e05d1ec1ba01e6368c943254fe3af0895f7cd20df46ea22348427a3876749be5 SHA512 a2157b9b7b92d0ee194fea20432e839ef7cf42151baeb5ed378de3c0aa9dc9bffce6d45b72bde8b8bbbb5cf41a5508016a07a45ecd16b0f570aa30a0b81ccdfc |
26 |
+DIST vscode-1.66.0-arm.tar.gz 96717878 BLAKE2B 0eec918894e03941835c11d662567e58a3a8dcdeb386a65aa516cb6fbd8f59c70d9b9adcb4fc4051fd2077e34e1488700e55cc24ba90763bb14696c22eff4a33 SHA512 f58139aa901cf4eba1410d792c4591b81dbd3241b25c1a31a27db1e469cf0e5274bf263ad661cb7d01212e2f1d67de6fcc9f617fb1aa9a227401efb95690694c |
27 |
+DIST vscode-1.66.0-arm64.tar.gz 110612358 BLAKE2B a0a38121024c2f47fc178893cba0d327c5891bbd74ee2218aff2b9d701c062b427cbaaf2d5115f3c386eb5187db8817323b1d8d4d2d830bf435cb9817232777d SHA512 d91192310787f56f7455ead5ea13940f6051f9efa5a99178adf7b628d9bf7b168e5bbe98b90cd37d472928d25e8eb27659f82bf224bd0238e35d84980f1d1491 |
28 |
|
29 |
diff --git a/app-editors/vscode/vscode-1.66.0.ebuild b/app-editors/vscode/vscode-1.66.0.ebuild |
30 |
new file mode 100644 |
31 |
index 000000000000..35897d4b8b0c |
32 |
--- /dev/null |
33 |
+++ b/app-editors/vscode/vscode-1.66.0.ebuild |
34 |
@@ -0,0 +1,129 @@ |
35 |
+# Copyright 1999-2022 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=8 |
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:2 |
77 |
+ app-accessibility/at-spi2-core:2 |
78 |
+ app-crypt/libsecret[crypt] |
79 |
+ dev-libs/atk |
80 |
+ dev-libs/expat |
81 |
+ dev-libs/glib:2 |
82 |
+ dev-libs/nspr |
83 |
+ dev-libs/nss |
84 |
+ media-libs/alsa-lib |
85 |
+ media-libs/mesa |
86 |
+ sys-apps/dbus |
87 |
+ x11-libs/cairo |
88 |
+ x11-libs/gdk-pixbuf:2 |
89 |
+ x11-libs/gtk+:3 |
90 |
+ x11-libs/libdrm |
91 |
+ x11-libs/libX11 |
92 |
+ x11-libs/libxcb |
93 |
+ x11-libs/libXcomposite |
94 |
+ x11-libs/libXdamage |
95 |
+ x11-libs/libXext |
96 |
+ x11-libs/libXfixes |
97 |
+ x11-libs/libxkbcommon |
98 |
+ x11-libs/libxkbfile |
99 |
+ x11-libs/libXrandr |
100 |
+ x11-libs/libxshmfence |
101 |
+ x11-libs/pango |
102 |
+" |
103 |
+ |
104 |
+QA_PREBUILT=" |
105 |
+ /opt/vscode/code |
106 |
+ /opt/vscode/libEGL.so |
107 |
+ /opt/vscode/libffmpeg.so |
108 |
+ /opt/vscode/libGLESv2.so |
109 |
+ /opt/vscode/libvulkan.so* |
110 |
+ /opt/vscode/chrome-sandbox |
111 |
+ /opt/vscode/libvk_swiftshader.so |
112 |
+ /opt/vscode/swiftshader/libEGL.so |
113 |
+ /opt/vscode/swiftshader/libGLESv2.so |
114 |
+ /opt/vscode/resources/app/extensions/* |
115 |
+ /opt/vscode/resources/app/node_modules.asar.unpacked/* |
116 |
+" |
117 |
+ |
118 |
+src_install() { |
119 |
+ if use amd64; then |
120 |
+ cd "${WORKDIR}/VSCode-linux-x64" || die |
121 |
+ elif use arm; then |
122 |
+ cd "${WORKDIR}/VSCode-linux-armhf" || die |
123 |
+ elif use arm64; then |
124 |
+ cd "${WORKDIR}/VSCode-linux-arm64" || die |
125 |
+ else |
126 |
+ die "Visual Studio Code only supports amd64, arm and arm64" |
127 |
+ fi |
128 |
+ |
129 |
+ # Cleanup |
130 |
+ rm -r ./resources/app/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die |
131 |
+ |
132 |
+ # Install |
133 |
+ pax-mark m code |
134 |
+ insinto "/opt/${PN}" |
135 |
+ doins -r * |
136 |
+ fperms +x /opt/${PN}/{,bin/}code |
137 |
+ fperms 4711 /opt/${PN}/chrome-sandbox |
138 |
+ fperms 755 /opt/${PN}/resources/app/extensions/git/dist/askpass.sh |
139 |
+ fperms 755 /opt/${PN}/resources/app/extensions/git/dist/askpass-empty.sh |
140 |
+ fperms -R +x /opt/${PN}/resources/app/out/vs/base/node |
141 |
+ fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg |
142 |
+ dosym "../../opt/${PN}/bin/code" "usr/bin/vscode" |
143 |
+ dosym "../../opt/${PN}/bin/code" "usr/bin/code" |
144 |
+ domenu "${FILESDIR}/vscode.desktop" |
145 |
+ domenu "${FILESDIR}/vscode-url-handler.desktop" |
146 |
+ domenu "${FILESDIR}/vscode-wayland.desktop" |
147 |
+ domenu "${FILESDIR}/vscode-url-handler-wayland.desktop" |
148 |
+ newicon "resources/app/resources/linux/code.png" "vscode.png" |
149 |
+} |
150 |
+ |
151 |
+pkg_postinst() { |
152 |
+ xdg_pkg_postinst |
153 |
+ elog "You may want to install some additional utils, check in:" |
154 |
+ elog "https://code.visualstudio.com/Docs/setup#_additional-tools" |
155 |
+ |
156 |
+ if has_version -r ">=gui-libs/wlroots-0.15"; then |
157 |
+ elog |
158 |
+ elog "The wayland backend of vscode crashes with >=gui-libs/wlroots-0.15" |
159 |
+ elog "This will be fixed upstream in a later release" |
160 |
+ elog "Please run the xwayland version for now, on wlroots based DEs." |
161 |
+ elog "For more information, see https://bugs.gentoo.org/834082" |
162 |
+ fi |
163 |
+} |