diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-15 20:17:01 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-15 20:33:52 +0200 |
commit | 1bd4a6a4da77f19b4a5c7c0f7175b7fe1dd6a559 (patch) | |
tree | 421c37ad59e9a8fe41aaa73d73cabce975e8f94c /app-editors/vscode | |
parent | net-misc/cmst: add 2023.03.14 (diff) | |
download | gentoo-1bd4a6a4da77f19b4a5c7c0f7175b7fe1dd6a559.tar.gz gentoo-1bd4a6a4da77f19b4a5c7c0f7175b7fe1dd6a559.tar.bz2 gentoo-1bd4a6a4da77f19b4a5c7c0f7175b7fe1dd6a559.zip |
app-editors/vscode: add 1.76.2
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscode')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.76.2.ebuild | 128 |
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index fca36d342f00..77d83e3ceba4 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.76.0-arm64.tar.gz 123109503 BLAKE2B 141f1de84a64805ed88b003db5ac8d DIST vscode-1.76.1-amd64.tar.gz 133945909 BLAKE2B d6549d58f97ffff490fcaa3a40a2e999123e27d142b626f959061b87da9827e615023b100a3c280ce256e9703aff9cef42eea4f1bf56f9e2942059a0c31322f0 SHA512 c0160ff9d243a50267cf142839ae3583b4e6fc721f6a1b3541a3203c5c66c098c5469d360590f68bb0a17ee4aba3b54a0d856e550aee492a996b7b4f6044e0b8 DIST vscode-1.76.1-arm.tar.gz 113670868 BLAKE2B f9846bf5b8fd8d972e95ef9152b36794beba59d3536b21d55a8c0986d5ae5e11f588985242e0eeb4d24f771a00ecf71ecdb272e06d2b6cb2f9091065e80dc9ad SHA512 cff9ee94a0cdf793a2a6052952f299355f37d20550b809b6796e5bde58e6dcf4bcc8249388b60c93e348ef969a1cb110472252cd122a429dbb3eb83efa0b208f DIST vscode-1.76.1-arm64.tar.gz 123125455 BLAKE2B ae3e4772afc19855a1ef0f415a6621c21f9abdb7994a9fb45f62eb22499a08142f1cec6d91ca1c16700c431cfcb1a2f61f53c579f187cb1c93c2ca921e987366 SHA512 9e4c44f092efb200a0602655499d6b8185de65bca4d318204bfd9aeea219a9b546f2d16eb44dd3ef66c3eeef804750ab9c708f7338d955964dfc4c48e7aa779a +DIST vscode-1.76.2-amd64.tar.gz 133943122 BLAKE2B a688262565aa9f7096139fd0545ee497480e2ec928d2d57b693e52baed9d08adb2027545a4c2728b834936378d4812ba138530d081e9af123ab4d49eb22b3285 SHA512 4087dae3a567d99e6bd1bec1dcef41b824118ce4004b6f70226b0c3b96ead3f685c7a9b00fda2bcd5ada3cfcdaf39856be0345209cf30fd31d2826d1114f207b +DIST vscode-1.76.2-arm.tar.gz 113666270 BLAKE2B 7d600529125b06dcf2d8bdd26bcc941828c06682aa83f571f802049a3381afd86e9dd71246d67a3ea16289ee7c2719530daca859dbbd951ec6bdcbf0567cfa54 SHA512 185daa71f0e32be43cc57b41ae4e3e22cd78a769ee1974c3d7be99396a3254dcb21964ebc93d6a5157852dcf28a94fcd0dfc41611ac1a659787248ab4cde22d3 +DIST vscode-1.76.2-arm64.tar.gz 123093592 BLAKE2B 13ddee4fd48570a049ded9e9d5b0a130d78f8e66218b7a8c133985bfc106f9ef6a2a5168a640683618e3e33838b21525f01802df6db5f9cf6f9d3e75c2c093e5 SHA512 b0696534c94e0618a565e621efe2defcb8fffcbb68d4f9bf1f1587c680e2a601d726c47bca4eef464344d65956957048aab63cce93ea41c82ef5a35f208d8714 diff --git a/app-editors/vscode/vscode-1.76.2.ebuild b/app-editors/vscode/vscode-1.76.2.ebuild new file mode 100644 index 000000000000..593a70028957 --- /dev/null +++ b/app-editors/vscode/vscode-1.76.2.ebuild @@ -0,0 +1,128 @@ +# 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 + insinto "/opt/${PN}" + doins -r * + fperms +x /opt/${PN}/{,bin/}code + fperms +x /opt/${PN}/chrome_crashpad_handler + fperms 4711 /opt/${PN}/chrome-sandbox + fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor,ssh-askpass}{,-empty}.sh + 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 + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/node-pty/build/Release/spawn-helper + dosym "../../opt/${PN}/bin/code" "usr/bin/vscode" + dosym "../../opt/${PN}/bin/code" "usr/bin/code" + 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 + elog "You may want to install some additional utils, check in:" + elog "https://code.visualstudio.com/Docs/setup#_additional-tools" + optfeature "keyring support inside vscode" "gnome-base/gnome-keyring" +} |