forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-editors/vscodium: add 1.91.1.24193
Signed-off-by: Arthur Zamarin <[email protected]>
- Loading branch information
Showing
2 changed files
with
131 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
DIST vscodium-1.91.0.24190-amd64.tar.gz 128378291 BLAKE2B 3e52dc94b7834aec239221a41fec6e66670f396e6d2324a8af1018fbca1fe0790bf001a5c1bf0cb4b5dc0bb86800a1c4e99d12006db811522da4da2728e53875 SHA512 13dce86fb52e19911b1f21725a1043e0d17e51eff10008ce046ab0286ef360704d5b5b7bab45c7058f34c5f4518558d280d7b984be04d58908ffea3712c3f330 | ||
DIST vscodium-1.91.0.24190-arm.tar.gz 116983664 BLAKE2B 97c9e82eb940d75561d8ef340eda0b3866165b01c1ef27ec4a83e735de38d92d345781efb1a5dad702d1a9424b1e9691b6f0ca1f07c89ad922cecde3b8edb7c4 SHA512 9509ad674c6d31cb4519de4e759a68ca03aee64575c462f56db9f3afaced3168857f9ae12385d25b9f5ededde720b0d585b63fefd0ea9ab3e0c8ab79bb17dd9d | ||
DIST vscodium-1.91.0.24190-arm64.tar.gz 128404095 BLAKE2B c60ced0c7f4d9d7bc38eaaf296eab2bfc0dea7ae4328f69ca6d1ec7e09076c5386e7ec070356ba6cad29b9997d6b8ec2bf50c394ad40ec4e7fd878ef15c5fca2 SHA512 3ac808b0da65ac5f6f85889d12d6f2d00c4e9a71286e2c37d7db11426c0fc99d03a3eca38803d94bca51350da95420643c2e61bc0ad1585e76787e9e7ba270b3 | ||
DIST vscodium-1.91.1.24193-amd64.tar.gz 128383899 BLAKE2B d51c4c502540107f196a6e89b03a4b4602b4b79ace646828e11abe3387d1f188d3dad27f4f47b8a08200b1d993c494ae5c36aadc86fb30da30f01c137622b417 SHA512 8d3d9497076cea4ed26bb111ce6d19eb542e3f5a4dc458493781077f0249fac7bca91015de3b3b6150a0992e41243a2d93ea1b4f628895c787e2abd1136f68bd | ||
DIST vscodium-1.91.1.24193-arm.tar.gz 116984757 BLAKE2B 059eb90563300015d65c9cdb4795bbef68d549fac1d507178f7f7fdfd33131a6f9af39e881d8f2090534d6289c11139b4478a9fb3dbc850f399debfb851b842b SHA512 f49a23877279192707620c08091c79e7a7025882e54df9187ac460465d13b2727ba2bf5869a3a679451e6150d0df3fb35679c7184734332fefb26008f11b3d87 | ||
DIST vscodium-1.91.1.24193-arm64.tar.gz 128400491 BLAKE2B 652d79c401d675fa1f82bf12f23729bb5ec3e3420752e5e57c0aea14fd9651d674f4b93013ed64ea9a4baaf61ab5b4016afc4f8ca8222d8ae5d80f6bbd80a397 SHA512 1143c709a649c635a6b9231c7047a2204e72b442c105a764c0baff0bbd2d4e5d1ebf251f83f930f9a01c60112f399e135cb21df71ba8e627a8e0d2694b7b890b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
# 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/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}/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" | ||
} |