diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-11 07:51:05 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-03-11 07:58:50 +0200 |
commit | 53db3f67928218ddc251d34208f1f9bd5331dec4 (patch) | |
tree | 6e253cdda061c6fbd49a7ef8eab6127fa8129e25 /app-editors | |
parent | dev-python/urllib3: Enable testing on pypy3 (diff) | |
download | gentoo-53db3f67928218ddc251d34208f1f9bd5331dec4.tar.gz gentoo-53db3f67928218ddc251d34208f1f9bd5331dec4.tar.bz2 gentoo-53db3f67928218ddc251d34208f1f9bd5331dec4.zip |
app-editors/vscode: add 1.76.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.76.1.ebuild | 128 |
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 9e2bf57febf2..ac2ba9bdc459 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.75.1-arm64.tar.gz 128000146 BLAKE2B 8729178790c06b44c7a626e075cc90 DIST vscode-1.76.0-amd64.tar.gz 133931108 BLAKE2B ab2c5dc571b631fd19cb5457eb74de1c56a83f4e0d65d53b26747a3ef99cdeb164f04f2577bb9f345cd1e88d52c73c21eedb73bbd5d996d161a40d414838475d SHA512 2c1baca4d84dcd1abb5f7e74e1e6c9faa4cc3df83014bae94b2e5c8a1a3909decbc75f707b43562b994e50b08cb00ac1ba5bbb5aee0c26f227b43a590b93529d DIST vscode-1.76.0-arm.tar.gz 113679844 BLAKE2B d7b8d828285ead72c4dc7d297ebd1cc5957696d0a156f9ceb82e58efef8bd4fba46b38691b0190d9625548549b30fdfb3e2d837ebe682119d3369e69f964dd22 SHA512 b15ff5cece6773e908834779b8fe8bd42d06cf2b8b41c6acf8819d49711112b2f31e6953067bce5141ba1e5fdceca22881fc4c1751c5a25b9342da97ab4e47a3 DIST vscode-1.76.0-arm64.tar.gz 123109503 BLAKE2B 141f1de84a64805ed88b003db5ac8d8c603c13fcde94cf3aa3f2dfe8ab6b962d4d106ebb39945490315f4680ea774f530d1dd42a825e6a6bc218238e3aba8670 SHA512 7b602a1f9ca4b29cbf737b550e7befc9a19fc7bf9225b690793987224645d12a7526a2a853e600e766390f857b9fe14b3dc064373f3e66119a37c1079fe42487 +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 diff --git a/app-editors/vscode/vscode-1.76.1.ebuild b/app-editors/vscode/vscode-1.76.1.ebuild new file mode 100644 index 000000000000..593a70028957 --- /dev/null +++ b/app-editors/vscode/vscode-1.76.1.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" +} |