summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-04-05 16:39:23 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-04-05 16:39:23 +0300
commit176eae589bc174df2c78d16d21a92591682cf035 (patch)
tree74d428ad3b682200f9903760734e9773550b53bc /app-editors/vscodium
parentapp-office/lyx: add myself as a maintainer (diff)
downloadgentoo-176eae589bc174df2c78d16d21a92591682cf035.tar.gz
gentoo-176eae589bc174df2c78d16d21a92591682cf035.tar.bz2
gentoo-176eae589bc174df2c78d16d21a92591682cf035.zip
app-editors/vscodium: add 1.88.0.24096
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors/vscodium')
-rw-r--r--app-editors/vscodium/Manifest3
-rw-r--r--app-editors/vscodium/vscodium-1.88.0.24096.ebuild129
2 files changed, 132 insertions, 0 deletions
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 0d0839593aa4..727a54acb813 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -4,3 +4,6 @@ DIST vscodium-1.86.2.24054-arm64.tar.gz 127453628 BLAKE2B 43406e850658801e692a50
DIST vscodium-1.87.2.24072-amd64.tar.gz 129360253 BLAKE2B ba23577ac6bca179521e817980deece287774fe6124cd8795ac1332773991b17c53ec4ad459616c62e0eb28612e9489321ab350cc3b84659ebecef508c3d474b SHA512 ad1a069f8b27045b200f8816a310b91e03b9c8d6cee7f5983fe7498111dcc9a3f2ec542d40adf0e61421757553e0fc6c43386d294f09c1c321a9c3efa95eca6e
DIST vscodium-1.87.2.24072-arm.tar.gz 116213887 BLAKE2B 49700f4be28780e61d1d82f606a07f5053399ca045da04a9764c69c9cbac25e4fc9b6e4eadc73b107c01d6ee2133fd353dfc352c05e7bebbfc4224c72a0ad8e6 SHA512 f926a74a4c83b5686f71488cb9a97dcd425a68252425b45000219f5cd5c4bc614ef2497310031142cc5af9cfc4eadc82e63f546f2c8eae6e04f513b2a7ab7a8e
DIST vscodium-1.87.2.24072-arm64.tar.gz 127551847 BLAKE2B 7f8bcc64d094f7d88cb34abfa67530933a4e4452321a979a9c8b718fe728dfa0c5c67448e7f10c5bdb68b255521fa677b0fc0d8576b5281daf91ec38e2dcbb9a SHA512 8140c021fd2730b25428d7beb03db679c25bf0e8678a4641f9db55015faf79377c2c23b03121d51ea063162e4dc93872f92ac1d4e2dead36722d44e4a802790b
+DIST vscodium-1.88.0.24096-amd64.tar.gz 129277895 BLAKE2B 8f7b2315fd55595c0d9b1e8925ed057847b08a3bc872a46dd99798af4e3a8b13dc45b6acf603b82b08b2756d6a944b848d27347ebc2a818b9a8ceedb577d20cc SHA512 53627ff4715e85142ea5b021a38af254d279a15046e4153538043ec2bfb82dbd8a7490f7dda4ebc6eac56f54fb435cfeb3b7ddddf08539855a055d4cbed13da1
+DIST vscodium-1.88.0.24096-arm.tar.gz 118180248 BLAKE2B b9ab1f070541b56534c0568609428d24930bb3729e659677aaa48e11890ce91fa5c3ad487cc60927caf84fa90ff79e791181e7047cb6f8f2e55608cb929d4ad6 SHA512 eaa29c3793dae51cde6a5b9f1194fa58ec800e3eb68be2ff3178a05b78690d47b86884a8f8b155198ba8ec7bbd2fdc4d4e1d71875c2469c64189fad6c7fb53bb
+DIST vscodium-1.88.0.24096-arm64.tar.gz 128995233 BLAKE2B 0e566579e2fc11a017ca9e5d0fc21d9298b87ea5a6232bbb008d196bf943fcd4c06fe1308a0a181f6a5d497cb7e35c7ecc1901f76d73895bc572fe01c82edd84 SHA512 74f2f9504806d0d7cbb2dc4a51ef7e518b96e17e8d9f87fc569285493a2a3eb828dd15c56a773ca067590821ad27f6ecbe0ec89386cdd814ec5d6dbf524ccfe2
diff --git a/app-editors/vscodium/vscodium-1.88.0.24096.ebuild b/app-editors/vscodium/vscodium-1.88.0.24096.ebuild
new file mode 100644
index 000000000000..e22d9d5645b8
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.88.0.24096.ebuild
@@ -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 -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"
+}