mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 00:28:09 -07:00
app-editors/vscodium: add 1.116.02821
Signed-off-by: Dima Pasechnik <dima@pasechnik.info> Part-of: https://github.com/gentoo/gentoo/pull/46246 Closes: https://github.com/gentoo/gentoo/pull/46246 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
8f02aff4ea
commit
9cdc0b953b
@@ -4,3 +4,6 @@ DIST vscodium-1.110.11631-loong.tar.gz 165771345 BLAKE2B a17753cf76f6ce11dd65073
|
||||
DIST vscodium-1.112.01907-amd64.tar.gz 169397011 BLAKE2B 0a25333812531509e680163a03492f9c339f26623740aaf3a1fa24b7dcbf78c4660ca0d03ff64dd61664585dd7e24510a80a570430ba54b53e6c96535079f79a SHA512 9deab48ba63a5517dfa1b0e1c7446ea59e21317aee99461be7c1eab4a39e99b4bd343f1337fea45151c4da786d6b6fa1228858f7d2b3820c7fcbbc6f8e4962bc
|
||||
DIST vscodium-1.112.01907-arm64.tar.gz 167036301 BLAKE2B f186368821eea990d00b585dc1a23ba5f21093338468a1ef22b17541db1b00ad3281a3869a2c90547fcca5302a87a3e70de06c0d97a21d2e2754759c83a7f87d SHA512 3a7b0ae0f0d9b39a62a4d5c8e31d7340692b0ebcf9742bc956083c77f4969f5a71a7751fd9df69b79aea92664d6c5f4dc891f8a6dbcf2539c32ec49974b6692f
|
||||
DIST vscodium-1.112.01907-loong.tar.gz 166138924 BLAKE2B 7aceaca09bdd71ff876a7601d03940b0c3c613b4701db7e4bc9c068b950d220b80d793f3e7a6a0ec45105fb849c0ae77585dc0ca1cda618b1f21d3457d6c8ce9 SHA512 1c750cc0e05ef196dcc734850f9ee6b9b7c48776d5773f8de38bd682e2937f7b5d4a1c7be8757861bdf67d490b240b94b6513de2f89347d9a28ad9a865dbce27
|
||||
DIST vscodium-1.116.02821-amd64.tar.gz 170364529 BLAKE2B b4bf0aeb8ffd2fd2f687afb822d7d994ed0544d1846320bf901972b7caa5a4e49dfdb891253296fac44270517ed57214f6e6bd457552396c29efe89f6c51dfb0 SHA512 fdc10d2a24e427af1fd0f3799fad541b0ec6d0b30e9223f915becdbc5ab37f6d51adaabeed92dc0d1a7f9a944d6c59754b41730544d6863b2ab983d5aec07a70
|
||||
DIST vscodium-1.116.02821-arm64.tar.gz 166262958 BLAKE2B f495f969a4fc2beeeb1dffb71220d4a0608a2b43c081eaa736a5f543dce03e4a20301f6c0aa611afe4b0029f5e8622725031b3ecda034a4c507fd11113fe27aa SHA512 d1243f60d7f32e088a06353b9720bc9d5ae67749be236fb6320f2dcdacd489f197889b8144bb96b282b96c241b1f6101df31be5f8fad7f490edff6ec3a4751a9
|
||||
DIST vscodium-1.116.02821-loong.tar.gz 164868202 BLAKE2B eededcc0915d4052a9f719fa4e7840a906f7afc57c6dcead341b7a40c29f8414139862632aeb8aba67e4609321ccbbe16210729960fbec4703c7fa033e38dbdb SHA512 548265f078e0bb6378928c635464c0fc57d5fb2fb3f6cd19b506af5213cab944661cc4fe2ea185f2194940ca8b5033270cf4c60bee885edeeb0826482118bca6
|
||||
|
||||
164
app-editors/vscodium/vscodium-1.116.02821.ebuild
Normal file
164
app-editors/vscodium/vscodium-1.116.02821.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user