mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
app-editors/vscodium: add 1.106.37943
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
7029762837
commit
474b574391
@ -4,3 +4,6 @@ DIST vscodium-1.105.17075-loong.tar.gz 152136761 BLAKE2B 0e5506037c371b506cdae73
|
||||
DIST vscodium-1.106.27818-amd64.tar.gz 156447440 BLAKE2B 77a96c0aeec061182173fb3babed4c3a5ee84deef805f5839ec62c6e8665de658e2efea9690ddea61a74d5ed8d121b535f80a7c2a49fc0da332a7cd782d7b644 SHA512 dcb9de172182386c9bea4c4c7bf5f7ef997be46fbb9571053ab23d69748bb95d76d71033b71ff6b4c6c03958ac3e24e64c621dc2b42c4f258c74f74b87baf1a9
|
||||
DIST vscodium-1.106.27818-arm64.tar.gz 153805235 BLAKE2B f9d94fc785817aa46e1332dbe7f7484e025f5622e17d4110c0fe946f3500114a2024cd6fe0dcdf234bd4b3f628078ce201f0d517ae7b95ab11205d8dd7c9d8c6 SHA512 9f824a09e778e2594f977d6923824afd3a7455b025f425e7fde8f4215f8b503083570cd601cad53b8c56bb3eb357d40d65de06b6d46a2bd41b9f409dfe1144ce
|
||||
DIST vscodium-1.106.27818-loong.tar.gz 152617570 BLAKE2B 221e1dbe414ff762a9c22cc74849f6e3d51c6e4820fea968867f925d3293d86f4eaedc85ed78486a3782f5f82297bcaf9c41ad7f534c3ce1d494081c6664459a SHA512 95c379d4f6e1790c3247f4d3d1ee162d2e962a95f8687b9d1424e1cb56fbad3e423b2e989349b47077c2543488b17d0391b0bef2d88fe5646ce1c16bb80f54db
|
||||
DIST vscodium-1.106.37943-amd64.tar.gz 156446608 BLAKE2B fbbd0e809357251c975f45523c88133982640506aa16d99af61b2a14c27945db5c8ce69611d155c4c59c2ab55042c5fcd0aa9b2c94789adbb6ea33e9aa906f32 SHA512 0d00bd9215281f1fb356e64f6461c3bf307a670600f7144bd62326228bb2f31526162892c871970dcf0b09f880e3893c1c6157ce4cc3de972b703f6b47bede3f
|
||||
DIST vscodium-1.106.37943-arm64.tar.gz 153804932 BLAKE2B ba82a60fb2637d0fe164f37e5d10ba85c6fd52b4e0a352c2c5f2d6df551bf5237a695d0465807042417a34e8f543847fcbd3a99ad64ae41c763195cf08701a1e SHA512 dd17449bce3245632a37cbf64dd62bb7a17f2fe8c5920387401b717aec24a1baa9f5c325558790b716df8d3566a3abf25e4228ef3fe0824a620320aceef5aa3b
|
||||
DIST vscodium-1.106.37943-loong.tar.gz 152620377 BLAKE2B dc929805a6407efe35bdba054894630542d3015f3e56ab124db30a9d734a968b0ad9d1d98fbafcaea791fd1d94e559c1dce401d7e4c702ee643c5adb1a334f1f SHA512 2e722abaf269b7e3e3f8b60220fea8afcc2b7669763c35b310545b631c3f40959d026dfe113dce0e9f271ab587d9dc076042a4162f7f06f9792d71325d285e15
|
||||
|
||||
156
app-editors/vscodium/vscodium-1.106.37943.ebuild
Normal file
156
app-editors/vscodium/vscodium-1.106.37943.ebuild
Normal file
@ -0,0 +1,156 @@
|
||||
# Copyright 1999-2025 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"
|
||||
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 )
|
||||
"
|
||||
|
||||
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
|
||||
|
||||
# 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"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user