From 9e4ed3a82f8c55c9e584b3ea186a1f5c2f1ab84b Mon Sep 17 00:00:00 2001
From: Wolfgang Müller
Date: Thu, 12 Oct 2023 15:59:39 +0200
Subject: app-editors/vscodium: new package, add 1.83.0.23277-r2
---
app-editors/vscodium/Manifest | 7 ++
.../files/vscodium-url-handler-wayland.desktop | 12 +++
.../vscodium/files/vscodium-url-handler.desktop | 12 +++
.../vscodium/files/vscodium-wayland.desktop | 18 ++++
app-editors/vscodium/files/vscodium.desktop | 18 ++++
app-editors/vscodium/metadata.xml | 14 +++
.../vscodium/vscodium-1.83.0.23277-r2.ebuild | 101 +++++++++++++++++++++
7 files changed, 182 insertions(+)
create mode 100644 app-editors/vscodium/Manifest
create mode 100644 app-editors/vscodium/files/vscodium-url-handler-wayland.desktop
create mode 100644 app-editors/vscodium/files/vscodium-url-handler.desktop
create mode 100644 app-editors/vscodium/files/vscodium-wayland.desktop
create mode 100644 app-editors/vscodium/files/vscodium.desktop
create mode 100644 app-editors/vscodium/metadata.xml
create mode 100644 app-editors/vscodium/vscodium-1.83.0.23277-r2.ebuild
diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
new file mode 100644
index 0000000..8384abe
--- /dev/null
+++ b/app-editors/vscodium/Manifest
@@ -0,0 +1,7 @@
+AUX vscodium-url-handler-wayland.desktop 383 BLAKE2B c3e281318290826ce9451fe517b52bd8dee6da01fcb62c57906496bb6f5b369c55571aeffdab020820029186c5ee8722c02ef611c487d81044717bb31519b512 SHA512 77347572def1aae0d643ca4166a9b4db9aa6f80e267ff93474ee3a773491e4f0ebc95a15d25ddd1d23e819a739c56a86dec2d612c566c10f56811c10ac4d41ac
+AUX vscodium-url-handler.desktop 315 BLAKE2B b514551e6256cb444f13bfda86a9e164ed926d8aedbfcb7de3a6b1c3d3c2e465c0ee158c74626814908a153c5f801434952865a708c89ffdf64bce24a83fcc20 SHA512 afcf89af009361b409330a223696013e1ee8973bc3b3068e778fb05c3355fed66063bd537a66685d6ad3578c2808532d4b9c5273a291c7d2f3a9c0b2f997f152
+AUX vscodium-wayland.desktop 609 BLAKE2B 1b25dc9e98b5a12a10f85001b9c5acc9325368a2310a7d1e2aad20e22ae07fb000aa495b694612032e999f431c8f8e47f60eb162d0c7487fcfef6e37249622d4 SHA512 1d371978a5780c8d37e6e1359ca029659055a8d80de0d672d6eb3f21b890db2b92e368fd244be7cf83ec30935271cb269f1b9aef1c7deaaae36c3d739221d8f2
+AUX vscodium.desktop 481 BLAKE2B 89f335edd1f7d0256f95eb96d335c2359d8fd984a29bdc3190218ea63ba9a19e64435eb50c7be818cf28243c8cdf9b385f8987f6917e52df565a4ca555a2a13b SHA512 234f79a5ea9b901b62fe0c094554de3b339a67e8f47ec4b3daa5c0653778b9f51d1ccd91e773b4ca27f27e30a5847d5a3172d0ed322ada4d47624028bd5d8c1b
+DIST vscodium-1.83.0.23277-amd64.tar.gz 122376313 BLAKE2B 98c36ce5d49e74397b96589bbe2993e213c584a4d71a01050b15cd78b1bd103af9ed743b7c383ee85d892623ddfbc1d082d26251b3a44bb462f2033fb4ddcd22 SHA512 baea03240a667689aba508a96a482877974e2cc1c7c1ab60b5e47867f21f69921113743d31dcbcdd158755123f59b0730d2454be3b86e8af2cccd734651f08a2
+EBUILD vscodium-1.83.0.23277-r2.ebuild 2232 BLAKE2B df53c1863593183817f866b1b66a6dc9723168f10b3fa19a2e16f4e9b89a581d675be18b960091223a5e1f48dbcaebf38ab9a87465828fdbc0fa3e2db625ef3d SHA512 15233ec2902063ed75270b3f769eeeb3c577e2dffdc2ced7c6433b795eaa0312ac70be8a02c3adec1804bc75a42edededee9250752b81296dffc22419d0b1311
+MISC metadata.xml 1009 BLAKE2B b6d55ed2217637eac68413eb685a6219a38f80e0b4698877a0bc4d88e65f42c4fcbbd2ea50e810aadbda1de65df85fd724ee1b2ad7ef29dbc3f871efcd7069bf SHA512 c3edf84c187732debc55b847c7e707df13f8dfeffca06312ada10c531ec37d83c137e28db2f288b1b8a61ac5851754b52ba66866048a3765c689bcdc4f85ff7a
diff --git a/app-editors/vscodium/files/vscodium-url-handler-wayland.desktop b/app-editors/vscodium/files/vscodium-url-handler-wayland.desktop
new file mode 100644
index 0000000..d853f3e
--- /dev/null
+++ b/app-editors/vscodium/files/vscodium-url-handler-wayland.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=VSCodium Wayland - URL Handler
+Comment=Editing evolved
+GenericName=Code Editor
+Exec=/usr/bin/vscodium --enable-features=UseOzonePlatform --ozone-platform=wayland --open-url %U
+Icon=vscodium
+Type=Application
+NoDisplay=true
+StartupNotify=true
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=x-scheme-handler/vscodium;
+Keywords=vscode;vscodium;code;codium;
diff --git a/app-editors/vscodium/files/vscodium-url-handler.desktop b/app-editors/vscodium/files/vscodium-url-handler.desktop
new file mode 100644
index 0000000..48c7d3d
--- /dev/null
+++ b/app-editors/vscodium/files/vscodium-url-handler.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=VSCodium - URL Handler
+Comment=Editing evolved
+GenericName=Code Editor
+Exec=/usr/bin/vscodium --open-url %U
+Icon=vscodium
+Type=Application
+NoDisplay=true
+StartupNotify=true
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=x-scheme-handler/vscodium;
+Keywords=vscode;vscodium;code;codium;
diff --git a/app-editors/vscodium/files/vscodium-wayland.desktop b/app-editors/vscodium/files/vscodium-wayland.desktop
new file mode 100644
index 0000000..7719bf1
--- /dev/null
+++ b/app-editors/vscodium/files/vscodium-wayland.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=VSCodium Wayland
+Comment=Editing evolved
+GenericName=Code Editor
+Exec=/usr/bin/vscodium --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch %F
+Icon=vscodium
+Type=Application
+StartupNotify=false
+StartupWMClass=VSCodium
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=text/plain;inode/directory;application/x-code-workspace;
+Actions=new-empty-window;
+Keywords=vscode;vscodium;code;codium;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/vscodium --enable-features=UseOzonePlatform --ozone-platform=wayland --new-window %F
+Icon=vscodium
diff --git a/app-editors/vscodium/files/vscodium.desktop b/app-editors/vscodium/files/vscodium.desktop
new file mode 100644
index 0000000..f3557c1
--- /dev/null
+++ b/app-editors/vscodium/files/vscodium.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Name=VSCodium
+Comment=Editing evolved
+GenericName=Code Editor
+Exec=/usr/bin/vscodium --unity-launch %F
+Icon=vscodium
+Type=Application
+StartupNotify=false
+StartupWMClass=VSCodium
+Categories=Utility;TextEditor;Development;IDE;
+MimeType=text/plain;inode/directory;application/x-code-workspace;
+Actions=new-empty-window;
+Keywords=vscode;vscodium;code;codium;
+
+[Desktop Action new-empty-window]
+Name=New Empty Window
+Exec=/usr/bin/vscodium --new-window %F
+Icon=vscodium
diff --git a/app-editors/vscodium/metadata.xml b/app-editors/vscodium/metadata.xml
new file mode 100644
index 0000000..84dcdb0
--- /dev/null
+++ b/app-editors/vscodium/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ wolf@oriole.systems
+
+
+ Microsoft’s vscode source code is open source (MIT-licensed), but the product available for download (Visual Studio Code) is licensed under the Microsoft-vscode license (a copy can be found in the licenses folder of your gentoo repository) and contains telemetry/tracking. The VSCodium project exists so that you don’t have to download+build from source. This project includes special build scripts that clone Microsoft’s vscode repo, run the build commands, and upload the resulting binaries for you to GitHub releases. These binaries are licensed under the MIT license. Telemetry is disabled.
+
+
+ VSCodium/vscodium
+ https://github.com/VSCodium/vscodium/issues
+
+
diff --git a/app-editors/vscodium/vscodium-1.83.0.23277-r2.ebuild b/app-editors/vscodium/vscodium-1.83.0.23277-r2.ebuild
new file mode 100644
index 0000000..38958cc
--- /dev/null
+++ b/app-editors/vscodium/vscodium-1.83.0.23277-r2.ebuild
@@ -0,0 +1,101 @@
+# 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