diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-05-09 21:31:54 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-05-09 21:32:05 +0300 |
commit | 9301b0661c664be25356cac29e65a41f365089e1 (patch) | |
tree | a9c7c1ac1e0c8ef0b995bf8901c405bbbeb3a219 /app-editors | |
parent | media-libs/lv2: wire up tests (and conditionally build them instead) (diff) | |
download | gentoo-9301b0661c664be25356cac29e65a41f365089e1.tar.gz gentoo-9301b0661c664be25356cac29e65a41f365089e1.tar.bz2 gentoo-9301b0661c664be25356cac29e65a41f365089e1.zip |
app-editors/vscode: add 1.78.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.78.1.ebuild | 122 |
2 files changed, 125 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index e5571adaa3cc..ee6cd8c68d7f 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.77.3-arm64.tar.gz 121682734 BLAKE2B f9428cd9ebf921bee3797e4b3a8169 DIST vscode-1.78.0-amd64.tar.gz 134687218 BLAKE2B f29366cd55661fbdcdeeb5344ff55fa8924fcdd8bb9df77a83caded61dc51999b69effbfc758bde98a04e48c926a6671969d978fd98d5a5c706f54cafc8dbd6e SHA512 214b198f21b663b001667280627a99deca07409220565355eaf21d74ddf0524aec5ceff3cf7f97bf60e12657bd88a394ffcc5b9decb379b8e2323ff37b243b6e DIST vscode-1.78.0-arm.tar.gz 119254165 BLAKE2B 5ddf5372f1ef21e99463d742cb73f2d889f03f5feba6753ea11f5eb48f19772bcdb951a3f291cb6820bfb9892b4ea5c01a73854c202903685f28b28d088b752b SHA512 f1d03a494442e49d591c11f618abaa976e63c2ecb8927d8a45bcde37ee9e9380b2fa621754b4ece0efdf524aabaeedfa6442f476a06edce30a13aeba98d6901c DIST vscode-1.78.0-arm64.tar.gz 130765917 BLAKE2B 8ed333530481ed1067163a8e27bf619e47504429051408d581cdaec8095ba8648c0045f59d8907f5cfec1ac2cc51acdc6022cf97e57a98c68483e8f725f9c89d SHA512 dffe7761eb961e9d2584fb5ca42e56fdcff1dfed858a5a098309c7f9311d79949c9bbc00be94258d052e541b27be2e45b935f2b7a1afc498898e1bfde084e304 +DIST vscode-1.78.1-amd64.tar.gz 134680069 BLAKE2B a8e631e9fa6ad49dd0e116558240b60ae626f8f4b40849be5a2c67b129029bd581ef177e6ba4d93bf514779e2048e6ea22b3a4a3f6073fb71608931d17782e53 SHA512 af16eff2925c0e39b94ab61e18a6c37e9553cb77477a567db8a1545a6dce13b51ef7f428603cf518b1c733c2856d4050a47b00cc4a7bab614553c46e2546c37f +DIST vscode-1.78.1-arm.tar.gz 119244941 BLAKE2B 9657a126e1666e6cb65043d84d182643c94ab61f587c6818fd7e0c7f9f7be773cb2206da5c62cf6dfc2fe5943ddd3fdff918cc31878e99cca8e3706713e9be9b SHA512 6f82501408c1db3339271e90e3ffb4ad604d92760c32311bd4f928f4be140a1a49d8c9033b9287e60a8dfadb41aba11c8f96041872802eb7f3dbbdbcec1dd6df +DIST vscode-1.78.1-arm64.tar.gz 130770767 BLAKE2B 9b178f3bfcd88253e22a85787556922ab8f3673216dd90a346c7184f8673b81a8e05f59dff3c2307f673db1e47cbaa7cacd01abb7bf908d56c29f7f0f5868052 SHA512 43ecef29ddce595d0ae0f4913570947531cc7a2f5e489e24e3d82ffdf36498272d40e353c12159ae831513817194153ba9900e1d37f75c0414e45809e86b8219 diff --git a/app-editors/vscode/vscode-1.78.1.ebuild b/app-editors/vscode/vscode-1.78.1.ebuild new file mode 100644 index 000000000000..eed866455058 --- /dev/null +++ b/app-editors/vscode/vscode-1.78.1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +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-core-2.46.0:2 + app-crypt/libsecret[crypt] + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + net-print/cups + sys-apps/util-linux + sys-apps/dbus + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libxshmfence + x11-libs/pango +" + +QA_PREBUILT=" + /opt/vscode/bin/code-tunnel + /opt/vscode/chrome_crashpad_handler + /opt/vscode/chrome-sandbox + /opt/vscode/code + /opt/vscode/libEGL.so + /opt/vscode/libffmpeg.so + /opt/vscode/libGLESv2.so + /opt/vscode/libvk_swiftshader.so + /opt/vscode/libvulkan.so* + /opt/vscode/resources/app/extensions/* + /opt/vscode/resources/app/node_modules.asar.unpacked/* + /opt/vscode/swiftshader/libEGL.so + /opt/vscode/swiftshader/libGLESv2.so +" + +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 + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + # Install + pax-mark m code + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" + dosym -r "/opt/${PN}/bin/code" "usr/bin/code" + dosym -r "/opt/${PN}/bin/code-tunnel" "usr/bin/code-tunnel" + domenu "${FILESDIR}/vscode.desktop" + domenu "${FILESDIR}/vscode-url-handler.desktop" + domenu "${FILESDIR}/vscode-wayland.desktop" + domenu "${FILESDIR}/vscode-url-handler-wayland.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "keyring support inside vscode" "gnome-base/gnome-keyring" +} |