aboutsummaryrefslogtreecommitdiffstats
path: root/app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild
diff options
context:
space:
mode:
authorWolfgang Müller2024-10-07 08:53:40 +0200
committerWolfgang Müller2024-10-07 08:53:40 +0200
commit801c53f3a4d57b67b5d4d4eaa042c1b263b2377a (patch)
tree759a6fde6e12992ad33edd208ce09a56d91a2ff8 /app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild
parent10f2a81d5cdef3a3fc77a2cbb39545e732a5c5e6 (diff)
downloadpramantha-801c53f3a4d57b67b5d4d4eaa042c1b263b2377a.tar.gz
app-editors/vscodium: add 1.93.1.24256, drop 1.92.2.24228-r1
Diffstat (limited to 'app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild')
-rw-r--r--app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild119
1 files changed, 0 insertions, 119 deletions
diff --git a/app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild b/app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild
deleted file mode 100644
index 9f4deaf..0000000
--- a/app-editors/vscodium/vscodium-1.92.2.24228-r1.ebuild
+++ /dev/null
@@ -1,119 +0,0 @@
-# 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="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
- sys-libs/zlib
- 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/pango
- x11-misc/xdg-utils
-"
-
-QA_PREBUILT="*"
-
-src_install() {
- # Cleanup license file - it exists only in amd64 tarball
- rm -f "${S}/resources/app/LICENSE.txt" || die
- rm -r "${S}/resources/app/node_modules.asar.unpacked/kerberos" || die
-
- # Fix wrong desktopName, https://github.com/VSCodium/vscodium/issues/1901 (not flatpak-specific)
- sed -i "s|codium-url-handler\.desktop|vscodium.desktop|g" "${S}/resources/app/package.json" || die
-
- # 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
-
- 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/index.md"
- optfeature "keyring support inside vscode" "virtual/secret-service"
-}