summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-08 14:14:13 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-08 14:14:13 +0300
commit5fe0ed4ada867415246a295d20b8dda700b27464 (patch)
treec7b0ca7201067ddfea5cea621789201cd697373e /app-editors
parentdev-util/aruba: Stabilize 2.2.0 arm64, #932713 (diff)
downloadgentoo-5fe0ed4ada867415246a295d20b8dda700b27464.tar.gz
gentoo-5fe0ed4ada867415246a295d20b8dda700b27464.tar.bz2
gentoo-5fe0ed4ada867415246a295d20b8dda700b27464.zip
app-editors/vscodium: add 1.90.0.24158
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscodium/Manifest3
-rw-r--r--app-editors/vscodium/vscodium-1.90.0.24158.ebuild129
2 files changed, 132 insertions, 0 deletions
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
index 7751f3683788..f7c7ff4af816 100644
--- a/app-editors/vscodium/Manifest
+++ b/app-editors/vscodium/Manifest
@@ -4,3 +4,6 @@ DIST vscodium-1.89.0.24127-arm64.tar.gz 129311961 BLAKE2B 0669a35ca2b8e3e2295f11
DIST vscodium-1.89.1.24130-amd64.tar.gz 129589433 BLAKE2B 02e189604bf0648bf7c6ac6d4db48ed85214a4b1d704d5a0329cfbc31566756bead943534368052147c5131cf48ba8f485e7b62abcfe7cb479b64b869d78efc2 SHA512 0898504c6814d0d050377c54b4196a6a811c7763647863e8f13fa249166d18e5e62c627d78df3d1cafeb28fa83114e9b7c4aaab8209cc6df0451de5ae6f381f7
DIST vscodium-1.89.1.24130-arm.tar.gz 118486356 BLAKE2B 07095524231691876678b69c417fefba37ae360b853040f0b84d9271062e6ad1e5618ea1d5ac5fa075792e1b220906ba81754ceff50e5b2bc44767d27271e091 SHA512 4429d789da85961acc381c561f09bbb9d96ec02e5a4d614822e4db612ba9bdc1ecb9b2fac186bc900031c3d9fe73c754201a8a232434120953808af07dc1408e
DIST vscodium-1.89.1.24130-arm64.tar.gz 129314458 BLAKE2B 38e9d8ab765d726217a5b980f89d54d961d5a2d819b918a3354db789bd56e7c5b6c2ee04fa43fd73e234b4c5a13e8a37ce600d69352cba7c21ce76ce509e2bf9 SHA512 0b89ebfc53c6c7f8dea3af0299898b421e08701877ee0a739b72071a82f55d886e122ba63d3abbb1219b93a9af6853b1722cd42cd287c22379724b223f646227
+DIST vscodium-1.90.0.24158-amd64.tar.gz 130082590 BLAKE2B 01b622c62804dab86bf969650b62a1f84bb5bf95239577c10f284f61f7deaaae612bfee3d442813b4bf1340f2cc823c8f01ccf995fe6482400534a316db5a150 SHA512 821190abc3eb7e5d42ca5525aa445d8f2f4fb17810ba8155350bd3d2817d0f5c42e8e56cb7a2a69a89ca1555522b8b2c16a6b9eb8a83a092c8c96c482ec6226d
+DIST vscodium-1.90.0.24158-arm.tar.gz 118703662 BLAKE2B 525ec7c1cf0b0057fb90d4cd44505efd2c57a9197fece8dc7ccd987254dd25cae52942ae676580a12390788a6c59e2c590e6d44a7c7b68a3c2f6d9a24deb9f0f SHA512 c355bcbef3a6b00c4ba130de3493040cdedb948f17250830dc4806e3a48bc3f93be8da7e3aeddab343d8222788f7d034e62abfb3e0dc749a4123acc430dc018a
+DIST vscodium-1.90.0.24158-arm64.tar.gz 130110717 BLAKE2B d6af799591556ccd659a9a4af6851dd13c97fc61bcd1827ac5d8b5a0ad8d35d819e53eb6d8e89e4c2a3d405ecd05bdb734ae912c962488108ff0b4bc02147c10 SHA512 939d6dfed227f9e5742c816d0a9c281933ade964c903523c6f013733c9487916d7a849d2d732a3b72d4dee2698a4ecd9b4dadb62091981420809060b09c166d2
diff --git a/app-editors/vscodium/vscodium-1.90.0.24158.ebuild b/app-editors/vscodium/vscodium-1.90.0.24158.ebuild
new file mode 100644
index 000000000000..e22d9d5645b8
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.90.0.24158.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"
+}