From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEF6E158046 for ; Thu, 10 Oct 2024 18:12:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B830E2BDA; Thu, 10 Oct 2024 18:12:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E7DBE2BDA for ; Thu, 10 Oct 2024 18:12:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 16BA33430F2 for ; Thu, 10 Oct 2024 18:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 414C9116A for ; Thu, 10 Oct 2024 18:12:23 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1728583923.82ed4d8ffe2854d3b58d0585fb7b22b5f4913643.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscodium/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/vscodium/Manifest app-editors/vscodium/vscodium-1.94.1.24283.ebuild X-VCS-Directories: app-editors/vscodium/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 82ed4d8ffe2854d3b58d0585fb7b22b5f4913643 X-VCS-Branch: master Date: Thu, 10 Oct 2024 18:12:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: cf34a4e2-8b8d-4ab1-9998-ba0a6ef6e68a X-Archives-Hash: a523cc034857bdd7b53e3f5bfb4fa514 commit: 82ed4d8ffe2854d3b58d0585fb7b22b5f4913643 Author: Arthur Zamarin gentoo org> AuthorDate: Thu Oct 10 18:10:43 2024 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Oct 10 18:12:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82ed4d8f app-editors/vscodium: add 1.94.1.24283 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscodium/Manifest | 3 + app-editors/vscodium/vscodium-1.94.1.24283.ebuild | 128 ++++++++++++++++++++++ 2 files changed, 131 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index c1ee6058f2f2..c766c5859918 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -7,3 +7,6 @@ DIST vscodium-1.93.1.24256-arm64.tar.gz 131494186 BLAKE2B 62715b6aa8f42dd76b8d3d DIST vscodium-1.94.0.24281-amd64.tar.gz 130452164 BLAKE2B 7ce5a04313b00f9dd71e44b5ef73d1607964652569476540012114a1a6151ce5d01f89ed034f272f1ad43e5db554e102af55b301d43d160523ebcb6a4fc9a192 SHA512 4bdb44ea95c3332b2c3b566574353afd9526db09e34a6deef6e6c1af4daa99415ca996967e59099b978b8a2d016edcb447ea26993ccbe71d6d6d535d5c1c8f4d DIST vscodium-1.94.0.24281-arm.tar.gz 118802288 BLAKE2B be3b5920ef79dae480872e64ac31e41feea33e70562750dfd4313f8edfa18106380ee12b4b1f04dbaef68011c5e25b09bc41a25969d5ab6a9a2b4d12aff02919 SHA512 d5f18667053b2f2812a2648d17c5fafd9f41f577e263d6b8e16561fa898bf6b90dbd89405c847db52cef328ff7018465338515ca64d8dd331a801361ecdcc035 DIST vscodium-1.94.0.24281-arm64.tar.gz 130387346 BLAKE2B a1bc80624a0b6535dc1fceda94de361a1c1bcfc930c1d2874fd2eb82677b4ed0093b1f9e81ae70992d316b93e6ff6148369f2cde5b3c7d5103e8086c6c01b5ce SHA512 e6178563d723d83d45b07200508095b85bc633ef5e0ed3eb502e0b1ccb38e1674d65eb6a26cfdf04fb8073de284c8bb878fc3a13cb6c131ecbb6d6b6c4de6b65 +DIST vscodium-1.94.1.24283-amd64.tar.gz 130462425 BLAKE2B 18869686c76fcaa066650df59fd138875fe67e8d2e3f1abf644b2d6d3f35e1e9a7e4635cf8af39edb40860dabef1238fd59da106027751537dcfc31bdf44bf4e SHA512 b81be4773a9d2843ebbc3882561932e12aabe1972a2f8ed7c018bdf18ee69e01ebb67b946981c24f8f2da6798010acbd64904a233bd3a3bd4ccaa324efdcc575 +DIST vscodium-1.94.1.24283-arm.tar.gz 118802719 BLAKE2B 5452fc7a0b454cd7b96378c45614c4f6f8cfb20ce0335aadca94ccb833faf48f135d3530421724765911dfae3282740ca0348b4233a4df336628e8485855676e SHA512 44a6af108df428f8db9e055134057e487c1f50dec1be36a461eeec61fd5987b63e2a1ba56e5f573d0507a8053095a398f67b781881584d4b742656a405bb63bc +DIST vscodium-1.94.1.24283-arm64.tar.gz 130400583 BLAKE2B 4991ab4c8e30326efa6966b9bd745487fe55afae9fdf136a6f99c64b4eb16f99dd213d6c94fde176137d0843e2a05344555e1ce0b7ef0b754a45688b1c7f70a3 SHA512 056c91d8d85c39e7d1258d94a445cd70a99ea7844e535ab0e748110a6da59787b07f1ae06e21d57726fa8148350e41700885283dd091368dfc7e9e219a5da97e diff --git a/app-editors/vscodium/vscodium-1.94.1.24283.ebuild b/app-editors/vscodium/vscodium-1.94.1.24283.ebuild new file mode 100644 index 000000000000..4bf914823a45 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.94.1.24283.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +# Usage: arch_src_uri +arch_src_uri() { + echo "${1}? ( + https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-${2}-${PV}.tar.gz + -> ${P}-${1}.tar.gz + )" +} + +DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode" +HOMEPAGE="https://vscodium.com/" +SRC_URI=" + $(arch_src_uri amd64 x64) + $(arch_src_uri arm armhf) + $(arch_src_uri arm64 arm64) +" +S="${WORKDIR}" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* amd64 ~arm ~arm64" +IUSE="egl kerberos wayland" +RESTRICT="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 + net-print/cups + 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() { + # Cleanup license file - it exists only in amd64 tarball + rm -f "${S}/resources/app/LICENSE.txt" || die + + if ! use kerberos; then + rm -rf "${S}/resources/app/node_modules.asar.unpacked/kerberos" || die + fi + + # Install + pax-mark m codium + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/codium" "usr/bin/vscodium" + dosym -r "/opt/${PN}/bin/codium" "usr/bin/codium" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium-url-handler.desktop" \ + > "${T}/vscodium-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium.desktop" \ + > "${T}/vscodium.desktop" || die + + domenu "${T}/vscodium.desktop" + domenu "${T}/vscodium-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscodium.png" +} + +pkg_postinst() { + xdg_pkg_postinst + elog "When compared to the regular VSCode, VSCodium has a few quirks" + elog "More information at: https://github.com/VSCodium/vscodium/blob/master/docs/index.md" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +}