From 7dbf5a8aa3c507a405528d087c503792a14da1bf Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Mon, 15 Jan 2024 13:09:18 +0100 Subject: app-editors/vscodium: Sync with upstream ebuild --- app-editors/vscodium/Manifest | 2 +- .../vscodium/vscodium-1.85.1.23348-r2.ebuild | 116 +++++++++++++++++++++ app-editors/vscodium/vscodium-1.85.1.23348.ebuild | 101 ------------------ 3 files changed, 117 insertions(+), 102 deletions(-) create mode 100644 app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild delete mode 100644 app-editors/vscodium/vscodium-1.85.1.23348.ebuild (limited to 'app-editors/vscodium') diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index b59ab62..e254a2d 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -3,5 +3,5 @@ AUX vscodium-url-handler.desktop 315 BLAKE2B b514551e6256cb444f13bfda86a9e164ed9 AUX vscodium-wayland.desktop 609 BLAKE2B 1b25dc9e98b5a12a10f85001b9c5acc9325368a2310a7d1e2aad20e22ae07fb000aa495b694612032e999f431c8f8e47f60eb162d0c7487fcfef6e37249622d4 SHA512 1d371978a5780c8d37e6e1359ca029659055a8d80de0d672d6eb3f21b890db2b92e368fd244be7cf83ec30935271cb269f1b9aef1c7deaaae36c3d739221d8f2 AUX vscodium.desktop 481 BLAKE2B 89f335edd1f7d0256f95eb96d335c2359d8fd984a29bdc3190218ea63ba9a19e64435eb50c7be818cf28243c8cdf9b385f8987f6917e52df565a4ca555a2a13b SHA512 234f79a5ea9b901b62fe0c094554de3b339a67e8f47ec4b3daa5c0653778b9f51d1ccd91e773b4ca27f27e30a5847d5a3172d0ed322ada4d47624028bd5d8c1b DIST vscodium-1.85.1.23348-amd64.tar.gz 121836227 BLAKE2B beded9bfcf6ee03d58275c522495d43773676451a183c1bc6f5e8e3d3ebaba1ea2ec43638cb03e59cf261fb77eaddefe4c01bd2288f225b3c371a13045a8563a SHA512 d29a2f3f7460d95b15036b82aace1ab9c130bb48650f7be3074a833470ed15300b6891fae20af29b1c02e853eea875194114dd93504bb7ea50184faac836cffd -EBUILD vscodium-1.85.1.23348.ebuild 2232 BLAKE2B df53c1863593183817f866b1b66a6dc9723168f10b3fa19a2e16f4e9b89a581d675be18b960091223a5e1f48dbcaebf38ab9a87465828fdbc0fa3e2db625ef3d SHA512 15233ec2902063ed75270b3f769eeeb3c577e2dffdc2ced7c6433b795eaa0312ac70be8a02c3adec1804bc75a42edededee9250752b81296dffc22419d0b1311 +EBUILD vscodium-1.85.1.23348-r2.ebuild 2583 BLAKE2B 159db20e29b97139c91815c61a8d1cef38358a64e37791dde190c750093ea874ac15c552f1cf860b0f7424f199b055c24356b019eefb7a3028295f6c08c21cc6 SHA512 ef14119497f469b1cca718da06f6a2aa6e61cf73360af0b5bfbfae7024cbc113a4ae312f617cb313af847f8ff34de088f6d908222c4ebe1c813c807bc50af1a6 MISC metadata.xml 1009 BLAKE2B b6d55ed2217637eac68413eb685a6219a38f80e0b4698877a0bc4d88e65f42c4fcbbd2ea50e810aadbda1de65df85fd724ee1b2ad7ef29dbc3f871efcd7069bf SHA512 c3edf84c187732debc55b847c7e707df13f8dfeffca06312ada10c531ec37d83c137e28db2f288b1b8a61ac5851754b52ba66866048a3765c689bcdc4f85ff7a diff --git a/app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild b/app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild new file mode 100644 index 0000000..3911101 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.85.1.23348-r2.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2023 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 +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)" +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" +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 + 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 + rm "${S}/resources/app/LICENSE.txt" || die + rm -r "${S}/resources/app/node_modules.asar.unpacked/kerberos" || 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 + 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 "keyring support inside vscode" "virtual/secret-service" +} diff --git a/app-editors/vscodium/vscodium-1.85.1.23348.ebuild b/app-editors/vscodium/vscodium-1.85.1.23348.ebuild deleted file mode 100644 index 38958cc..0000000 --- a/app-editors/vscodium/vscodium-1.85.1.23348.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2023 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 -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)" -S="${WORKDIR}" - -RESTRICT="strip bindist" - -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" - -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 - 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 - rm "${S}/resources/app/LICENSE.txt" || die - rm -r "${S}/resources/app/node_modules.asar.unpacked/kerberos" || 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" - domenu "${FILESDIR}/vscodium.desktop" - domenu "${FILESDIR}/vscodium-url-handler.desktop" - domenu "${FILESDIR}/vscodium-wayland.desktop" - domenu "${FILESDIR}/vscodium-url-handler-wayland.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 "keyring support inside vscode" "virtual/secret-service" -} -- cgit v1.2.3-2-gb3c3