commit: eb09003b774f9be92fd1e0536433760780da16e7 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Apr 4 10:47:59 2025 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Apr 4 11:03:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb09003b
app-editors/vscode: add 1.99.0 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> app-editors/vscode/Manifest | 3 + app-editors/vscode/vscode-1.99.0.ebuild | 137 ++++++++++++++++++++++++++++++++ 2 files changed, 140 insertions(+) diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 392519b03bbf..6e6e4f4b12e7 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -1,3 +1,6 @@ DIST vscode-1.98.2-amd64.tar.gz 148578157 BLAKE2B c13b525807ec9ce8a6be69da73586f8b5b0cf85be4d5ed3220deaaa22a01bc42dd0a7159ae24627681b4d717a0f3857ab9380f17198cf7b0e167fa2704740efd SHA512 46240ae53acf0dc7c1aaec962d0232096d11a1afba864994c5b18e3178c7d04040c3c6191be043cf3821af07ded200e34eff1574ea060aaacc024fe898c0ce18 DIST vscode-1.98.2-arm.tar.gz 138905893 BLAKE2B 48183b8a4c4c676b0108e19fec5118df566ec97dabfa5b3a3e57b55e74a77d02e5d43b33172c50fc9cd371e58d39d9df63708b5ed5b4b39353cdbd6a4c16a5d0 SHA512 3c819428d3a89203bb33e29f1ea72e2d35f887bee7f35dbd181803d585dfc30e732f0a8d83a4561b197b1920db742dc30070938109dcb00d0a81a7ddb70d1c49 DIST vscode-1.98.2-arm64.tar.gz 149345789 BLAKE2B 2fffacfe0302dcfe530595895399a5fe50fbe6e52458f39fcf1ee26ccf5043dd5874676c272587ddbf1c4f546d986cc057579bdaa5d4c181de877f0cad9f58f2 SHA512 b71e8aeaf0a21550e909c433d2758336c31d52a3f548cbd0fb72778df8a165e26653fdd5384e174237d8a9b5dd7023499fb54a3d57c050daf07303ada3f10ee7 +DIST vscode-1.99.0-amd64.tar.gz 148553462 BLAKE2B 760766116dc08f7a2f4b9d3191e2c90815e5564f60f09434e4eae66b18ef7aad70cee2833a4f2c4fa8ffceae0a2752acc7902f1d716ed17181cfc28a995175ab SHA512 5bc902e10b8da7ff35764821affa5ead1be9a442f2cdc855797c265142860d3bba8943c8dad7023bfb4fe2fbff2d4fb2e62b5a1382ae53781840a53f7fcd91e4 +DIST vscode-1.99.0-arm.tar.gz 138858887 BLAKE2B 984130897a33d1ee72816f2330684b8372d6003fc49b08f837461a6837eb86457d28e6200c230605cbaabeae3ee4b3b6af40fca0c24bcd4cf1795122263d7888 SHA512 f7b9f14927fbcb5fbe97f2305fbb84a88766a8062ede2788a308ed55c27a4ca64347604accb586a147fb30fbd0734d3006742f87ddf1be4dc32fade5189d98cd +DIST vscode-1.99.0-arm64.tar.gz 149320376 BLAKE2B 9ee60c135d5aa1c86d5e0bde41a0d901622460be68ee6a329da3f1a627687eda0121d87f12530b78cfbb33ccf04a74be42fdcaa46d570d42360dc15984b9b620 SHA512 57a66095b150e7fc194ff84347c35f77a16870ca6775bcf76b4165d9871550fd725ee038f3201146e831d749dcfb67736b700c227c2dadcdd017e90279a559bd diff --git a/app-editors/vscode/vscode-1.99.0.ebuild b/app-editors/vscode/vscode-1.99.0.ebuild new file mode 100644 index 000000000000..04f694acb893 --- /dev/null +++ b/app-editors/vscode/vscode-1.99.0.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2025 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/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 + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-open-in-new-window.desktop" \ + > "${T}/code-open-in-new-window.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + domenu "${T}/code-open-in-new-window.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" + optfeature "Live Share" dev-libs/icu +}
