commit: 75af0270da89b2eb35383e006700619256984b25
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 18 08:40:15 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 18 08:40:15 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75af0270
app-editors/vscodium: add 1.105.16954
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
app-editors/vscodium/Manifest | 3 +
app-editors/vscodium/vscodium-1.105.16954.ebuild | 133 +++++++++++++++++++++++
2 files changed, 136 insertions(+)
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 838255dd061c..67dc6cfc95e4 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -7,3 +7,6 @@ DIST vscodium-1.104.16282-loong.tar.gz 151344793 BLAKE2B
da452249f9c943e174e773c
DIST vscodium-1.104.26450-amd64.tar.gz 155700418 BLAKE2B
3757d0cca0f1c1f201a018a7432d6d32b9fd4367b078bf52ba20c17f9f3621e8bdcd13ea03b8987dd16259753039f45ae3a7bcd08f98476a181a381a5dca7f7b
SHA512
f1f42d0fa54ae1b275bff469a71c2ee43897037455302484a760f049418bb231875bd23fbec54fa7cf00d52292ffaa238ca5256f1c4eb9127a3c3b64450f2067
DIST vscodium-1.104.26450-arm64.tar.gz 153128072 BLAKE2B
31146c3b9a9f57ca81e6d66413b23c27af10c1946977ade9e23e22d59a6300abc18a9571e92a7ddd3411019521846bbae7e17ffc14180ac8855a5d2a071e25a2
SHA512
a9d4861a3b3ca0e13255540948ded10bc62f4916a5f9c8dbdab45f760e19b62b074950abb982f7dfae1ba6399df91f6787e3dcad4cd5b494c7662fa32d62e941
DIST vscodium-1.104.26450-loong.tar.gz 151342353 BLAKE2B
0ffee5fddf537b0390eb2ea568b6ffe59f80d32456594c940a67d797170468861bf6507de31d95e9d13eda6aa73765d20d87175909ed32efefacff2f3d94a84a
SHA512
3f09de09991b5ae8152ef642d9a00172440b2f6c993842e1e77ecf0a88d85956a3eced62d89b73ddd462936b93b44fc249fd6333116bd3e1f25e3731aa0db07e
+DIST vscodium-1.105.16954-amd64.tar.gz 156291499 BLAKE2B
06ef949a53c6a90f1ced2b48016d6f897e5baa1ef28ab9fed0807eddaa1235701eb88208062b74f3cdfb02ae462abd89c45b863eb9e0ca2d0b57b0d9316255a6
SHA512
1fd61c9f1bf093b97390da22ae5d638bf8823d66c846a38aae11f523b2f3ecfe5500b5c2c184c3aee24a180c83657d6c389fb701d0d9eefd91789f01809e2af3
+DIST vscodium-1.105.16954-arm64.tar.gz 153708399 BLAKE2B
23b7c4cde14294c3c8f2f9e865ed56a79878e22a8dd24d5ec7a9d95eb44d0570741a653f4eebbd0b20fa9e7d26ac2404983311518955ce4362e62257cb297800
SHA512
412fc72c1b5a83a8aa79b65bd68adb494d6f21614ff3d0de4f6aa859dd6588c8d3195df74bd70a45198458c349d86a72c9c56e989ef22dabd036dfdb39dd9ef4
+DIST vscodium-1.105.16954-loong.tar.gz 152139530 BLAKE2B
15734bd3e6e19c3263e8575bfee638f6463e11d5a1336e2f90d66c93d7f4f0413d7b1890cb6fc58ee986fe67044ba57877c2dca1896aa5bdbbfbabc1748f9533
SHA512
a41d1731e70865360680e151c199552470b32f34fb00d275f717408e626fbb7469650f44691f18c1c84f207a072ec2cf1b26359a2e37cebd9fba805df843a20d
diff --git a/app-editors/vscodium/vscodium-1.105.16954.ebuild
b/app-editors/vscodium/vscodium-1.105.16954.ebuild
new file mode 100644
index 000000000000..9c2bac3e0f89
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.105.16954.ebuild
@@ -0,0 +1,133 @@
+# 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 <gentoo arch> <upstream arch>
+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 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 ~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"
+}