diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-08-09 17:51:41 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-08-09 18:00:39 +0300 |
commit | 170d629c25d5abf139a5c4c00e3d977313a335e8 (patch) | |
tree | 5dd359376a555eedfd235ad100aff5cfa05597a1 /app-editors | |
parent | app-shells/starship: Drop 1.18.2 (diff) | |
download | gentoo-170d629c25d5abf139a5c4c00e3d977313a335e8.tar.gz gentoo-170d629c25d5abf139a5c4c00e3d977313a335e8.tar.bz2 gentoo-170d629c25d5abf139a5c4c00e3d977313a335e8.zip |
app-editors/vscode: add 1.92.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.92.1.ebuild | 131 |
2 files changed, 134 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 2624a141405f..c4893bc89914 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -7,3 +7,6 @@ DIST vscode-1.91.1-arm64.tar.gz 138976160 BLAKE2B 573ab5e6fa349ac80044b6d5f3ab4d DIST vscode-1.92.0-amd64.tar.gz 144719694 BLAKE2B 32598d9c45dd8ae921511587f44376237d57ce15e2b417595bc7828416a1e4f0a35b7bc7b90cd60e7b98c99f9f6ec1eb5be1923aa3ef9c336768e7b9ca53717f SHA512 8e204f31784b27437a612ceb0ba05b03049e4b735ffd3808f6b3ce979ce9b3a5804fb1726afac40dcf06c215ccbe9be5de693fd789dbe75b788ea3104b0ee5e3 DIST vscode-1.92.0-arm.tar.gz 129685400 BLAKE2B 22d95a781e409b4beb97a3463605372651304174e687b50ca9cf98c7daa64935e0cfb3eef48ed0d70cd85194806798dfeb8bb5838e388ecfcc3277aaa09acaaf SHA512 7411d67b3bd338ea855fba02ff2f87506ab9dffe2da3871d45a9511ac08e3947d3864e786502b6875fc48033860cfecfab8a4c22440cacca97ef338e96ffa9da DIST vscode-1.92.0-arm64.tar.gz 141628799 BLAKE2B 94ffd063dfcd9352664b17a65a8b64474d1a7a0df6cfd98efa9f6f1bf9f31b1e8f807313c9e154c96e539db3a29bd3073668a70f98a280810b42d7c61957dfde SHA512 6aa04f37c15b74db961dff439dbdb14e54ca00b28f0358e39fd85772ff6390c71c8828b21b137707b0a9a99a7b33fe140cbe900e80d7df6b19abd970ddc9c436 +DIST vscode-1.92.1-amd64.tar.gz 144733912 BLAKE2B 5e764da6e3f6cbe4e386c847e7b42a2dc25b94dc7cd04132dddd846a9b3cebb70bb2a4e1addc3b27d736f813689bf994c1f2d39800ecf5ce1662f98704c69c3c SHA512 a53a074cc7d90efeec1830b17620cb738e5de7c0d494f1f8a9420f02178b371845c12bdf149ea94a2c9b40b8e464087799860715338e112f72e3814df5952879 +DIST vscode-1.92.1-arm.tar.gz 129681373 BLAKE2B 41cfbc5394aafe236df9259940f5839e11ee6d9286e2d0ab79e4dd5b91a458587fbfea4430b7c544035116a1ded2c703eb09f3e02b8357cb29af588300f126c5 SHA512 5bd878e78f24c4d073b0bec827be0be43761539df27fdc6b20036a0e2a5adf5d839bc07e82e31e82177709e3282c92b6229136d561fd338506033aaf4364caa9 +DIST vscode-1.92.1-arm64.tar.gz 141616445 BLAKE2B d29357ac474ee418d438947f421bf1aa21a65b9707d559d8d735a08804f4df2cd98cd2ea7ea28787a5c54f483fd2e60fb569bd94a2224dd8504eb752f7ac61c2 SHA512 79a5a42147dd60c3d7f3105dc874d45c3f414088fb01c798209437aca2edf522be8257f47a24e86713e4aa264d0012989739cb2fdbe5160d89a0f5263bb693df diff --git a/app-editors/vscode/vscode-1.92.1.ebuild b/app-editors/vscode/vscode-1.92.1.ebuild new file mode 100644 index 000000000000..7eebb15e925a --- /dev/null +++ b/app-editors/vscode/vscode-1.92.1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2024 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}" + +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" +IUSE="egl kerberos wayland" +RESTRICT="mirror strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libglvnd + media-libs/mesa + net-misc/curl + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + 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/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +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/ThirdPartyNotices.txt || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + if ! use kerberos; then + rm -r ./resources/app/node_modules.asar.unpacked/kerberos || die + fi + + # 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" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-url-handler.desktop" \ + > "${T}/code-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code.desktop" \ + > "${T}/code.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +} |