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: Wed, 15 Mar 2023 18:34:07
Message-Id: 1678905234.eb545ac50ef3ba874828b922567b37cfdc696815.arthurzam@gentoo
1 commit: eb545ac50ef3ba874828b922567b37cfdc696815
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 18:32:27 2023 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 15 18:33:54 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb545ac5
7
8 app-editors/vscodium: add 1.76.2.23074
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 app-editors/vscodium/Manifest | 3 +
13 app-editors/vscodium/vscodium-1.76.2.23074.ebuild | 119 ++++++++++++++++++++++
14 2 files changed, 122 insertions(+)
15
16 diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
17 index 3522b6fc9b93..f4d81ec54985 100644
18 --- a/app-editors/vscodium/Manifest
19 +++ b/app-editors/vscodium/Manifest
20 @@ -4,3 +4,6 @@ DIST vscodium-1.75.1.23040-arm64.tar.gz 114920913 BLAKE2B 9758ce3c71621eeb9d4975
21 DIST vscodium-1.76.1.23069-amd64.tar.gz 120798858 BLAKE2B d499b75a5c24e9aa68a5fc358bcb98fb67a67b2383cfebe0b9ae4170876fd675cde66d855f581f6cd5b4c745a03a15e345af7532510d640b4ac65b0af2413906 SHA512 a2e37eba3ec70e35f344c2cb552cd75c5d5e67ec9159ac48709d631e5324d19e9cab08f69ffc8ae1fa782aad515be6af661464dfa72ea1f18da752d1d0b48127
22 DIST vscodium-1.76.1.23069-arm.tar.gz 102842431 BLAKE2B 9ede508310c87948a67c8f07f4f15f4b2e2466c3f659c1a291cb20a76a784964d7174a1003b10523779c75eb0850e2e272aa7e3a02497937136f32c138b8ebd1 SHA512 f5b99f1bd9338c69c69b9643a5c5e6ade5a3df237ac042a9fc7fdbba402244516e54ab636235a1867c6594a52a33b4af32622e70511491caac7d014b42c8e51d
23 DIST vscodium-1.76.1.23069-arm64.tar.gz 113874748 BLAKE2B 8dd6d97571dd084ffa40662ce6f3788cb7f09bdc8fefdce15d2987f3819ffdf42762e4b2106b71c3fc4e02943be9c62ab12355a8e30ad405848cdc7b115780cf SHA512 92ba83d125f8d28ccbf06f3dd7219c08ab1d40630ae32f0620aee731340d957cf79b7e5c4068745d77d1d425e9ff64ec0cc859016882edc93cd553fd59fc9983
24 +DIST vscodium-1.76.2.23074-amd64.tar.gz 120804173 BLAKE2B 9f730a8cc1130c076d12317cd0038e38b9a7529d3a1947cbf24958ccc2d5ff4ef0a85d4561645777888ca9514c7403bd86c858ac858c8568bfe6597c588adc7b SHA512 3abcdb1c0f189920b32accc892c2e88695b87448f052896f15472874576ae432a829cdf641df6680c27c3e1846c149cecbdc846473f166f98003c81d599486a1
25 +DIST vscodium-1.76.2.23074-arm.tar.gz 102835702 BLAKE2B 6ca9ff6353b7396d8d2d906a2415cf0f14e9f0a94bcc5607479c38436963e76ac55ebca8a8983bc36003834f4237006f03f7c49fc49e5da82755322cd9457b5e SHA512 1b05dc5741c5381060492f90583bfa56120562489b814dac9f607589deef15c43dba3681a66167c5506adbfc802fe893155d77b5454040ae31c05f9b88a27e2e
26 +DIST vscodium-1.76.2.23074-arm64.tar.gz 113874910 BLAKE2B bb517ac6b7d41a392fec6722b895c0035ee146497f6b7ca9a52118081a9d0647a48e3e10fe48cab7a2094db70e664af2a7282587a466216e91156f23f7c1119f SHA512 80f8ed673bbe52838da20a0d5077aac060e8ba334609e8a5088fb30c88bf9813b7b91316b9eb5662587a4c4ea038ac0645ea4104150f78ce3df3a43e1ad845bb
27
28 diff --git a/app-editors/vscodium/vscodium-1.76.2.23074.ebuild b/app-editors/vscodium/vscodium-1.76.2.23074.ebuild
29 new file mode 100644
30 index 000000000000..5c5cdb4f3682
31 --- /dev/null
32 +++ b/app-editors/vscodium/vscodium-1.76.2.23074.ebuild
33 @@ -0,0 +1,119 @@
34 +# Copyright 1999-2023 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-core-2.46.0:2
75 + app-crypt/libsecret[crypt]
76 + dev-libs/expat
77 + dev-libs/glib:2
78 + dev-libs/nspr
79 + dev-libs/nss
80 + media-libs/alsa-lib
81 + media-libs/mesa
82 + net-print/cups
83 + sys-apps/util-linux
84 + sys-apps/dbus
85 + x11-libs/cairo
86 + x11-libs/gdk-pixbuf:2
87 + x11-libs/gtk+:3
88 + x11-libs/libdrm
89 + x11-libs/libX11
90 + x11-libs/libxcb
91 + x11-libs/libXcomposite
92 + x11-libs/libXdamage
93 + x11-libs/libXext
94 + x11-libs/libXfixes
95 + x11-libs/libxkbcommon
96 + x11-libs/libxkbfile
97 + x11-libs/libXrandr
98 + x11-libs/libxshmfence
99 + x11-libs/pango
100 +"
101 +
102 +QA_PREBUILT="
103 + /opt/vscode/bin/code-tunnel
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,ssh-askpass}{,-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 + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/node-pty/build/Release/spawn-helper
138 + dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
139 + dosym "../../opt/${PN}/bin/codium" "usr/bin/codium"
140 + domenu "${FILESDIR}/vscodium.desktop"
141 + domenu "${FILESDIR}/vscodium-url-handler.desktop"
142 + domenu "${FILESDIR}/vscodium-wayland.desktop"
143 + domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
144 + newicon "resources/app/resources/linux/code.png" "vscodium.png"
145 +}
146 +
147 +pkg_postinst() {
148 + xdg_pkg_postinst
149 + elog "When compared to the regular VSCode, VSCodium has a few quirks"
150 + elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
151 + optfeature "keyring support inside vscode" "gnome-base/gnome-keyring"
152 +}