diff options
Diffstat (limited to 'app-editors/vscode')
-rw-r--r-- | app-editors/vscode/Manifest | 3 | ||||
-rw-r--r-- | app-editors/vscode/vscode-1.70.1.ebuild | 122 |
2 files changed, 125 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index f95eefe8f449..0ebe980e8b85 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -4,3 +4,6 @@ DIST vscode-1.69.2-arm64.tar.gz 116492196 BLAKE2B c179ec2b3b6dec915f3f51808d55fa DIST vscode-1.70.0-amd64.tar.gz 119734068 BLAKE2B ed24b84903cc8c9a427315ac4f229de337f1d550cfd573815a32984a2fc731e905b94562da6a163af85e56367b9d307691a48d7c4e2f6bc5adf83fe6f9167fcd SHA512 db4eec2303ed2ca778b6f745dd1569f5e17543b672ec077ffaca5887c03977dbe12284d04e67713758f22556669a13380e4a5f515e98c1c63a5fb91568888881 DIST vscode-1.70.0-arm.tar.gz 100801066 BLAKE2B 829965520d93d1d165cfc6624922eee0b48a5ed16c40275d63192d025d2f810ed1d85710e19e138178c5bff79d3f5b47f1634bbc6434aecc24e533ed2ffd6357 SHA512 8f7db99d16170e3a4823e2efaa03adba3fa89f2323be628969240db5453aefc922c3cb11575e94e3d89cd8691f7991a6a01c1510cdd66278e95788d578ba4486 DIST vscode-1.70.0-arm64.tar.gz 114890103 BLAKE2B 17ad2db3748e5650e2e0ae85b9d857f6c981109a32c838442d672e8c0af4d6940e410d90e94580cc64bb2b57469768eff0bbac5844bf8a8b6ec8e26cb84e21bd SHA512 a74e0dffdea57f884bad06986cd31f1cbeafbb67b7ed59e5e96dec633144c8208df5b952e89186145ba2b37990d21e15fdf13109d34057652dd0357645c5adfe +DIST vscode-1.70.1-amd64.tar.gz 119738468 BLAKE2B 7944f5fbaec4d935b71626c3c9fc8abe504510748309024d373913cde7887652e5e2c6176201d18c14e131664031feae6af4b2b75f79a11bf0625869143f6b8a SHA512 6f44acd886ded96d92627587c3c5b23fd629f8e151690e7e205eb4cb594cb1e73c582b15f847afe4c72b80e8fdb08dca165bd8840bbb770647e075b3ca9626e9 +DIST vscode-1.70.1-arm.tar.gz 100809684 BLAKE2B d45cb42134cac7156af0c5108ec70dda7e50d529daf37e352288ec299f6fa53617c260f80bb03a921da837ec706dd2078a2a17dac60255b61dffad5c253e93f5 SHA512 184728e2969d9d00d94eaaa344164ddc536c0fde6267a142ea35157ecc6befa6f1532f35e879345f27a853d05248bb678f2b666c1e07db9651d90e019ecfeb9a +DIST vscode-1.70.1-arm64.tar.gz 114897540 BLAKE2B 9728a77a9b012352f5f85a236f3cde60ff11ba52a03836feff4ed35f8dcd0101a8924ecae0dfc0ebbf27aa396be649d2c2f013a15341829f2b0e70f491d2eec2 SHA512 0840d16599d6f83922ec8adce84e59b62fbcf61b704d2898215c0a67e4b87461c5a31288a57559cf9ec382882fe5f14512927670082b044a7d1152c80a78a642 diff --git a/app-editors/vscode/vscode-1.70.1.ebuild b/app-editors/vscode/vscode-1.70.1.ebuild new file mode 100644 index 000000000000..9eed84dd6b73 --- /dev/null +++ b/app-editors/vscode/vscode-1.70.1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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:2 + app-accessibility/at-spi2-core:2 + app-crypt/libsecret[crypt] + dev-libs/atk + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/mesa + 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/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 + + # 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}{,-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 + 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" +} |