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: Sun, 08 May 2022 18:35:44
Message-Id: 1652034934.7cf93254fb80bbfb2c81446a0637422f5f0061ae.arthurzam@gentoo
1 commit: 7cf93254fb80bbfb2c81446a0637422f5f0061ae
2 Author: Adel KARA SLIMANE <adel.ks <AT> zegrapher <DOT> com>
3 AuthorDate: Sat May 7 19:57:37 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Sun May 8 18:35:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cf93254
7
8 app-editors/vscodium: version bump to 1.67.0
9
10 The wlroots issue related to Electron is fixed in this release
11 Closes: https://bugs.gentoo.org/834082
12
13 Drop arm version as upstream has issues bundling it for now
14 See https://github.com/VSCodium/vscodium/issues/1072
15
16 Signed-off-by: Adel KARA SLIMANE <adel.ks <AT> zegrapher.com>
17 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
18
19 app-editors/vscodium/Manifest | 2 +
20 app-editors/vscodium/vscodium-1.67.0.ebuild | 114 ++++++++++++++++++++++++++++
21 2 files changed, 116 insertions(+)
22
23 diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest
24 index 30eb650483c1..2001117780fe 100644
25 --- a/app-editors/vscodium/Manifest
26 +++ b/app-editors/vscodium/Manifest
27 @@ -7,3 +7,5 @@ DIST vscodium-1.65.2-arm64.tar.gz 108364942 BLAKE2B 05fe48a28f9d97487190725e52ef
28 DIST vscodium-1.66.2-amd64.tar.gz 115794879 BLAKE2B e398593547aa8814894365a2205f453e359dc75c8c8929ac783ecef5b30c8911cb426e41abda982485741fab42582f8245ab28f7534573496ea535886e5ac299 SHA512 6e6780cd5a16195dcbbd20806180e5bbba902edf37f733140c7959d95dbc4a8b71816959b31fa8b8eefdff50877d2678fb6d86fa5d111c6c6fbfa1486f4d1d8f
29 DIST vscodium-1.66.2-arm.tar.gz 97607835 BLAKE2B 48106774775c021cfaa8beb4dc3762536023edf774a27627c9fb49d43b7857b5ffd8923e4286b5c256daa1bb8437a1ede25bf79cd25f859866635722f29d32f1 SHA512 d82975b69cc89ea320e50b76d3b01434efaa6d090ce97b6d4b87f345ef39b854872e80899b8dd921b7054a926fd7446b341666779db2e9afcdfb2c3a11f833ff
30 DIST vscodium-1.66.2-arm64.tar.gz 113498556 BLAKE2B 3da540ec37cc73559f18d8dc975611a75c84a0d966224e36dc3182bc8f4fbd7a3628e1b789bf1480d861edc28bf7f29e6aa25f266848fd329c672d9f43d32887 SHA512 73adc6f1452738e3063abe16e09ceffc9c6a48d8b6f432df86bb51ce9cb8bd9b5bc134de4c5bca326b7af4a519191cefeb2a9138da2e5e09c09218d342eafe09
31 +DIST vscodium-1.67.0-amd64.tar.gz 115824232 BLAKE2B 6b32c329c83cf8acaf54cbc415789b595f2c9a4a778a91b29a995f1f065dad0e3167fbac4261ec45391465abce69800c2c8fe284ffc0bed138b7eb93e6cf0be5 SHA512 ade93db0ac0329f25fdf350b25631627a9399bb80c7cac72e3dd23af5ab988aa069a37e33dba91782c76b3852fdf1a2fd33d1b520e2a2905d8137ed280d1e7e2
32 +DIST vscodium-1.67.0-arm64.tar.gz 113531704 BLAKE2B 1fd734be914f7aeb177095ae8e5adce1ca00c5a8655e0b741e24c0a1168821c68ab3a48135a3980e515b7c646adcec098f5ea3ba5b549c2e43d99b99f8f20961 SHA512 ac6e56f87154ba92dc6b593b98a438c1d80b375344ee12426074e25e0af01ccdb635d55e876d8427e2a153f6e2c921b5d8ca4d1601395a05dd65914bfeaba59f
33
34 diff --git a/app-editors/vscodium/vscodium-1.67.0.ebuild b/app-editors/vscodium/vscodium-1.67.0.ebuild
35 new file mode 100644
36 index 000000000000..0c1ad7786d63
37 --- /dev/null
38 +++ b/app-editors/vscodium/vscodium-1.67.0.ebuild
39 @@ -0,0 +1,114 @@
40 +# Copyright 1999-2022 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=8
44 +
45 +inherit desktop pax-utils xdg
46 +
47 +DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode"
48 +HOMEPAGE="https://vscodium.com/"
49 +SRC_URI="
50 + amd64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}-amd64.tar.gz )
51 + arm64? ( https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz -> ${P}-arm64.tar.gz )
52 +"
53 +
54 +RESTRICT="mirror strip bindist"
55 +
56 +LICENSE="
57 + Apache-2.0
58 + BSD
59 + BSD-1
60 + BSD-2
61 + BSD-4
62 + CC-BY-4.0
63 + ISC
64 + LGPL-2.1+
65 + MIT
66 + MPL-2.0
67 + openssl
68 + PYTHON
69 + TextMate-bundle
70 + Unlicense
71 + UoI-NCSA
72 + W3C
73 +"
74 +SLOT="0"
75 +KEYWORDS="-* ~amd64 ~arm64"
76 +IUSE=""
77 +
78 +RDEPEND="
79 + app-accessibility/at-spi2-atk:2
80 + app-accessibility/at-spi2-core:2
81 + app-crypt/libsecret[crypt]
82 + dev-libs/atk
83 + dev-libs/expat
84 + dev-libs/glib:2
85 + dev-libs/nspr
86 + dev-libs/nss
87 + media-libs/alsa-lib
88 + media-libs/mesa
89 + net-print/cups
90 + sys-apps/dbus
91 + x11-libs/cairo
92 + x11-libs/gdk-pixbuf:2
93 + x11-libs/gtk+:3
94 + x11-libs/libdrm
95 + x11-libs/libX11
96 + x11-libs/libxcb
97 + x11-libs/libXcomposite
98 + x11-libs/libXdamage
99 + x11-libs/libXext
100 + x11-libs/libXfixes
101 + x11-libs/libxkbcommon
102 + x11-libs/libxkbfile
103 + x11-libs/libXrandr
104 + x11-libs/libxshmfence
105 + x11-libs/pango
106 +"
107 +
108 +QA_PREBUILT="
109 + /opt/vscodium/chrome_crashpad_handler
110 + /opt/vscodium/chrome-sandbox
111 + /opt/vscodium/codium
112 + /opt/vscodium/libEGL.so
113 + /opt/vscodium/libffmpeg.so
114 + /opt/vscodium/libGLESv2.so
115 + /opt/vscodium/libvk_swiftshader.so
116 + /opt/vscodium/libvulkan.so*
117 + /opt/vscodium/resources/app/extensions/*
118 + /opt/vscodium/resources/app/node_modules.asar.unpacked/*
119 + /opt/vscodium/swiftshader/libEGL.so
120 + /opt/vscodium/swiftshader/libGLESv2.so
121 +"
122 +
123 +S="${WORKDIR}"
124 +
125 +src_install() {
126 + # Cleanup
127 + rm "${S}/resources/app/LICENSE.txt" || die
128 +
129 + # Install
130 + pax-mark m codium
131 + insinto "/opt/${PN}"
132 + doins -r *
133 + fperms +x /opt/${PN}/{,bin/}codium
134 + fperms +x /opt/${PN}/chrome_crashpad_handler
135 + fperms 4711 /opt/${PN}/chrome-sandbox
136 + fperms 755 /opt/${PN}/resources/app/extensions/git/dist/askpass.sh
137 + fperms 755 /opt/${PN}/resources/app/extensions/git/dist/askpass-empty.sh
138 + fperms -R +x /opt/${PN}/resources/app/out/vs/base/node
139 + fperms +x /opt/${PN}/resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg
140 + dosym "../../opt/${PN}/bin/codium" "usr/bin/vscodium"
141 + dosym "../../opt/${PN}/bin/codium" "usr/bin/codium"
142 + domenu "${FILESDIR}/vscodium.desktop"
143 + domenu "${FILESDIR}/vscodium-url-handler.desktop"
144 + domenu "${FILESDIR}/vscodium-wayland.desktop"
145 + domenu "${FILESDIR}/vscodium-url-handler-wayland.desktop"
146 + newicon "resources/app/resources/linux/code.png" "vscodium.png"
147 +}
148 +
149 +pkg_postinst() {
150 + xdg_pkg_postinst
151 + elog "When compared to the regular VSCode, VSCodium has a few quirks"
152 + elog "More information at: https://github.com/VSCodium/vscodium/blob/master/DOCS.md"
153 +}