Browse Source

Update VS:Code.

master
Rafal Kupiec 1 month ago
parent
commit
4c985b55d6
Signed by: belliash <belliash@codingworkshop.eu.org> GPG Key ID: 4E829243E0CFE6B4

+ 2
- 0
app-editors/visual-studio-code/Manifest View File

@@ -18,3 +18,5 @@ DIST visual-studio-code-1.32.3-amd64.tar.gz 68078974 BLAKE2B b6178a09e2d6f2e8e77
18 18
 DIST visual-studio-code-1.32.3-x86.tar.gz 69060505 BLAKE2B 28e26a4b5a9cf1cec69b945ada27e0ebb86be4d012f1e2f5f4c5d8f7482089b5e91b30c5b3bbf909a1ba22a6bf3b43a0ae5578e181db897a08c455995cc7b9e9 SHA512 8a967ce21b23ca2758beb08330b08fa76606a32035727f79d8ccf54a3383b217e53171fbf7e68d0b4185cc395c08bed92b77f0584cd3beca791b47a5910da881
19 19
 DIST visual-studio-code-1.33.1-amd64.tar.gz 68365770 BLAKE2B c542ae61cd440ad73f95adcc5836f6a4d9b23230b54f1fdc72ce50134a24180fc8cd1baf2332d26c5c027a2628fc25465e2d04e71ae004f3dd41c40e6a5db5bc SHA512 bd8035051d52eca92979cb39187aa45fb6bb66715eda2950b472a9566dfacd52d20d7c45782c69c43f0d031a06c714f6270886840d3318881f8a38d4bfbc0b68
20 20
 DIST visual-studio-code-1.33.1-x86.tar.gz 69343642 BLAKE2B 6ff9a2a25f387356eafdc89da57d906623e8cade671269b35f7f54d35c724ed16333f375c4a5ea495901b400781d8bf36474a2543d393d33f18d205183a9dc94 SHA512 4ba061d2cdab3872f92848e607ad531fbcf80dd9855984812997c283a89beaabcd8485929b73f939ce685547fc5817b5c56a9ffbd00872639c19cddd8685b62d
21
+DIST visual-studio-code-1.34.0-amd64.tar.gz 68422077 BLAKE2B fe8405147634af71294d09828effd4e9d6c3598656f2880274c8d59a21f3fc7b186a5b3464db4f71dfcced246bbbbd0d557aa69701d485d2dd842528c80cf2ae SHA512 35bf97455dc3b9cfd4c6fb1d0fb1a47675670bada4c4f43b688741ae1a37e6c3960bfbae75b27669d76f222dbd9b4e44f257dde5f601274a7e8e4a1bbe06bfba
22
+DIST visual-studio-code-1.34.0-x86.tar.gz 69399018 BLAKE2B 9a8cb73d13a229bd432d12528d8dd2284b0f4cd1a2f217381695e4c7b6fe033eb5ef66ce7b897c67e247f50b344a68f5bd0ef3b2e6761c8afcc85a3b7bfd58d6 SHA512 4ce7cffc9e3a3b74ac0d0d71fe40c654a5ff6e4c4c9b51198b57f2e8e9035abdca6c0fce7ae8bb026eb7304885a46558af846f14bed96c6ddc8ee3ebc0977c0b

+ 62
- 0
app-editors/visual-studio-code/visual-studio-code-1.34.0.ebuild View File

@@ -0,0 +1,62 @@
1
+# Copyright 1999-2018 Gentoo Foundation
2
+# Distributed under the terms of the GNU General Public License v2
3
+
4
+EAPI=6
5
+
6
+inherit eutils pax-utils
7
+
8
+DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
9
+HOMEPAGE="https://code.visualstudio.com"
10
+BASE_URI="https://vscode-update.azurewebsites.net/${PV}"
11
+SRC_URI="
12
+	x86? ( ${BASE_URI}/linux-ia32/stable ->  ${P}-x86.tar.gz )
13
+	amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz )
14
+	"
15
+RESTRICT="mirror strip bindist"
16
+
17
+LICENSE="MIT"
18
+SLOT="0"
19
+KEYWORDS="~x86 ~amd64"
20
+IUSE="libsecret"
21
+
22
+DEPEND="
23
+	>=media-libs/libpng-1.2.46
24
+	>=x11-libs/gtk+-2.24.8-r1:2
25
+	x11-libs/cairo
26
+	gnome-base/gconf
27
+	x11-libs/libXtst
28
+"
29
+
30
+RDEPEND="
31
+	${DEPEND}
32
+	x11-libs/libnotify
33
+	x11-libs/libXScrnSaver
34
+	dev-libs/nss
35
+	libsecret? ( app-crypt/libsecret[crypt] )
36
+"
37
+
38
+QA_PRESTRIPPED="opt/${PN}/code"
39
+QA_PREBUILT="opt/${PN}/code"
40
+
41
+pkg_setup(){
42
+	use amd64 && S="${WORKDIR}/VSCode-linux-x64" || S="${WORKDIR}/VSCode-linux-ia32"
43
+}
44
+
45
+src_install(){
46
+	pax-mark m code
47
+	insinto "/opt/${PN}"
48
+	doins -r *
49
+	dosym "/opt/${PN}/bin/code" "/usr/bin/${PN}"
50
+	make_desktop_entry "${PN}" "Visual Studio Code" "${PN}" "Development;IDE"
51
+	doicon ${FILESDIR}/${PN}.png
52
+	fperms +x "/opt/${PN}/code"
53
+	fperms +x "/opt/${PN}/bin/code"
54
+	fperms +x "/opt/${PN}/libnode.so"
55
+	fperms +x "/opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
56
+	insinto "/usr/share/licenses/${PN}"
57
+}
58
+
59
+pkg_postinst(){
60
+	elog "You may install some additional utils, so check them in:"
61
+	elog "https://code.visualstudio.com/Docs/setup#_additional-tools"
62
+}

Loading…
Cancel
Save