diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-11-05 20:22:24 +0000 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-11-05 20:23:10 +0000 |
commit | 2a2fffb176358dda52db80d5302a5db7122cb97d (patch) | |
tree | 8f7f5d2bdc9792599aa10d4a7ee3dd368a0d527e /app-editors | |
parent | dev-tcltk/tdom: add 0.9.5 (diff) | |
download | gentoo-2a2fffb176358dda52db80d5302a5db7122cb97d.tar.gz gentoo-2a2fffb176358dda52db80d5302a5db7122cb97d.tar.bz2 gentoo-2a2fffb176358dda52db80d5302a5db7122cb97d.zip |
app-editors/vscode: add 1.95.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.95.1.ebuild | 131 |
2 files changed, 134 insertions, 0 deletions
diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index 42a297e57ff4..51f7e8bff19f 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -1,3 +1,6 @@ DIST vscode-1.94.2-amd64.tar.gz 145188698 BLAKE2B 0ba98d4af28da95d2d19b5cbb27b18a6c6f82a73c585e57ef94868133f595050b4ab1e78eb25d02a40fcf187057467e88f421e4e22544e301c709d2b1d590e0f SHA512 41f02fe383a825c0e50dae1a5527c2e62e6d8b930f62667a4ad17479264325f3a23bbf196a8ed5121a18bb9b3e853b7c840a0e1490157dc74adaa654bc566062 DIST vscode-1.94.2-arm.tar.gz 129620768 BLAKE2B c31a0b60a8c0e6fcf6010846f29a1ed14804b20b5910d91e896e4f43f18ac26413f32f89546be1f5e68a4dcbcb24741369e8dd1f0d48436beb41e6b40c01da81 SHA512 37e541de5659b8a7097c54e5b7f6313a8e7f93691bbe640b302c1fc0c8588b8560c75e037d7a29df635bca47be791b29886c8171f5e15b0b76fc0e1069b68814 DIST vscode-1.94.2-arm64.tar.gz 141296756 BLAKE2B 160dbbeea65cd482c42e7d48c120c63167fe274ebfab2c458923930aa9f5b69c005bbddd7d66139084809b73ff7ce04defc9421b738ef608a8f11a7385ee14ea SHA512 bba6212737b30f43ee943d3ab8883d6c184fe6e2f66375cb893521d766a75fb139664ea18f4e91436fb7863c5a72534b02a2d6aff6953c09085b5b5eec506064 +DIST vscode-1.95.1-amd64.tar.gz 148382845 BLAKE2B af91c360425684b660ab165bd5d10084d393be0ed84769c0b4967cc575aa62d1c6478410adb0aa3467e66dd40750ba068c026d3d37923997e93300ef773d76ed SHA512 c48f070031e239b5140028e0af05208a5519a844513b5ca99f779fb62cb56f03342df5809f0cfbf6fdd940ddbfb7176acf6f3ecf041f7484aa02de0457e1555c +DIST vscode-1.95.1-arm.tar.gz 132440825 BLAKE2B 99e79889dcb2d1131963a08258c6b1dc4519e08000dc707e0e19531fa015553efa7e49caeb7b813edaa59cf43186d979dff552bd0c2ff0559b09149666e66a15 SHA512 3e35c51b5127ce89743c465d4ffe61d8d5b6b52bea025cc09a55461289a1d8a22255a1f08151609177e7694c586cf918a0c562dd39051eb17aea02af60f33c87 +DIST vscode-1.95.1-arm64.tar.gz 144398553 BLAKE2B 54d9bcba210df773a10361c79329d2d7511d942a5eead4af619ee84f6d159ed3b694cbb5f9d340e25fc4d39cb40de1e9c17894b16b63b265903260d03ef7e655 SHA512 aec996bc4071eba11d19d2a17dc92e127569d99e08fa0c2f9f66e4d8c62529457dbc65b21180442fd58197a5ad534a21eb287286fa3ac317171009733e6db86f diff --git a/app-editors/vscode/vscode-1.95.1.ebuild b/app-editors/vscode/vscode-1.95.1.ebuild new file mode 100644 index 000000000000..3d10ad08d715 --- /dev/null +++ b/app-editors/vscode/vscode-1.95.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/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" +} |