From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 06C031382C5 for ; Fri, 4 Jun 2021 07:53:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57380E0844; Fri, 4 Jun 2021 07:53:42 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24B48E0844 for ; Fri, 4 Jun 2021 07:53:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 853AC340E57 for ; Fri, 4 Jun 2021 07:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 08FF179B for ; Fri, 4 Jun 2021 07:53:38 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1622793210.086fd563321cd912cf817b191685bcc3581e2cde.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscodium/, app-editors/vscodium/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-editors/vscodium/Manifest app-editors/vscodium/files/vscodium-url-handler.desktop app-editors/vscodium/files/vscodium.desktop app-editors/vscodium/metadata.xml app-editors/vscodium/vscodium-1.56.2.ebuild X-VCS-Directories: app-editors/vscodium/ app-editors/vscodium/files/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 086fd563321cd912cf817b191685bcc3581e2cde X-VCS-Branch: master Date: Fri, 4 Jun 2021 07:53:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 875662d7-b0c9-431b-8a7f-83662895a468 X-Archives-Hash: 1c0585bdc5f6135a7a0bb795e3b04254 commit: 086fd563321cd912cf817b191685bcc3581e2cde Author: Adel KARA SLIMANE zegrapher com> AuthorDate: Wed May 19 12:54:48 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Fri Jun 4 07:53:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=086fd563 app-editors/vscodium: new package Closes: https://github.com/gentoo/gentoo/pull/21045 Signed-off-by: Adel KARA SLIMANE zegrapher.com> Signed-off-by: Joonas Niilola gentoo.org> app-editors/vscodium/Manifest | 3 + .../vscodium/files/vscodium-url-handler.desktop | 12 +++ app-editors/vscodium/files/vscodium.desktop | 18 ++++ app-editors/vscodium/metadata.xml | 19 +++++ app-editors/vscodium/vscodium-1.56.2.ebuild | 95 ++++++++++++++++++++++ 5 files changed, 147 insertions(+) diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest new file mode 100644 index 00000000000..d652392dafc --- /dev/null +++ b/app-editors/vscodium/Manifest @@ -0,0 +1,3 @@ +DIST vscodium-1.56.2-amd64.tar.gz 108032091 BLAKE2B e6d66885f79a8f29e9316cf759d6b562029a3da9c3fc6d14742adda0ae20e4be05b6c08f8c1698f3340cd0ca97836c49d3ef82bca9a27318d5f6d5e36555455d SHA512 831444221a3055fde829920ad6c0b8c007aa539b614918b20af0e676ecd31f341497f9c7fb8d8fe95f757bc360446cac93e00ee1a828183e0feb1eefad1e0c11 +DIST vscodium-1.56.2-arm.tar.gz 96683293 BLAKE2B bdc6b89ebfa9e1be765aef63f8a2bcdbf2074b64d70833447b3a3caf148c7887c672077827b7467a681219eef0101bdf82581f589586a263397d2cc9951a8c0c SHA512 023c59d4ae6590437c9425fa02f70cd957c125ea69cfa1c4fe8812f2b7521b747421efe89fd3e4bd95b54f0bdea177941f72467af5d8036d51426b8139a48fc2 +DIST vscodium-1.56.2-arm64.tar.gz 113358341 BLAKE2B f7f8c8589985edd11ba80b4fff9ab1174d436a2516eabc02cd6b3f5d03559295f3fe6772a16e6825d6a23953107b5b7537ab28cedc040a8b35a4b25182ee8d29 SHA512 f0aec2074e93bc26cfc615029bbc9ab360993f00a70272002982c058c7746824f6d97fffb34a5d6c16597b4ad8453730f28b04c11e4d0fd8ccea873490b260d5 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 00000000000..780fb6d5558 --- /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; diff --git a/app-editors/vscodium/files/vscodium.desktop b/app-editors/vscodium/files/vscodium.desktop new file mode 100644 index 00000000000..bea1b284d39 --- /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; + +[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 00000000000..facecf84a9f --- /dev/null +++ b/app-editors/vscodium/metadata.xml @@ -0,0 +1,19 @@ + + + + + adel.ks@zegrapher.com + Adel KARA SLIMANE + + + proxy-maint@gentoo.org + Proxy Maintainers + + + 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.56.2.ebuild b/app-editors/vscodium/vscodium-1.56.2.ebuild new file mode 100644 index 00000000000..e25a3967ed4 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.56.2.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop pax-utils xdg + +DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode" +HOMEPAGE="https://vscodium.com/" +SRC_URI=" + amd64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}-amd64.tar.gz ) + arm? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz -> ${P}-arm.tar.gz ) + arm64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz -> ${P}-arm64.tar.gz ) +" + +RESTRICT="mirror 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 ~arm ~arm64" +IUSE="" + +RDEPEND=" + app-accessibility/at-spi2-atk + app-crypt/libsecret[crypt] + dev-libs/nss + media-libs/alsa-lib + media-libs/libpng:0/16 + net-print/cups + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libnotify + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXScrnSaver + x11-libs/libXtst + x11-libs/pango +" + +QA_PREBUILT=" + /opt/vscodium/codium + /opt/vscodium/libEGL.so + /opt/vscodium/libffmpeg.so + /opt/vscodium/libGLESv2.so + /opt/vscodium/libvulkan.so* + /opt/vscodium/chrome-sandbox + /opt/vscodium/libvk_swiftshader.so + /opt/vscodium/swiftshader/libEGL.so + /opt/vscodium/swiftshader/libGLESv2.so + /opt/vscodium/resources/app/extensions/* + /opt/vscodium/resources/app/node_modules.asar.unpacked/* +" + +S="${WORKDIR}" + +src_install() { + # Cleanup + rm "${S}/resources/app/LICENSE.txt" || die + + # Install + pax-mark m codium + insinto "/opt/${PN}" + doins -r * + fperms +x /opt/${PN}/{,bin/}codium + fperms +x /opt/${PN}/chrome-sandbox + fperms -R +x /opt/${PN}/resources/app/out/vs/base/node + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg + dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium" + domenu "${FILESDIR}/vscodium.desktop" + domenu "${FILESDIR}/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" +}