Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/vscodium/
Date: Fri, 02 Sep 2022 15:18:07
Message-Id: 1662131827.7fccd4dfa8cbd67407e8b087b36ffd1cfac5c397.arthurzam@gentoo
1 commit: 7fccd4dfa8cbd67407e8b087b36ffd1cfac5c397
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 2 14:36:45 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 2 15:17:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fccd4df
7
8 app-editors/vscodium: add 1.71.0.22245
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 app-editors/vscodium/Manifest | 3 +
13 app-editors/vscodium/vscodium-1.71.0.22245.ebuild | 118 ++++++++++++++++++++++
14 2 files changed, 121 insertions(+)
15
16 diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
17 index fe01b04b6043..c71d035d082c 100644
18 --- a/app-editors/vscodium/Manifest
19 +++ b/app-editors/vscodium/Manifest
20 @@ -4,3 +4,6 @@ DIST vscodium-1.70.1.22229-arm64.tar.gz 117342125 BLAKE2B c924b7b9af67613d61ae7a
21 DIST vscodium-1.70.2.22230-amd64.tar.gz 119462089 BLAKE2B 85bbf6638cea72e66b795e4fe33b8fa2815bc05d1feb98d549e6999b09fe4b0f4b1718423b35714e35724c4645a4136df529d7e43a8be83c810ac156b63a52fb SHA512 0830645e671bb9ebdef7c7abba5c3cdf934468621bfe2537ccd10fba64c1278fde381373fe0fc99484dfd9c382b72298695d5d89702414705c29ed270a41a3f4
22 DIST vscodium-1.70.2.22230-arm.tar.gz 101302938 BLAKE2B c062a33ed58b3d322266ae0ce9825c3aa126f5f8feff4e9c53dc5fc5fcb94b43ec61c0b9cd814f222c74426740734b7570e88c7d54bc11e9bcfd12b0cc761186 SHA512 dea101d8ef45912ee5fd39cb57e90dba9079bc466ddcd8828fcf91ac1d2f792e158d72592a3a657a328e2f4130bfd80e5b084c5457ba32221adee1045f07fdc9
23 DIST vscodium-1.70.2.22230-arm64.tar.gz 117323455 BLAKE2B 9e2706c5e99f2ed0343ac8b036d519f8adef56c5cd9f8bd219a80cd6d20c49b6d62a4e31d283329daa6147462d6ef526a9f86faaaf017f6a903e7a7a9b392256 SHA512 ed766d2e15e70ae639bb9f42d4877a6f2c0f4984f1a8693c895452b4043dd00a617f5b3739941bd3142332a677cb569383156c7a20d35a072e3177eb5a3457a0
24 +DIST vscodium-1.71.0.22245-amd64.tar.gz 119418373 BLAKE2B aecb45c00e67d0b6a62560797f02c34f521660fb67526cb77943113c99d8b39b2ac97b12d1b9b8fad85654b4dfa59fb9a5e28f13ddf2deae71e18e0fcfcf92bd SHA512 a284a17e56a09e29b4a1ad6aec3e4e68bc6d6a8d92f0d6744bdc2f708c0acbe4393c9724c4c2eb6256c7198518d48cd0fde3237424bec020887f1b0e28742276
25 +DIST vscodium-1.71.0.22245-arm.tar.gz 101458849 BLAKE2B 008b95419df2e1e02876b7b7c8bfe567b3291eccca7de418ab899716163a68b536febd6329119f4532017e20c274d479e788a3d3d5bb8d1b3af92fc96afe42f0 SHA512 0700d85e8db1733d3d80ddeaca68132bdeccd7dfc89cda923103739db9d00305087a6544639d4ed802c75eeb2887a998f1b4154d7d0be4db5d11da40e34325be
26 +DIST vscodium-1.71.0.22245-arm64.tar.gz 112480037 BLAKE2B 730fe3e6564c7c72ddd9bbcc8e13f2ceb298eeb598267d38858660c5e99a0e490916b335096e59bda4cea278d19b00b54cd91f32e7933a7853ee32a6de631361 SHA512 b545b77e7e95ea5b7022310ec8fa50ed290aa7002f0f6c925a10f28eba07cf20ae18ada3f7b37f6aa1ebcc4a2eea76246ef4c511c12b8fa952f3ecadda92ff8f
27
28 diff --git a/app-editors/vscodium/vscodium-1.71.0.22245.ebuild b/app-editors/vscodium/vscodium-1.71.0.22245.ebuild
29 new file mode 100644
30 index 000000000000..dc168f81f50b
31 --- /dev/null
32 +++ b/app-editors/vscodium/vscodium-1.71.0.22245.ebuild
33 @@ -0,0 +1,118 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit desktop pax-utils xdg optfeature
40 +
41 +DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
42 +HOMEPAGE="https://vscodium.com/"
43 +SRC_URI="
44 + amd64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}-amd64.tar.gz )
45 + arm? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz -> ${P}-arm.tar.gz )
46 + arm64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz -> ${P}-arm64.tar.gz )
47 +"
48 +
49 +RESTRICT="strip bindist"
50 +
51 +LICENSE="
52 + Apache-2.0
53 + BSD
54 + BSD-1
55 + BSD-2
56 + BSD-4
57 + CC-BY-4.0
58 + ISC
59 + LGPL-2.1+
60 + MIT
61 + MPL-2.0
62 + openssl
63 + PYTHON
64 + TextMate-bundle
65 + Unlicense
66 + UoI-NCSA
67 + W3C
68 +"
69 +SLOT="0"
70 +KEYWORDS="-* ~amd64 ~arm ~arm64"
71 +IUSE=""
72 +
73 +RDEPEND="
74 + app-accessibility/at-spi2-atk:2
75 + app-accessibility/at-spi2-core:2
76 + app-crypt/libsecret[crypt]
77 + dev-libs/atk
78 + dev-libs/expat
79 + dev-libs/glib:2
80 + dev-libs/nspr
81 + dev-libs/nss
82 + media-libs/alsa-lib
83 + media-libs/mesa
84 + sys-apps/util-linux
85 + sys-apps/dbus
86 + x11-libs/cairo
87 + x11-libs/gdk-pixbuf:2
88 + x11-libs/gtk+:3
89 + x11-libs/libdrm
90 + x11-libs/libX11
91 + x11-libs/libxcb
92 + x11-libs/libXcomposite
93 + x11-libs/libXdamage
94 + x11-libs/libXext
95 + x11-libs/libXfixes
96 + x11-libs/libxkbcommon
97 + x11-libs/libxkbfile
98 + x11-libs/libXrandr
99 + x11-libs/libxshmfence
100 + x11-libs/pango
101 +"
102 +
103 +QA_PREBUILT="
104 + /opt/vscodium/chrome_crashpad_handler
105 + /opt/vscodium/chrome-sandbox
106 + /opt/vscodium/codium
107 + /opt/vscodium/libEGL.so
108 + /opt/vscodium/libffmpeg.so
109 + /opt/vscodium/libGLESv2.so
110 + /opt/vscodium/libvk_swiftshader.so
111 + /opt/vscodium/libvulkan.so*
112 + /opt/vscodium/resources/app/extensions/*
113 + /opt/vscodium/resources/app/node_modules.asar.unpacked/*
114 + /opt/vscodium/swiftshader/libEGL.so
115 + /opt/vscodium/swiftshader/libGLESv2.so
116 +"
117 +
118 +S="${WORKDIR}"
119 +
120 +src_install() {
121 + # Cleanup
122 + rm "${S}/resources/app/LICENSE.txt" || die
123 +
124 + # Disable update server
125 + sed -i "/updateUrl/d" "${S}"/resources/app/product.json || die
126 +
127 + # Install
128 + pax-mark m codium
129 + insinto "/opt/${PN}"
130 + doins -r *
131 + fperms +x /opt/${PN}/{,bin/}codium
132 + fperms +x /opt/${PN}/chrome_crashpad_handler
133 + fperms 4711 /opt/${PN}/chrome-sandbox
134 + fperms 755 /opt/${PN}/resources/app/extensions/git/dist/{askpass,git-editor}{,-empty}.sh
135 + fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
136 + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
137 + dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
138 + dosym "../../opt/${PN}/bin/codium" "usr/bin/codium"
139 + domenu "${FILESDIR}/vscodium.desktop"
140 + domenu "${FILESDIR}/vscodium-url-handler.desktop"
141 + domenu "${FILESDIR}/vscodium-wayland.desktop"
142 + domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
143 + newicon "resources/app/resources/linux/code.png" "vscodium.png"
144 +}
145 +
146 +pkg_postinst() {
147 + xdg_pkg_postinst
148 + elog "When compared to the regular VSCode, VSCodium has a few quirks"
149 + elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
150 + optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
151 +}