This commit is contained in:
2026-05-30 22:20:07 +02:00
parent ba3211f37f
commit f91004a1d7
8 changed files with 277 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
AUX codium-open-in-new-window.desktop 372 BLAKE2B a9c759c54049c0ac616565dc3b6abd5f0c517c4e04e350971a3292807466f2b218b7acaa23498045bf49761dc021c609780fc6402bc635fb02350d9d69d2b297 SHA512 7b4e8349d47a5a3e821865f021a10d9bb8bf8a1d8caff7484d5688b7b09ce8b03368b607603a600a07f836ec47b1d6ba7b829373b1b3be92a8424194f09a8e80
AUX codium-url-handler.desktop 346 BLAKE2B d1dc193af196b36308cf3ad67d89a51aee6a9d3f8ec98ba9dea0caf57614a1448f43cf820c186d675b18b298ce9e8a982ef7df749389997945529bce038bf74c SHA512 ca47609f6b63b8172d38e3c0e285a0ef70228ef631f95fa4eb3ff7997b9885d19520abd0cc33da7d4fda9fe1bf535f448cdf7e3a6d4d956f34aa0c2bf8be8627
AUX codium-workspace.xml 268 BLAKE2B 3c0792f6077a2f9bbfd6b53bd3ecb53aec5e9cf13d82505e7a6568cc35ab83015400f314fddc6b930220d1c8905829e3e65772613718dcf5cc22875d04ec1129 SHA512 6a58439ecceb79cd9acf7b5c82dab26c7fac82ca28e1e70e13e895c695b16f32adca8ead13f0d2470708662b30239acf21e2c24700f04bd234b632d987aa16d7
AUX codium.appdata.xml 625 BLAKE2B afd85767c158be27afa180fd3f730b3e8c8700863cfd257dd4038afe5ffcd8e9d798fb20f808417bb43e16da5bff9c59708320436f94b8c5d4590b3ca0543f1b SHA512 16bcc2ae1da27074fb54130cae0b18a65e998086b0967454535b392f06ac4ce855553f79d16d24c8908adfd55fd28bfbd1d3c1ba58e6b264cc07d70b165e5d4f
AUX codium.desktop 791 BLAKE2B b9c505a803fdbb11b283411a420a5abbb3e64e5923d60dd3caaf98ab905cc23f750b4cebd42d31bb2dbda15f960a23b8e64c3842e57d9f16b1ec454dfa070380 SHA512 b0afc8ac62a28c3a397354e84ccef9955d20dfeb4614505a9729018880ee8b039195a09b8e96c4cc3ebe4fedc6baff60f3c90982069a1f2ecb8c1b1f78744c6f
DIST vscodium-1.121.03429-amd64.tar.gz 184234252 BLAKE2B 2933516e746ccf1951af94caaff96e86252b95c89dcf8607a81c704dd2565372a8e6d75dd70190120227f06487f905c02ad5cf5e5cc3f98f4304377b23cb19a8 SHA512 4bbf2228ba13695c6e7ceb6b1ebef54412e1abe43b2254b59d61a65b0a35d4dcad9e906582c8a94597509a7620be4c1d2784a7b1ee85ba73b2f7c9dd11b00cd1
DIST vscodium-1.121.03429-arm64.tar.gz 180064975 BLAKE2B 8d89a9f22669814c282196bee52a569d7c88e6b210ceb656ef72d652d6538197dcbb6c5f4d6c373bf41e4050a0b0d5bf92817a031fe7470a7c41e54d2b6da973 SHA512 d7e5506ac6705b9d7e11c183b006d7366719f02c91a94a67be4563bd6773ce096485dbc95a94672f9759161568ec2f649349d08aca5299f5e7ae82a0763a649d
DIST vscodium-1.121.03429-loong.tar.gz 178694983 BLAKE2B e5026c9f38f6a00566fd9d8be62f3dee844a3138bff9b2472d25defd737a6c967184a0c7772d0b20846dd2ab88ba90334a21085c1cd7229abf8c9cfd58e7a8e7 SHA512 3a8463b408b886d288354d60a545f0452e681ee464c2ea6c3892fc5f4ba023395f974cd4b9b8b89a6f0bcf344adf8545d09e7ab3c0f3c2dd2ca1ba43e0c9db9b
EBUILD vscodium-1.121.03429.ebuild 3792 BLAKE2B 801857950450b7004a04617446522ed28b2d750c2bf82bf948a7e033c030905fcbd8383f6aa53cae0e1ec104e7dcb671eea97cdea86fb1b7f7c5515fc645262c SHA512 3c34c71ee9fb3561f47d972c5b427b9fa10cfdee6490d6dbe8be9005adeeb6fecc01dd93dbc4e5b69b6aeee61bf7338e0367795da8460f059f632874bfdb40de
MISC metadata.xml 1565 BLAKE2B e4c46888a8f9425b9ac07dd283851cd91cc791866a5372ba59b586facbf385095d6c6d994d9be15a2453abddba541cd607707b8ccb9b9fbeb22e035ea49d2845 SHA512 5f428a1347cbbb9b5300bf53b6e52abe24f7f6f150a65767af5c0b70120da4e0eccb084fd9ea8e28c4950d9a38d03a226505763831cfc417e8b88a6462cec8b8
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=VSCodium (in new window)
Comment=Editing evolved
GenericName=Code Editor
Exec=/usr/bin/vscodium @exec_extra_flags@ --new-window -- %F
Icon=vscodium
NoDisplay=true
Type=Application
StartupNotify=false
Categories=Utility;TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-code-workspace;
Keywords=vscode;vscodium;code;codium;
@@ -0,0 +1,12 @@
[Desktop Entry]
Name=VSCodium - URL Handler
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/vscodium @exec_extra_flags@ --open-url -- %U
Icon=vscodium
Type=Application
NoDisplay=true
StartupNotify=true
Categories=Utility;TextEditor;Development;IDE;
MimeType=x-scheme-handler/vscodium;
Keywords=vscodium;codium;vscode;code;
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-codium-workspace">
<comment>VSCodium Workspace</comment>
<glob pattern="*.code-workspace"/>
</mime-type>
</mime-info>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>codium.desktop</id>
<metadata_license>MIT</metadata_license>
<project_license>MIT</project_license>
<name>VSCodium</name>
<url type="homepage">https://www.vscodium.com</url>
<summary>VSCodium. Code editing. Redefined.</summary>
<description>
<p>VSCodium is a community-driven, freely-licensed binary distribution of Microsoft's editor VS Code.</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://www.vscodium.com/img/vscodium.png</image>
<caption>Editing C</caption>
</screenshot>
</screenshots>
</component>
+27
View File
@@ -0,0 +1,27 @@
[Desktop Entry]
Name=VSCodium
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/vscodium @exec_extra_flags@ -- %F
Icon=vscodium
Type=Application
StartupNotify=false
StartupWMClass=VSCodium
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-codium-workspace;
Actions=new-empty-window;
Keywords=vscodium;codium;vscode;code;
[Desktop Action new-empty-window]
Name=New Empty Window
Name[de]=Neues leeres Fenster
Name[es]=Nueva ventana vacía
Name[fr]=Nouvelle fenêtre vide
Name[it]=Nuova finestra vuota
Name[ja]=新しい空のウィンドウ
Name[ko]=새 빈 창
Name[ru]=Новое пустое окно
Name[zh_CN]=新建空窗口
Name[zh_TW]=開新空視窗
Exec=/usr/bin/vscodium @exec_extra_flags@ --new-window %F
Icon=vscodium
+27
View File
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>adel.ks@zegrapher.com</email>
<name>Adel KARA SLIMANE</name>
</maintainer>
<maintainer type="person">
<email>arthurzam@gentoo.org</email>
<name>Arthur Zamarin</name>
</maintainer>
<maintainer type="project" proxied="proxy">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="egl">Use EGL platform, enables smooth rendering in high refresh rate monitors on X11/Xwayland</flag>
<flag name="wayland">Run in wayland mode under wayland sessions, xwayland otherwise. This flag doesn't affect x11 sessions.</flag>
</use>
<longdescription>
Microsofts vscode source code is open source (MIT-licensed), but the product available for download (Visual Studio Code) is licensed under the Microsoft-vscode license (a copy can be found in the licenses folder of your gentoo repository) and contains telemetry/tracking. The VSCodium project exists so that you dont have to download+build from source. This project includes special build scripts that clone Microsofts vscode repo, run the build commands, and upload the resulting binaries for you to GitHub releases. These binaries are licensed under the MIT license. Telemetry is disabled.
</longdescription>
<upstream>
<remote-id type="github">VSCodium/vscodium</remote-id>
<bugs-to>https://github.com/VSCodium/vscodium/issues</bugs-to>
</upstream>
</pkgmetadata>
@@ -0,0 +1,164 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
sv sw ta te th tr uk ur vi zh-CN zh-TW"
inherit chromium-2 desktop optfeature pax-utils shell-completion xdg
# 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 webkit"
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
virtual/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 )
webkit? (
net-libs/libsoup:3.0
net-libs/webkit-gtk:4.1
)
"
QA_PREBUILT="*"
src_prepare() {
default
pushd "locales" > /dev/null || die
chromium_remove_language_paks
popd > /dev/null || die
}
src_configure() {
default
chromium_suid_sandbox_check_kernel_config
}
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
if ! use webkit; then
rm -r ./resources/app/extensions/microsoft-authentication || 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
domenu "${T}/codium.desktop"
domenu "${T}/codium-url-handler.desktop"
newicon "resources/app/resources/linux/code.png" "vscodium.png"
# Install metainfo
insinto /usr/share/metainfo
doins "${FILESDIR}/codium.appdata.xml"
# Install MIME type definitions
insinto /usr/share/mime/packages
doins "${FILESDIR}/codium-workspace.xml"
# Install completions
newbashcomp resources/completions/bash/codium codium
newzshcomp resources/completions/zsh/_codium _codium
}
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"
}