From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 9D8AA1581EE for ; Wed, 09 Apr 2025 18:13:09 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 88FC5343433 for ; Wed, 09 Apr 2025 18:13:09 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8E3D41104BB; Wed, 09 Apr 2025 18:13:00 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 85DD01104BB for ; Wed, 09 Apr 2025 18:13:00 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3CC443433E1 for ; Wed, 09 Apr 2025 18:13:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D28427FC for ; Wed, 09 Apr 2025 18:12:57 +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: <1744222368.df1b34de0e2ff36fc431838969f2d9847388611c.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.99.12392.ebuild X-VCS-Directories: app-editors/vscodium/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: df1b34de0e2ff36fc431838969f2d9847388611c X-VCS-Branch: master Date: Wed, 09 Apr 2025 18:12:57 +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: 36aa723b-2e97-4318-b90e-35608f89ca26 X-Archives-Hash: 69e5eca750b35237621bfa66fa4b9909 commit: df1b34de0e2ff36fc431838969f2d9847388611c Author: Arthur Zamarin gentoo org> AuthorDate: Wed Apr 9 18:12:19 2025 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Wed Apr 9 18:12:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df1b34de app-editors/vscodium: add 1.99.12392 Signed-off-by: Arthur Zamarin gentoo.org> app-editors/vscodium/Manifest | 4 + app-editors/vscodium/vscodium-1.99.12392.ebuild | 134 ++++++++++++++++++++++++ 2 files changed, 138 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index 65043ff22d68..4514ce7777b7 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -6,3 +6,7 @@ DIST vscodium-1.99.02289-amd64.tar.gz 135627619 BLAKE2B 114f9a71e40667a729b5e268 DIST vscodium-1.99.02289-arm.tar.gz 127945686 BLAKE2B 5b24a3bf4a18138db58ab34b6709df5ffbe6713058129b8485284a31ecbb1853fd66cb9c9443610e90b8bb8eb2a2e73b3f8b211135a1ac5cece6d9cc69064adf SHA512 ac934e8e664b0a8946eb27e248f66be330dd5e197b5d78e1f5615fe6b6b4c4504a3ee5b15df02c6d4e68644fe0daf08a92dee8af4709cbce1691560725b7826f DIST vscodium-1.99.02289-arm64.tar.gz 138216085 BLAKE2B 1d7f5ca0504cc007224375b332ebd055986d45695c2a6f94aea8d90608474b071ab1099b10a33d7010d6de6480e40ddfb2d4530174d339d85d6cb294489098da SHA512 c7f5376c70780253eb98e600bc236d219f11c8cbc5a0f4af08a842006239aa829a685ee855b8ae15a13e0d40ccb8bf60821a8c3b2cec207ebf0214f93f1a54c6 DIST vscodium-1.99.02289-loong.tar.gz 140833908 BLAKE2B d7fce53afbe06e1b7efb1054e5a83820d06aaf95e460129e161c68a1a2bbbbf7e04fe7a8c1564ec37658f71e4d5ee0bf2c708b9b5b6314f05eb78b39bbaeeee1 SHA512 6d37821f722b706e3c4d0e0443e99dd691ebbf94f71e67157c82d30ce909158d31495c3ece8bb056f2923a31af70f1ee9c766cf7ac4f87469457e617da35308d +DIST vscodium-1.99.12392-amd64.tar.gz 144114153 BLAKE2B f753850452e2d7b5a2f21170e1ea3c19be775b0ad98713329a9d57a3f8dbbdee4b1e1232fc6e47af9e7aaed9c4222f91b9412f0f4c8f3dfd874b702766465352 SHA512 f4a1e99ef26beb9dd06052727c97415bee1a0c6556d0463eaf1873b4ed881aaaa0311d18d1da75fbf0f6cef610e53d045a9edf834be07860604c9d20a0f0df10 +DIST vscodium-1.99.12392-arm.tar.gz 135827933 BLAKE2B 129912cdacc85ae55a28e991482194f32f0b470995e9b4a03870daa95ec24aa696b36843b6f81a48dc124d8c7ba67dfce02d33e7b5586b5382aca6a193cfc955 SHA512 63b1ec6e984ad06525d1de6ce6c17c4d2bf23408ed06f6fb66a09f1b9947284f05eefd933f03f7f09150cebcb280d66af0d947877196854a4ff9608c18030ba6 +DIST vscodium-1.99.12392-arm64.tar.gz 146250957 BLAKE2B 810d0d6339f8979cc17b2a6efa9be1792e6cb4cc6c73e95c2b34dd5afa19752bf0baf6dbf4e7713a37863a8fe76593bae9af4cb5c32e2341a6b0c6631ae83cd1 SHA512 279cbe6be66f3bf40ee5274a62796fbb24d4f92320e9c771192d10fa1fe8b1082abfccde5d43157ecd2681480849627a7aae2c42183760f854c90a5c26ba9325 +DIST vscodium-1.99.12392-loong.tar.gz 140834977 BLAKE2B 49cec44e7a7649c55b0e93536fe4618a3406d40517b072deb83f85e28a45df3a9b369cf6e8f9d0a797a455905f56f0ae416cff4352443d39746a10c19946cdfe SHA512 68669ed860c242c8d13d47d1794fa44039fb4128784fb47d2a644024a5d448885d2e12d74522e9bb3bba45947d366db6f4bc9b8bf04f56198a7f0f57f111d870 diff --git a/app-editors/vscodium/vscodium-1.99.12392.ebuild b/app-editors/vscodium/vscodium-1.99.12392.ebuild new file mode 100644 index 000000000000..6d99fa43b043 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.99.12392.ebuild @@ -0,0 +1,134 @@ +# Copyright 1999-2025 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) + $(arch_src_uri loong loong64) +" +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 ~loong" +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}/codium-url-handler.desktop" \ + > "${T}/codium-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/codium.desktop" \ + > "${T}/codium.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/codium-open-in-new-window.desktop" \ + > "${T}/codium-open-in-new-window.desktop" || die + + domenu "${T}/codium.desktop" + domenu "${T}/codium-url-handler.desktop" + domenu "${T}/codium-open-in-new-window.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" +}