diff options
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.76.0.ebuild | 128 |
2 files changed, 131 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 7113d380172a..9e2bf57febf2 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.75.0-arm64.tar.gz 128013515 BLAKE2B 77c2663e01397086e3917dae8e0ec3 DIST vscode-1.75.1-amd64.tar.gz 138940849 BLAKE2B 60e47682ec0073b6a0e3ffa1c9e0f151cc27c88d199afdd7fa97fd835bdbc961817eae8e17f973d0cb20cae072d02754c53f5687d6996dbee420f17332c1f43b SHA512 68498083c022252a4cecf7db505a68e25137eed3451af474cff7a1094340d64b087ca101df8cb5af5649bcd6460e219eb28f1c78604864dd40507c809e6edcc7 DIST vscode-1.75.1-arm.tar.gz 118369140 BLAKE2B cf0a1ce9f9bb3cdd329abfd35b67457909da43c1b5887c08815d358367dc20e4231901dbd97ae854db5b78c15f6488ca0d29357af9e77ec419fc93f1c69b41cb SHA512 f8576c9e037c6ba5488c40b6a2c486a5521e65a73ef214685efa54761b9da2e20839e859f9612b3e3403bc574c87f7634a6cdfb852623c1ce18116c0aba87f23 DIST vscode-1.75.1-arm64.tar.gz 128000146 BLAKE2B 8729178790c06b44c7a626e075cc9071a0489452157ddefcaa3c8c3039360598486d12a57b15a778f4307aa9fc28b2e201d78e28662ef83dfc3562430c63ac05 SHA512 f8b2abba64da24bf0044f7f179ec63aab94b0b52f0a42badd0df81108593aa47cb2ab343dba21ac78e7dc32d9691816a491002e2f534afc2fd2a53714f9da872 +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 diff --git a/app-editors/vscode/vscode-1.76.0.ebuild b/app-editors/vscode/vscode-1.76.0.ebuild new file mode 100644 index 000000000000..593a70028957 --- /dev/null +++ b/app-editors/vscode/vscode-1.76.0.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" +} |