1 |
commit: 896e52611d837f4784ef6cfc90d2445c2a5a1f55 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 25 07:00:56 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 25 07:01:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=896e5261 |
7 |
|
8 |
net-im/telegram-desktop: drop old |
9 |
|
10 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-im/telegram-desktop/Manifest | 5 - |
14 |
.../telegram-desktop-2.0.1-r1.ebuild | 134 ------------------- |
15 |
.../telegram-desktop/telegram-desktop-2.1.1.ebuild | 145 --------------------- |
16 |
.../telegram-desktop/telegram-desktop-2.1.2.ebuild | 145 --------------------- |
17 |
.../telegram-desktop/telegram-desktop-2.1.3.ebuild | 145 --------------------- |
18 |
.../telegram-desktop/telegram-desktop-2.1.4.ebuild | 145 --------------------- |
19 |
6 files changed, 719 deletions(-) |
20 |
|
21 |
diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest |
22 |
index bef258efb70..2b51fd9ad32 100644 |
23 |
--- a/net-im/telegram-desktop/Manifest |
24 |
+++ b/net-im/telegram-desktop/Manifest |
25 |
@@ -1,8 +1,3 @@ |
26 |
-DIST tdesktop-2.0.1-full.tar.gz 26106949 BLAKE2B 3975e7d42af8b323a86408e2301b292d94b308413bb92d135673fb12851cd6672156dcf9b631482fa9b8dc9361d9593dc1104c8c335e0c610706b308414db01b SHA512 99cd7c5ca1e9dd75ecd98d272522b0e4aab2d46525e3d0c306503b7a00c9d25c1646e9d7462182682a58947c7435864af805a3b6f85906d8b21e5675cc8383cb |
27 |
DIST tdesktop-2.1.0-full.tar.gz 26133964 BLAKE2B c5eb476ea3ed02c2618e5b770bdce365bcf0d6124f75558570189e07e9dcd9f6f3282d53fec621be736cbd1269a9dd820629d4d9a36167d8f71109bfcd5a52e2 SHA512 46f5453c64d1dbd4cf8adde73fcc48e6b6f795972ab0f6516cb55112f47d5af990a049da356bedb81e6d3f7103c14a7be45369ff9a5a1812c07a1bfcda70646d |
28 |
-DIST tdesktop-2.1.1-full.tar.gz 26178569 BLAKE2B 377820af9d2ceeab18fa1ca0458803770b9e1cf211ba9bac7f21ae75fcb8e59269ad742c9fc0acd1b6d484d36057c872146cfdba0653bd2461f3a585222cf0b0 SHA512 aa542c029ead2d1b6c398ecca949b86fae8f37094ceb462ace4628f8e53882faf35b3c2e4fe03dd2e4e17b07412896f7b05d6748b13c99a3bac117b7449d69a8 |
29 |
-DIST tdesktop-2.1.2-full.tar.gz 35603888 BLAKE2B 40ca92e5d7bcc291ce8b8ad4404dd27399dc5dd710e869759800c694c36721db892f1da9273c718672e2cea7d918059035f0af3e8cfd9a7b42f3f24b7d34b5a7 SHA512 c23d9a961132cd2592ce8f728ed7592091a8c2a1d94797facd93516ab0c9194bd5b90ba7a7d4e8aa778940bc4a23d4ac69507a9f150c3bf4e743c6659e545ccf |
30 |
-DIST tdesktop-2.1.3-full.tar.gz 36121092 BLAKE2B 667f73ef9ea41e06b9cd536eacc1d84229376f78662f8e82916bbefde035145454c0c9a62b7fbe613dd1e502ae522ab88d23db8bfbc6e3cb7abe1e319cbd92b0 SHA512 ec5743a15fcc051cfea9379ecd5811a9300b46b29108a813a67575e2b2a99839c83943c5513f17a1119869f722519628884aa9af63cbf4b65640944c16ff27e9 |
31 |
-DIST tdesktop-2.1.4-full.tar.gz 36377172 BLAKE2B 115f98879539ad66d57cba1b725f65558804536318d72532a6c93e17626341199f3fc9ea446f11b6a31b5e526cb102faec1db94e54800dc96dfbb038bc42670a SHA512 5b27633cdcb4edb61af983c1e4867bac3d7d0864e100855ea3f00c1eb1037e6a9f43414c09211282b5b677603ddfaedbcf4cbf482502ca4e33152e417068c959 |
32 |
DIST tdesktop-2.1.6-full.tar.gz 36478989 BLAKE2B 4c5364e560500efd445232c05556d1bdce63881b179906cef2602161944ac45d63af19c6f97b57dec9224c12a5b083c83fee4cbb56986c3edbbe3d76710f16c7 SHA512 a6a105676d8d24ec3414895cadc664829c5abc041d8614409e22d7964d7280e44df35ece5fca18a0cd127f65bd363abc1e5c36807b0031eabd6eb77c7effdfb8 |
33 |
DIST tdesktop-2.1.7-full.tar.gz 36509059 BLAKE2B 4a1bf5879e71e64f34024165f9db39f69d1d8e87b0387704bdb74415d60d6a1efd22ab1fec994116a72a6982a55f13cee0edb667060bbe9336cba4ce12e7472c SHA512 f942ce93d9671f3bb95a8fbba107fc851bfe3f28871c9651f6f2d97d711602f8a671f7b74750894b2175d33a67c25017562cd4ee455da7aa9b86755d1c3f1cfb |
34 |
|
35 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.0.1-r1.ebuild b/net-im/telegram-desktop/telegram-desktop-2.0.1-r1.ebuild |
36 |
deleted file mode 100644 |
37 |
index 8760bb8f593..00000000000 |
38 |
--- a/net-im/telegram-desktop/telegram-desktop-2.0.1-r1.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,134 +0,0 @@ |
41 |
-# Copyright 2020 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
47 |
- |
48 |
-inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
49 |
- |
50 |
-MY_P="tdesktop-${PV}-full" |
51 |
- |
52 |
-DESCRIPTION="Official desktop client for Telegram" |
53 |
-HOMEPAGE="https://desktop.telegram.org" |
54 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
55 |
- |
56 |
-LICENSE="GPL-3-with-openssl-exception" |
57 |
-SLOT="0" |
58 |
-KEYWORDS="amd64 ~ppc64" |
59 |
-IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell wayland +X" |
60 |
- |
61 |
-RDEPEND=" |
62 |
- !net-im/telegram-desktop-bin |
63 |
- app-arch/lz4:= |
64 |
- app-arch/xz-utils |
65 |
- !libressl? ( dev-libs/openssl:0= ) |
66 |
- libressl? ( dev-libs/libressl:0= ) |
67 |
- >=dev-cpp/ms-gsl-2.1.0 |
68 |
- dev-cpp/range-v3 |
69 |
- dev-libs/xxhash |
70 |
- dev-qt/qtcore:5 |
71 |
- dev-qt/qtgui:5[jpeg,png,wayland?,X(-)?] |
72 |
- dev-qt/qtimageformats:5 |
73 |
- dev-qt/qtnetwork:5 |
74 |
- dev-qt/qtsvg:5 |
75 |
- dev-qt/qtwidgets:5[png,X(-)?] |
76 |
- media-fonts/open-sans |
77 |
- media-libs/fontconfig:= |
78 |
- >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?] |
79 |
- media-libs/openal[alsa?,pulseaudio?] |
80 |
- media-libs/opus:= |
81 |
- media-video/ffmpeg:=[alsa?,opus,pulseaudio?] |
82 |
- sys-libs/zlib[minizip] |
83 |
- virtual/libiconv |
84 |
- dbus? ( |
85 |
- dev-qt/qtdbus:5 |
86 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
87 |
- ) |
88 |
- enchant? ( app-text/enchant:= ) |
89 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
90 |
- pulseaudio? ( media-sound/pulseaudio ) |
91 |
-" |
92 |
- |
93 |
-DEPEND=" |
94 |
- ${PYTHON_DEPS} |
95 |
- ${RDEPEND} |
96 |
-" |
97 |
- |
98 |
-BDEPEND=" |
99 |
- >=dev-util/cmake-3.16 |
100 |
- virtual/pkgconfig |
101 |
-" |
102 |
- |
103 |
-REQUIRED_USE=" |
104 |
- || ( alsa pulseaudio ) |
105 |
- || ( X wayland ) |
106 |
- spell? ( |
107 |
- ^^ ( enchant hunspell ) |
108 |
- ) |
109 |
-" |
110 |
- |
111 |
-S="${WORKDIR}/${MY_P}" |
112 |
- |
113 |
-src_configure() { |
114 |
- local mycxxflags=( |
115 |
- -Wno-deprecated-declarations |
116 |
- -Wno-error=deprecated-declarations |
117 |
- -Wno-switch |
118 |
- ) |
119 |
- |
120 |
- append-cxxflags "${mycxxflags[@]}" |
121 |
- |
122 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
123 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
124 |
- # EXPECTED VARIANT |
125 |
- local mycmakeargs=( |
126 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
127 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
128 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
129 |
- -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
130 |
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
131 |
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
132 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
133 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
134 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
135 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
136 |
- ) |
137 |
- |
138 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
139 |
- einfo "Found custom API credentials" |
140 |
- mycmakeargs+=( |
141 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
142 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
143 |
- ) |
144 |
- else |
145 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
146 |
- # Building with snapcraft API credentials by default |
147 |
- # Custom API credentials can be obtained here: |
148 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
149 |
- # After getting credentials you can export variables: |
150 |
- # export MY_TDESKTOP_API_ID="17349"" |
151 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
152 |
- # and restart the build" |
153 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
154 |
- # portage will use custom variable every build automatically |
155 |
- mycmakeargs+=( |
156 |
- -DTDESKTOP_API_ID="611335" |
157 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
158 |
- ) |
159 |
- fi |
160 |
- |
161 |
- cmake_src_configure |
162 |
-} |
163 |
- |
164 |
-pkg_postinst() { |
165 |
- xdg_desktop_database_update |
166 |
- xdg_icon_cache_update |
167 |
- xdg_mimeinfo_database_update |
168 |
-} |
169 |
- |
170 |
-pkg_postrm() { |
171 |
- xdg_desktop_database_update |
172 |
- xdg_icon_cache_update |
173 |
- xdg_mimeinfo_database_update |
174 |
-} |
175 |
|
176 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.1.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.1.ebuild |
177 |
deleted file mode 100644 |
178 |
index 9dad2e7e8a3..00000000000 |
179 |
--- a/net-im/telegram-desktop/telegram-desktop-2.1.1.ebuild |
180 |
+++ /dev/null |
181 |
@@ -1,145 +0,0 @@ |
182 |
-# Copyright 2020 Gentoo Authors |
183 |
-# Distributed under the terms of the GNU General Public License v2 |
184 |
- |
185 |
-EAPI=7 |
186 |
- |
187 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
188 |
- |
189 |
-inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
190 |
- |
191 |
-MY_P="tdesktop-${PV}-full" |
192 |
- |
193 |
-DESCRIPTION="Official desktop client for Telegram" |
194 |
-HOMEPAGE="https://desktop.telegram.org" |
195 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
196 |
- |
197 |
-LICENSE="GPL-3-with-openssl-exception" |
198 |
-SLOT="0" |
199 |
-KEYWORDS="~amd64 ~ppc64" |
200 |
-IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell wayland +X" |
201 |
- |
202 |
-RDEPEND=" |
203 |
- !net-im/telegram-desktop-bin |
204 |
- app-arch/lz4:= |
205 |
- app-arch/xz-utils |
206 |
- !libressl? ( dev-libs/openssl:0= ) |
207 |
- libressl? ( dev-libs/libressl:0= ) |
208 |
- dev-cpp/range-v3 |
209 |
- dev-libs/xxhash |
210 |
- dev-qt/qtcore:5 |
211 |
- dev-qt/qtgui:5[jpeg,png,wayland?,X(-)?] |
212 |
- dev-qt/qtimageformats:5 |
213 |
- dev-qt/qtnetwork:5 |
214 |
- dev-qt/qtsvg:5 |
215 |
- dev-qt/qtwidgets:5[png,X(-)?] |
216 |
- media-fonts/open-sans |
217 |
- media-libs/fontconfig:= |
218 |
- >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?] |
219 |
- media-libs/openal[alsa?,pulseaudio?] |
220 |
- media-libs/opus:= |
221 |
- media-video/ffmpeg:=[alsa?,opus,pulseaudio?] |
222 |
- sys-libs/zlib[minizip] |
223 |
- virtual/libiconv |
224 |
- dbus? ( |
225 |
- dev-qt/qtdbus:5 |
226 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
227 |
- ) |
228 |
- enchant? ( app-text/enchant:= ) |
229 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
230 |
- pulseaudio? ( media-sound/pulseaudio ) |
231 |
-" |
232 |
- |
233 |
-DEPEND=" |
234 |
- ${PYTHON_DEPS} |
235 |
- ${RDEPEND} |
236 |
-" |
237 |
- |
238 |
-BDEPEND=" |
239 |
- >=dev-util/cmake-3.16 |
240 |
- virtual/pkgconfig |
241 |
-" |
242 |
- |
243 |
-REQUIRED_USE=" |
244 |
- || ( alsa pulseaudio ) |
245 |
- || ( X wayland ) |
246 |
- spell? ( |
247 |
- ^^ ( enchant hunspell ) |
248 |
- ) |
249 |
-" |
250 |
- |
251 |
-S="${WORKDIR}/${MY_P}" |
252 |
- |
253 |
-pkg_pretend() { |
254 |
- if has ccache ${FEATURES}; then |
255 |
- ewarn |
256 |
- ewarn "ccache does not work with ${PN} out of the box" |
257 |
- ewarn "due to usage of precompiled headers" |
258 |
- ewarn "check bug https://bugs.gentoo.org/715114 for more info" |
259 |
- ewarn |
260 |
- fi |
261 |
-} |
262 |
- |
263 |
-src_configure() { |
264 |
- local mycxxflags=( |
265 |
- -Wno-deprecated-declarations |
266 |
- -Wno-error=deprecated-declarations |
267 |
- -Wno-switch |
268 |
- ) |
269 |
- |
270 |
- append-cxxflags "${mycxxflags[@]}" |
271 |
- |
272 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
273 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
274 |
- # EXPECTED VARIANT |
275 |
- # TODO: unbundle GSL, version 3.0.1 required and has nasty googletest dep |
276 |
- local mycmakeargs=( |
277 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
278 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
279 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
280 |
- -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
281 |
- -DDESKTOP_APP_USE_PACKAGED_GSL=OFF |
282 |
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
283 |
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
284 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
285 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
286 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
287 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
288 |
- ) |
289 |
- |
290 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
291 |
- einfo "Found custom API credentials" |
292 |
- mycmakeargs+=( |
293 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
294 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
295 |
- ) |
296 |
- else |
297 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
298 |
- # Building with snapcraft API credentials by default |
299 |
- # Custom API credentials can be obtained here: |
300 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
301 |
- # After getting credentials you can export variables: |
302 |
- # export MY_TDESKTOP_API_ID="17349"" |
303 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
304 |
- # and restart the build" |
305 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
306 |
- # portage will use custom variable every build automatically |
307 |
- mycmakeargs+=( |
308 |
- -DTDESKTOP_API_ID="611335" |
309 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
310 |
- ) |
311 |
- fi |
312 |
- |
313 |
- cmake_src_configure |
314 |
-} |
315 |
- |
316 |
-pkg_postinst() { |
317 |
- xdg_desktop_database_update |
318 |
- xdg_icon_cache_update |
319 |
- xdg_mimeinfo_database_update |
320 |
-} |
321 |
- |
322 |
-pkg_postrm() { |
323 |
- xdg_desktop_database_update |
324 |
- xdg_icon_cache_update |
325 |
- xdg_mimeinfo_database_update |
326 |
-} |
327 |
|
328 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.2.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.2.ebuild |
329 |
deleted file mode 100644 |
330 |
index 9dad2e7e8a3..00000000000 |
331 |
--- a/net-im/telegram-desktop/telegram-desktop-2.1.2.ebuild |
332 |
+++ /dev/null |
333 |
@@ -1,145 +0,0 @@ |
334 |
-# Copyright 2020 Gentoo Authors |
335 |
-# Distributed under the terms of the GNU General Public License v2 |
336 |
- |
337 |
-EAPI=7 |
338 |
- |
339 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
340 |
- |
341 |
-inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
342 |
- |
343 |
-MY_P="tdesktop-${PV}-full" |
344 |
- |
345 |
-DESCRIPTION="Official desktop client for Telegram" |
346 |
-HOMEPAGE="https://desktop.telegram.org" |
347 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
348 |
- |
349 |
-LICENSE="GPL-3-with-openssl-exception" |
350 |
-SLOT="0" |
351 |
-KEYWORDS="~amd64 ~ppc64" |
352 |
-IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell wayland +X" |
353 |
- |
354 |
-RDEPEND=" |
355 |
- !net-im/telegram-desktop-bin |
356 |
- app-arch/lz4:= |
357 |
- app-arch/xz-utils |
358 |
- !libressl? ( dev-libs/openssl:0= ) |
359 |
- libressl? ( dev-libs/libressl:0= ) |
360 |
- dev-cpp/range-v3 |
361 |
- dev-libs/xxhash |
362 |
- dev-qt/qtcore:5 |
363 |
- dev-qt/qtgui:5[jpeg,png,wayland?,X(-)?] |
364 |
- dev-qt/qtimageformats:5 |
365 |
- dev-qt/qtnetwork:5 |
366 |
- dev-qt/qtsvg:5 |
367 |
- dev-qt/qtwidgets:5[png,X(-)?] |
368 |
- media-fonts/open-sans |
369 |
- media-libs/fontconfig:= |
370 |
- >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?] |
371 |
- media-libs/openal[alsa?,pulseaudio?] |
372 |
- media-libs/opus:= |
373 |
- media-video/ffmpeg:=[alsa?,opus,pulseaudio?] |
374 |
- sys-libs/zlib[minizip] |
375 |
- virtual/libiconv |
376 |
- dbus? ( |
377 |
- dev-qt/qtdbus:5 |
378 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
379 |
- ) |
380 |
- enchant? ( app-text/enchant:= ) |
381 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
382 |
- pulseaudio? ( media-sound/pulseaudio ) |
383 |
-" |
384 |
- |
385 |
-DEPEND=" |
386 |
- ${PYTHON_DEPS} |
387 |
- ${RDEPEND} |
388 |
-" |
389 |
- |
390 |
-BDEPEND=" |
391 |
- >=dev-util/cmake-3.16 |
392 |
- virtual/pkgconfig |
393 |
-" |
394 |
- |
395 |
-REQUIRED_USE=" |
396 |
- || ( alsa pulseaudio ) |
397 |
- || ( X wayland ) |
398 |
- spell? ( |
399 |
- ^^ ( enchant hunspell ) |
400 |
- ) |
401 |
-" |
402 |
- |
403 |
-S="${WORKDIR}/${MY_P}" |
404 |
- |
405 |
-pkg_pretend() { |
406 |
- if has ccache ${FEATURES}; then |
407 |
- ewarn |
408 |
- ewarn "ccache does not work with ${PN} out of the box" |
409 |
- ewarn "due to usage of precompiled headers" |
410 |
- ewarn "check bug https://bugs.gentoo.org/715114 for more info" |
411 |
- ewarn |
412 |
- fi |
413 |
-} |
414 |
- |
415 |
-src_configure() { |
416 |
- local mycxxflags=( |
417 |
- -Wno-deprecated-declarations |
418 |
- -Wno-error=deprecated-declarations |
419 |
- -Wno-switch |
420 |
- ) |
421 |
- |
422 |
- append-cxxflags "${mycxxflags[@]}" |
423 |
- |
424 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
425 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
426 |
- # EXPECTED VARIANT |
427 |
- # TODO: unbundle GSL, version 3.0.1 required and has nasty googletest dep |
428 |
- local mycmakeargs=( |
429 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
430 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
431 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
432 |
- -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
433 |
- -DDESKTOP_APP_USE_PACKAGED_GSL=OFF |
434 |
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
435 |
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
436 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
437 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
438 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
439 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
440 |
- ) |
441 |
- |
442 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
443 |
- einfo "Found custom API credentials" |
444 |
- mycmakeargs+=( |
445 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
446 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
447 |
- ) |
448 |
- else |
449 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
450 |
- # Building with snapcraft API credentials by default |
451 |
- # Custom API credentials can be obtained here: |
452 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
453 |
- # After getting credentials you can export variables: |
454 |
- # export MY_TDESKTOP_API_ID="17349"" |
455 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
456 |
- # and restart the build" |
457 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
458 |
- # portage will use custom variable every build automatically |
459 |
- mycmakeargs+=( |
460 |
- -DTDESKTOP_API_ID="611335" |
461 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
462 |
- ) |
463 |
- fi |
464 |
- |
465 |
- cmake_src_configure |
466 |
-} |
467 |
- |
468 |
-pkg_postinst() { |
469 |
- xdg_desktop_database_update |
470 |
- xdg_icon_cache_update |
471 |
- xdg_mimeinfo_database_update |
472 |
-} |
473 |
- |
474 |
-pkg_postrm() { |
475 |
- xdg_desktop_database_update |
476 |
- xdg_icon_cache_update |
477 |
- xdg_mimeinfo_database_update |
478 |
-} |
479 |
|
480 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.3.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.3.ebuild |
481 |
deleted file mode 100644 |
482 |
index 9dad2e7e8a3..00000000000 |
483 |
--- a/net-im/telegram-desktop/telegram-desktop-2.1.3.ebuild |
484 |
+++ /dev/null |
485 |
@@ -1,145 +0,0 @@ |
486 |
-# Copyright 2020 Gentoo Authors |
487 |
-# Distributed under the terms of the GNU General Public License v2 |
488 |
- |
489 |
-EAPI=7 |
490 |
- |
491 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
492 |
- |
493 |
-inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
494 |
- |
495 |
-MY_P="tdesktop-${PV}-full" |
496 |
- |
497 |
-DESCRIPTION="Official desktop client for Telegram" |
498 |
-HOMEPAGE="https://desktop.telegram.org" |
499 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
500 |
- |
501 |
-LICENSE="GPL-3-with-openssl-exception" |
502 |
-SLOT="0" |
503 |
-KEYWORDS="~amd64 ~ppc64" |
504 |
-IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell wayland +X" |
505 |
- |
506 |
-RDEPEND=" |
507 |
- !net-im/telegram-desktop-bin |
508 |
- app-arch/lz4:= |
509 |
- app-arch/xz-utils |
510 |
- !libressl? ( dev-libs/openssl:0= ) |
511 |
- libressl? ( dev-libs/libressl:0= ) |
512 |
- dev-cpp/range-v3 |
513 |
- dev-libs/xxhash |
514 |
- dev-qt/qtcore:5 |
515 |
- dev-qt/qtgui:5[jpeg,png,wayland?,X(-)?] |
516 |
- dev-qt/qtimageformats:5 |
517 |
- dev-qt/qtnetwork:5 |
518 |
- dev-qt/qtsvg:5 |
519 |
- dev-qt/qtwidgets:5[png,X(-)?] |
520 |
- media-fonts/open-sans |
521 |
- media-libs/fontconfig:= |
522 |
- >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?] |
523 |
- media-libs/openal[alsa?,pulseaudio?] |
524 |
- media-libs/opus:= |
525 |
- media-video/ffmpeg:=[alsa?,opus,pulseaudio?] |
526 |
- sys-libs/zlib[minizip] |
527 |
- virtual/libiconv |
528 |
- dbus? ( |
529 |
- dev-qt/qtdbus:5 |
530 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
531 |
- ) |
532 |
- enchant? ( app-text/enchant:= ) |
533 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
534 |
- pulseaudio? ( media-sound/pulseaudio ) |
535 |
-" |
536 |
- |
537 |
-DEPEND=" |
538 |
- ${PYTHON_DEPS} |
539 |
- ${RDEPEND} |
540 |
-" |
541 |
- |
542 |
-BDEPEND=" |
543 |
- >=dev-util/cmake-3.16 |
544 |
- virtual/pkgconfig |
545 |
-" |
546 |
- |
547 |
-REQUIRED_USE=" |
548 |
- || ( alsa pulseaudio ) |
549 |
- || ( X wayland ) |
550 |
- spell? ( |
551 |
- ^^ ( enchant hunspell ) |
552 |
- ) |
553 |
-" |
554 |
- |
555 |
-S="${WORKDIR}/${MY_P}" |
556 |
- |
557 |
-pkg_pretend() { |
558 |
- if has ccache ${FEATURES}; then |
559 |
- ewarn |
560 |
- ewarn "ccache does not work with ${PN} out of the box" |
561 |
- ewarn "due to usage of precompiled headers" |
562 |
- ewarn "check bug https://bugs.gentoo.org/715114 for more info" |
563 |
- ewarn |
564 |
- fi |
565 |
-} |
566 |
- |
567 |
-src_configure() { |
568 |
- local mycxxflags=( |
569 |
- -Wno-deprecated-declarations |
570 |
- -Wno-error=deprecated-declarations |
571 |
- -Wno-switch |
572 |
- ) |
573 |
- |
574 |
- append-cxxflags "${mycxxflags[@]}" |
575 |
- |
576 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
577 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
578 |
- # EXPECTED VARIANT |
579 |
- # TODO: unbundle GSL, version 3.0.1 required and has nasty googletest dep |
580 |
- local mycmakeargs=( |
581 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
582 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
583 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
584 |
- -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
585 |
- -DDESKTOP_APP_USE_PACKAGED_GSL=OFF |
586 |
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
587 |
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
588 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
589 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
590 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
591 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
592 |
- ) |
593 |
- |
594 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
595 |
- einfo "Found custom API credentials" |
596 |
- mycmakeargs+=( |
597 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
598 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
599 |
- ) |
600 |
- else |
601 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
602 |
- # Building with snapcraft API credentials by default |
603 |
- # Custom API credentials can be obtained here: |
604 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
605 |
- # After getting credentials you can export variables: |
606 |
- # export MY_TDESKTOP_API_ID="17349"" |
607 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
608 |
- # and restart the build" |
609 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
610 |
- # portage will use custom variable every build automatically |
611 |
- mycmakeargs+=( |
612 |
- -DTDESKTOP_API_ID="611335" |
613 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
614 |
- ) |
615 |
- fi |
616 |
- |
617 |
- cmake_src_configure |
618 |
-} |
619 |
- |
620 |
-pkg_postinst() { |
621 |
- xdg_desktop_database_update |
622 |
- xdg_icon_cache_update |
623 |
- xdg_mimeinfo_database_update |
624 |
-} |
625 |
- |
626 |
-pkg_postrm() { |
627 |
- xdg_desktop_database_update |
628 |
- xdg_icon_cache_update |
629 |
- xdg_mimeinfo_database_update |
630 |
-} |
631 |
|
632 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.4.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.4.ebuild |
633 |
deleted file mode 100644 |
634 |
index 9dad2e7e8a3..00000000000 |
635 |
--- a/net-im/telegram-desktop/telegram-desktop-2.1.4.ebuild |
636 |
+++ /dev/null |
637 |
@@ -1,145 +0,0 @@ |
638 |
-# Copyright 2020 Gentoo Authors |
639 |
-# Distributed under the terms of the GNU General Public License v2 |
640 |
- |
641 |
-EAPI=7 |
642 |
- |
643 |
-PYTHON_COMPAT=( python3_{6,7,8} ) |
644 |
- |
645 |
-inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
646 |
- |
647 |
-MY_P="tdesktop-${PV}-full" |
648 |
- |
649 |
-DESCRIPTION="Official desktop client for Telegram" |
650 |
-HOMEPAGE="https://desktop.telegram.org" |
651 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
652 |
- |
653 |
-LICENSE="GPL-3-with-openssl-exception" |
654 |
-SLOT="0" |
655 |
-KEYWORDS="~amd64 ~ppc64" |
656 |
-IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell wayland +X" |
657 |
- |
658 |
-RDEPEND=" |
659 |
- !net-im/telegram-desktop-bin |
660 |
- app-arch/lz4:= |
661 |
- app-arch/xz-utils |
662 |
- !libressl? ( dev-libs/openssl:0= ) |
663 |
- libressl? ( dev-libs/libressl:0= ) |
664 |
- dev-cpp/range-v3 |
665 |
- dev-libs/xxhash |
666 |
- dev-qt/qtcore:5 |
667 |
- dev-qt/qtgui:5[jpeg,png,wayland?,X(-)?] |
668 |
- dev-qt/qtimageformats:5 |
669 |
- dev-qt/qtnetwork:5 |
670 |
- dev-qt/qtsvg:5 |
671 |
- dev-qt/qtwidgets:5[png,X(-)?] |
672 |
- media-fonts/open-sans |
673 |
- media-libs/fontconfig:= |
674 |
- >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?] |
675 |
- media-libs/openal[alsa?,pulseaudio?] |
676 |
- media-libs/opus:= |
677 |
- media-video/ffmpeg:=[alsa?,opus,pulseaudio?] |
678 |
- sys-libs/zlib[minizip] |
679 |
- virtual/libiconv |
680 |
- dbus? ( |
681 |
- dev-qt/qtdbus:5 |
682 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
683 |
- ) |
684 |
- enchant? ( app-text/enchant:= ) |
685 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
686 |
- pulseaudio? ( media-sound/pulseaudio ) |
687 |
-" |
688 |
- |
689 |
-DEPEND=" |
690 |
- ${PYTHON_DEPS} |
691 |
- ${RDEPEND} |
692 |
-" |
693 |
- |
694 |
-BDEPEND=" |
695 |
- >=dev-util/cmake-3.16 |
696 |
- virtual/pkgconfig |
697 |
-" |
698 |
- |
699 |
-REQUIRED_USE=" |
700 |
- || ( alsa pulseaudio ) |
701 |
- || ( X wayland ) |
702 |
- spell? ( |
703 |
- ^^ ( enchant hunspell ) |
704 |
- ) |
705 |
-" |
706 |
- |
707 |
-S="${WORKDIR}/${MY_P}" |
708 |
- |
709 |
-pkg_pretend() { |
710 |
- if has ccache ${FEATURES}; then |
711 |
- ewarn |
712 |
- ewarn "ccache does not work with ${PN} out of the box" |
713 |
- ewarn "due to usage of precompiled headers" |
714 |
- ewarn "check bug https://bugs.gentoo.org/715114 for more info" |
715 |
- ewarn |
716 |
- fi |
717 |
-} |
718 |
- |
719 |
-src_configure() { |
720 |
- local mycxxflags=( |
721 |
- -Wno-deprecated-declarations |
722 |
- -Wno-error=deprecated-declarations |
723 |
- -Wno-switch |
724 |
- ) |
725 |
- |
726 |
- append-cxxflags "${mycxxflags[@]}" |
727 |
- |
728 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
729 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
730 |
- # EXPECTED VARIANT |
731 |
- # TODO: unbundle GSL, version 3.0.1 required and has nasty googletest dep |
732 |
- local mycmakeargs=( |
733 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
734 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
735 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
736 |
- -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
737 |
- -DDESKTOP_APP_USE_PACKAGED_GSL=OFF |
738 |
- -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
739 |
- -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
740 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
741 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
742 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
743 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
744 |
- ) |
745 |
- |
746 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
747 |
- einfo "Found custom API credentials" |
748 |
- mycmakeargs+=( |
749 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
750 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
751 |
- ) |
752 |
- else |
753 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
754 |
- # Building with snapcraft API credentials by default |
755 |
- # Custom API credentials can be obtained here: |
756 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
757 |
- # After getting credentials you can export variables: |
758 |
- # export MY_TDESKTOP_API_ID="17349"" |
759 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
760 |
- # and restart the build" |
761 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
762 |
- # portage will use custom variable every build automatically |
763 |
- mycmakeargs+=( |
764 |
- -DTDESKTOP_API_ID="611335" |
765 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
766 |
- ) |
767 |
- fi |
768 |
- |
769 |
- cmake_src_configure |
770 |
-} |
771 |
- |
772 |
-pkg_postinst() { |
773 |
- xdg_desktop_database_update |
774 |
- xdg_icon_cache_update |
775 |
- xdg_mimeinfo_database_update |
776 |
-} |
777 |
- |
778 |
-pkg_postrm() { |
779 |
- xdg_desktop_database_update |
780 |
- xdg_icon_cache_update |
781 |
- xdg_mimeinfo_database_update |
782 |
-} |