mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-editors/vscodium: add 1.99.12392
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
134
app-editors/vscodium/vscodium-1.99.12392.ebuild
Normal file
134
app-editors/vscodium/vscodium-1.99.12392.ebuild
Normal file
@@ -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 <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 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"
|
||||
}
|
||||
Reference in New Issue
Block a user