mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-editors/vscodium: add 1.86.2.24054
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -4,3 +4,6 @@ DIST vscodium-1.85.2.24019-arm64.tar.gz 122135893 BLAKE2B 36f5bd3e0704cacf554a9c
|
||||
DIST vscodium-1.86.2.24053-amd64.tar.gz 124387396 BLAKE2B 7825e202ad7c862e8fdb254f4832a9e88c1b9edf913c90c6e316bfb25c5b7143c848c86958ffd9dae4d21b8c2bc55236d6c7b4ab89fde0983187674ce485f014 SHA512 9553ea619146d1a969a0344e41ab663e7dbf770ef81bdd2a21a9235d10c8d3ff04cc9e37548017f086eb2c7a5f9efb21d74505c67b375d8479fa8ef7aabb46fe
|
||||
DIST vscodium-1.86.2.24053-arm.tar.gz 111423199 BLAKE2B 43e99dd6a218abe6318fe80238e9d5cb5975d669070c9dce2e06b0946015052a53e2ce15e9352373712cabf76921ecb2f68ff7125b8d01afc867a0d7a2881f01 SHA512 519d898e4a1bcb591d18a767a0bb323e5a0e96917d75a0890b9f423f0b8e120bfd050636dd336d2f25155d01c2b383ec57e38e4bcb5027f03e923e6699960b39
|
||||
DIST vscodium-1.86.2.24053-arm64.tar.gz 122772646 BLAKE2B 82136e0ccad226c65aba5a5d1ee651d9a3a7f100826a1f8591ee3b141e9af34cb16853abc609328b9d8e48dbdd6f7d1b34b64f32f5f84b052416d22c9d45a088 SHA512 c8eadb52f2b67ffd624907e6e832a7549f38f1d0d72bb916554fbf78b3cff4e8844ecaedf350196e326edffdd98792266d7b90aea02cf7c9701b101045df442a
|
||||
DIST vscodium-1.86.2.24054-amd64.tar.gz 129068812 BLAKE2B 8a7c6413d7c66e85bcf4964f15025ddc7bd8557ed6be67ef761069fe9af48903381b242faf28e578fac6d83b280ca5ededb88215ba695d3bdd77c4c83f72bbe7 SHA512 b11bb780ca7f34107e46a9a6c946542b33847dc04a4230f08c1613d7bf8e5030b3b021b05ed6ba6eaa31467b6ef354a2f2a4026f2e7656a9d58844966bf145c7
|
||||
DIST vscodium-1.86.2.24054-arm.tar.gz 116108675 BLAKE2B f20cc6ff47f96ac3c9e05c87eb9897b747636d36f6bb3f2c65437214a4e12b4e235b4281d58b90afb442ba677db676fbe1d1b7b43389ac53ede8591d2861ed4b SHA512 ea0ecf611527a59a4cbc005880780fbb8098cabb1a40c5493e58a394ff437d3b7b430352f5d6fd871a2a237d4233742166fa2d8e59dbb6c1057fdf618cf3bdc7
|
||||
DIST vscodium-1.86.2.24054-arm64.tar.gz 127453628 BLAKE2B 43406e850658801e692a50bec39f1cb97658dc7546509b0c6162c711ad51b21f85ad8e5cfe183fc96dbdd84e2463951d2cfcf78ebd942ac4749d0f1eb221e7c3 SHA512 f264efa47de18f1571088336dbc8770caa2c91f45bf6697f26650b59f001fbdb77f8214376d54ed4249a71f64eda3dba4751cfecc9d2a2d1754022e20c544485
|
||||
|
||||
129
app-editors/vscodium/vscodium-1.86.2.24054.ebuild
Normal file
129
app-editors/vscodium/vscodium-1.86.2.24054.ebuild
Normal file
@@ -0,0 +1,129 @@
|
||||
# Copyright 1999-2024 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)
|
||||
"
|
||||
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"
|
||||
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/libcanberra[gtk3]
|
||||
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 -r "${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}/vscodium-url-handler.desktop" \
|
||||
> "${T}/vscodium-url-handler.desktop" || die
|
||||
|
||||
sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \
|
||||
"${FILESDIR}/vscodium.desktop" \
|
||||
> "${T}/vscodium.desktop" || die
|
||||
|
||||
domenu "${T}/vscodium.desktop"
|
||||
domenu "${T}/vscodium-url-handler.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.md"
|
||||
optfeature "desktop notifications" x11-libs/libnotify
|
||||
optfeature "keyring support inside vscode" "virtual/secret-service"
|
||||
}
|
||||
Reference in New Issue
Block a user