summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Jolly <Matt.Jolly@footclan.ninja>2021-08-10 13:25:14 +1000
committerJoonas Niilola <juippis@gentoo.org>2021-08-12 14:56:39 +0300
commit73c5fddecddc0739dc6bb363087a7d17d1f0122b (patch)
treec382de959b0cf6e1538238431616ce4eba0d81c8 /app-editors/vscode
parentdev-python/python_orocos_kdl: fix prestripped files (diff)
downloadgentoo-73c5fddecddc0739dc6bb363087a7d17d1f0122b.tar.gz
gentoo-73c5fddecddc0739dc6bb363087a7d17d1f0122b.tar.bz2
gentoo-73c5fddecddc0739dc6bb363087a7d17d1f0122b.zip
app-editors/vscode: version bump: 1.59.0
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Matt Jolly <Matt.Jolly@footclan.ninja> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r--app-editors/vscode/Manifest3
-rw-r--r--app-editors/vscode/vscode-1.59.0.ebuild103
2 files changed, 106 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest
index 80d68100dfdb..e6594d012a5c 100644
--- a/app-editors/vscode/Manifest
+++ b/app-editors/vscode/Manifest
@@ -4,3 +4,6 @@ DIST vscode-1.57.1-arm64.tar.gz 110176471 BLAKE2B 40765526445565714c4e487327af4d
DIST vscode-1.58.2-amd64.tar.gz 105591644 BLAKE2B bc130bfeab48f60f4149aa9d44aebbfba121cb629f1295acb23361a06e5071ddb2dc147c7d161b67f57d45fdb1337784a85bb4f08c6f82a48675c35be0037047 SHA512 00e4012d133e8755b13b1b0136078db872b7f202c59663ea46b137451338ca77f8020cc7fffa807ba5e5963105f0ce8ea0d2a0f29702078a64ace5743da6c83e
DIST vscode-1.58.2-arm.tar.gz 96167069 BLAKE2B 1c19cf29c9419663216e3ccf521314e0102efcd18a69b0e3668259f8172a377300f1ca900e2d0cda325619a855fdcd6def5db34ebab0e6f79bc0ffd1cb2eb609 SHA512 32c4011c0a10827b73388b469246c179fc3aa06e883c1264f215cd96695821945401b4d0bfc7cf324768977eeb0c785ab4948fdb50899b26b9ca469087ab3b45
DIST vscode-1.58.2-arm64.tar.gz 110942132 BLAKE2B 3fb2a83087789690ba930ae0910b931f8f2ed129049e536d172bd67be6d928afb2e17ba09756c1dd3f9c145354fa8eface31928f419f74df165bb0c60588dc57 SHA512 f1ae69955251b6e8e92eebf01edfd820cdbf06c887349ba1cb6db2ff8aee170183029a0f2b5075b8a07ed9a26e982b87d63fe0fe4a193fa71ff5ebb52fdf1221
+DIST vscode-1.59.0-amd64.tar.gz 106146198 BLAKE2B 3928706d31b1034e689a12cc28fc64d2517f70c3018f975c8c6d1bd144dfd6c75619995ae1763db19768cdac91711057ebbf0c2f86010a5cdb3797b2726f53cf SHA512 71ad32dd4a5ad36f33939970aaab3d71c23134d8743bb5806b62cc12c159c6695d6616a78bc111f81c0bb11fb8665f3986bb8bed49a8ed98d3e876a30e3b660d
+DIST vscode-1.59.0-arm.tar.gz 97705945 BLAKE2B 4be8024c2133b336bf8b40e1941f2dd8a7bfa59a3894b26298fe413485b6968dacaf8c8a34cd8bb4fc887285a4e216788780f05d46e7b769bfc020af330809c2 SHA512 62b9b18bd8c43e33adb4b18ce5018fa872cd399473e326deb0d7a136e39191d271709db4c675b9eb6a5d9e9126980f52e38062e2de316bdf578266800c99d15f
+DIST vscode-1.59.0-arm64.tar.gz 111285142 BLAKE2B a7cd2d69850537780270cf1531fb413215803282ff0d3aed5636719c1755a7d90c4af055fe0d19a20b874e86a5a452eb408444b12557720dd12e5b66d1eeceff SHA512 af8005092c4f40657197489e9e1b6363106e24cc89f38631061c9aaa30183ea5ebac6a97a13de7b872a2202fe7ffec2f5085755e054f65e93b41269aec45de86
diff --git a/app-editors/vscode/vscode-1.59.0.ebuild b/app-editors/vscode/vscode-1.59.0.ebuild
new file mode 100644
index 000000000000..65a39e1f5f95
--- /dev/null
+++ b/app-editors/vscode/vscode-1.59.0.ebuild
@@ -0,0 +1,103 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop pax-utils xdg
+
+DESCRIPTION="Multiplatform Visual Studio Code from Microsoft"
+HOMEPAGE="https://code.visualstudio.com"
+SRC_URI="
+ amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz )
+ arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz )
+ arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz )
+"
+S="${WORKDIR}"
+
+RESTRICT="mirror strip bindist"
+
+LICENSE="
+ Apache-2.0
+ BSD
+ BSD-1
+ BSD-2
+ BSD-4
+ CC-BY-4.0
+ ISC
+ LGPL-2.1+
+ Microsoft-vscode
+ MIT
+ MPL-2.0
+ openssl
+ PYTHON
+ TextMate-bundle
+ Unlicense
+ UoI-NCSA
+ W3C
+"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~arm ~arm64"
+
+RDEPEND="
+ app-accessibility/at-spi2-atk
+ app-crypt/libsecret[crypt]
+ dev-libs/nss
+ media-libs/alsa-lib
+ media-libs/libpng:0/16
+ x11-libs/cairo
+ x11-libs/gtk+:3
+ x11-libs/libnotify
+ x11-libs/libxkbcommon
+ x11-libs/libxkbfile
+ x11-libs/libXScrnSaver
+ x11-libs/libXtst
+ x11-libs/pango
+"
+
+QA_PREBUILT="
+ /opt/vscode/code
+ /opt/vscode/libEGL.so
+ /opt/vscode/libffmpeg.so
+ /opt/vscode/libGLESv2.so
+ /opt/vscode/libvulkan.so*
+ /opt/vscode/chrome-sandbox
+ /opt/vscode/libvk_swiftshader.so
+ /opt/vscode/swiftshader/libEGL.so
+ /opt/vscode/swiftshader/libGLESv2.so
+ /opt/vscode/resources/app/extensions/*
+ /opt/vscode/resources/app/node_modules.asar.unpacked/*
+"
+
+src_install() {
+ if use amd64; then
+ cd "${WORKDIR}/VSCode-linux-x64" || die
+ elif use arm; then
+ cd "${WORKDIR}/VSCode-linux-armhf" || die
+ elif use arm64; then
+ cd "${WORKDIR}/VSCode-linux-arm64" || die
+ else
+ die "Visual Studio Code only supports amd64, arm and arm64"
+ fi
+
+ # Cleanup
+ rm -r ./resources/app/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die
+
+ # Install
+ pax-mark m code
+ insinto "/opt/${PN}"
+ doins -r *
+ fperms +x /opt/${PN}/{,bin/}code
+ fperms 4711 /opt/${PN}/chrome-sandbox
+ fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
+ fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg
+ dosym "../../opt/${PN}/bin/code" "usr/bin/vscode"
+ domenu "${FILESDIR}/vscode.desktop"
+ domenu "${FILESDIR}/vscode-url-handler.desktop"
+ newicon "resources/app/resources/linux/code.png" "vscode.png"
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ elog "You may want to install some additional utils, check in:"
+ elog "https://code.visualstudio.com/Docs/setup#_additional-tools"
+}