Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop/, net-im/telegram-desktop/files/
Date: Fri, 24 Apr 2020 20:02:15
Message-Id: 1587758495.4683feb03b394a60676847acf6f31db3a209c4f2.gyakovlev@gentoo
1 commit: 4683feb03b394a60676847acf6f31db3a209c4f2
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 19:59:43 2020 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 20:01:35 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4683feb0
7
8 net-im/telegram-desktop: drop old
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 net-im/telegram-desktop/Manifest | 1 -
13 net-im/telegram-desktop/files/1.9.21-icon.patch | 99 --------------
14 .../telegram-desktop-1.9.21.ebuild | 143 ---------------------
15 3 files changed, 243 deletions(-)
16
17 diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest
18 index 76099ebd88f..027ce251088 100644
19 --- a/net-im/telegram-desktop/Manifest
20 +++ b/net-im/telegram-desktop/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST tdesktop-1.9.21-full.tar.gz 25848026 BLAKE2B 503e22bcc83a64721aa4c4c6e8bca89c4c976703c338b1615c5ab1599098e98cbd220a94cffdbe24d9c305b44ffef7719ad1c2d2ad81f4ec6edc8377e1afa4ef SHA512 ea02fc69e88ed6244ed420516bb7a93827cb85efaa0a7e9af7562aa1bc29184c5a2102caca8693c976b25d374832e0deb2ccbf00144d5340b5ffacbdc9dcebf1
23 DIST tdesktop-2.0.1-full.tar.gz 26106949 BLAKE2B 3975e7d42af8b323a86408e2301b292d94b308413bb92d135673fb12851cd6672156dcf9b631482fa9b8dc9361d9593dc1104c8c335e0c610706b308414db01b SHA512 99cd7c5ca1e9dd75ecd98d272522b0e4aab2d46525e3d0c306503b7a00c9d25c1646e9d7462182682a58947c7435864af805a3b6f85906d8b21e5675cc8383cb
24 DIST tdesktop-2.1.0-full.tar.gz 26133964 BLAKE2B c5eb476ea3ed02c2618e5b770bdce365bcf0d6124f75558570189e07e9dcd9f6f3282d53fec621be736cbd1269a9dd820629d4d9a36167d8f71109bfcd5a52e2 SHA512 46f5453c64d1dbd4cf8adde73fcc48e6b6f795972ab0f6516cb55112f47d5af990a049da356bedb81e6d3f7103c14a7be45369ff9a5a1812c07a1bfcda70646d
25
26 diff --git a/net-im/telegram-desktop/files/1.9.21-icon.patch b/net-im/telegram-desktop/files/1.9.21-icon.patch
27 deleted file mode 100644
28 index 689e01af72c..00000000000
29 --- a/net-im/telegram-desktop/files/1.9.21-icon.patch
30 +++ /dev/null
31 @@ -1,99 +0,0 @@
32 -From d2291f5b17e0c169083a34e51053a99546207ec8 Mon Sep 17 00:00:00 2001
33 -From: Ilya Fedin <fedin-ilja2010@××.ru>
34 -Date: Tue, 17 Mar 2020 23:13:11 +0400
35 -Subject: [PATCH] Fix panel icon forcing
36 -
37 ----
38 - .../platform/linux/main_window_linux.cpp | 20 +++++++++++--------
39 - .../platform/linux/main_window_linux.h | 2 +-
40 - 2 files changed, 13 insertions(+), 9 deletions(-)
41 -
42 -diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp
43 -index 347395ab38..3d30ef755c 100644
44 ---- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp
45 -+++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp
46 -@@ -78,7 +78,8 @@ QString GetTrayIconName(int counter, bool muted) {
47 - const auto iconName = GetIconName();
48 - const auto panelIconName = GetPanelIconName(counter, muted);
49 -
50 -- if (QIcon::hasThemeIcon(panelIconName)) {
51 -+ if (QIcon::hasThemeIcon(panelIconName)
52 -+ || qEnvironmentVariableIsSet(kForcePanelIcon.utf8())) {
53 - return panelIconName;
54 - } else if (QIcon::hasThemeIcon(iconName)) {
55 - return iconName;
56 -@@ -158,7 +159,7 @@ QIcon TrayIconGen(int counter, bool muted) {
57 - || iconThemeName != TrayIconThemeName
58 - || iconName != TrayIconName) {
59 - if (!iconName.isEmpty()) {
60 -- if(systemIcon.isNull()) {
61 -+ if (systemIcon.isNull()) {
62 - systemIcon = QIcon::fromTheme(iconName);
63 - }
64 -
65 -@@ -467,11 +468,12 @@ void MainWindow::psTrayMenuUpdated() {
66 - }
67 -
68 - #ifndef TDESKTOP_DISABLE_DBUS_INTEGRATION
69 --void MainWindow::setSNITrayIcon(int counter, bool muted, bool firstShow) {
70 -+void MainWindow::setSNITrayIcon(int counter, bool muted) {
71 - const auto iconName = GetTrayIconName(counter, muted);
72 -
73 - if (qEnvironmentVariableIsSet(kDisableTrayCounter.utf8())
74 -- && ((!iconName.isEmpty() && !InSnap())
75 -+ && !iconName.isEmpty()
76 -+ && (!InSnap()
77 - || qEnvironmentVariableIsSet(kForcePanelIcon.utf8()))) {
78 - if (_sniTrayIcon->iconName() == iconName) {
79 - return;
80 -@@ -480,7 +482,8 @@ void MainWindow::setSNITrayIcon(int counter, bool muted, bool firstShow) {
81 - _sniTrayIcon->setIconByName(iconName);
82 - _sniTrayIcon->setToolTipIconByName(iconName);
83 - } else if (IsIndicatorApplication()) {
84 -- if(!IsIconRegenerationNeeded(counter, muted) && !firstShow) {
85 -+ if (!IsIconRegenerationNeeded(counter, muted)
86 -+ && !_sniTrayIcon->iconName().isEmpty()) {
87 - return;
88 - }
89 -
90 -@@ -492,7 +495,8 @@ void MainWindow::setSNITrayIcon(int counter, bool muted, bool firstShow) {
91 - _sniTrayIcon->setIconByName(_trayIconFile->fileName());
92 - }
93 - } else {
94 -- if(!IsIconRegenerationNeeded(counter, muted) && !firstShow) {
95 -+ if (!IsIconRegenerationNeeded(counter, muted)
96 -+ && !_sniTrayIcon->iconPixmap().isEmpty()) {
97 - return;
98 - }
99 -
100 -@@ -554,7 +558,7 @@ void MainWindow::onSNIOwnerChanged(
101 -
102 - cSetSupportTray(trayAvailable);
103 -
104 -- if(cSupportTray()) {
105 -+ if (cSupportTray()) {
106 - psSetupTrayIcon();
107 - } else {
108 - LOG(("System tray is not available."));
109 -@@ -575,7 +579,7 @@ void MainWindow::psSetupTrayIcon() {
110 - this);
111 -
112 - _sniTrayIcon->setTitle(AppName.utf16());
113 -- setSNITrayIcon(counter, muted, true);
114 -+ setSNITrayIcon(counter, muted);
115 -
116 - attachToSNITrayIcon();
117 - }
118 -diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.h b/Telegram/SourceFiles/platform/linux/main_window_linux.h
119 -index 8602c53806..43ab722845 100644
120 ---- a/Telegram/SourceFiles/platform/linux/main_window_linux.h
121 -+++ b/Telegram/SourceFiles/platform/linux/main_window_linux.h
122 -@@ -123,7 +123,7 @@ public slots:
123 - QAction *psMonospace = nullptr;
124 - QAction *psClearFormat = nullptr;
125 -
126 -- void setSNITrayIcon(int counter, bool muted, bool firstShow = false);
127 -+ void setSNITrayIcon(int counter, bool muted);
128 - void attachToSNITrayIcon();
129 - #endif // !TDESKTOP_DISABLE_DBUS_INTEGRATION
130 -
131
132 diff --git a/net-im/telegram-desktop/telegram-desktop-1.9.21.ebuild b/net-im/telegram-desktop/telegram-desktop-1.9.21.ebuild
133 deleted file mode 100644
134 index 653b2ea69cf..00000000000
135 --- a/net-im/telegram-desktop/telegram-desktop-1.9.21.ebuild
136 +++ /dev/null
137 @@ -1,143 +0,0 @@
138 -# Copyright 2020 Gentoo Authors
139 -# Distributed under the terms of the GNU General Public License v2
140 -
141 -EAPI=7
142 -
143 -PYTHON_COMPAT=( python3_{6,7} )
144 -
145 -inherit cmake desktop flag-o-matic python-any-r1 xdg-utils
146 -
147 -MY_P="tdesktop-${PV}-full"
148 -
149 -DESCRIPTION="Official desktop client for Telegram"
150 -HOMEPAGE="https://desktop.telegram.org"
151 -SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz"
152 -
153 -LICENSE="GPL-3-with-openssl-exception"
154 -SLOT="0"
155 -KEYWORDS="~amd64 ~ppc64"
156 -IUSE="+alsa +dbus enchant +hunspell libressl pulseaudio +spell"
157 -
158 -RDEPEND="
159 - !net-im/telegram-desktop-bin
160 - app-arch/lz4:=
161 - app-arch/xz-utils
162 - !libressl? ( dev-libs/openssl:0= )
163 - libressl? ( dev-libs/libressl:0= )
164 - >=dev-cpp/ms-gsl-2.1.0
165 - dev-cpp/range-v3
166 - dev-libs/xxhash
167 - dev-qt/qtcore:5
168 - dev-qt/qtimageformats:5
169 - dev-qt/qtnetwork:5
170 - dev-qt/qtsvg:5
171 - media-libs/fontconfig:=
172 - >=media-libs/libtgvoip-2.4.4_p20200301[alsa?,pulseaudio?]
173 - media-libs/openal[alsa?,pulseaudio?]
174 - media-libs/opus:=
175 - media-video/ffmpeg:=[opus]
176 - sys-libs/zlib[minizip]
177 - virtual/libiconv
178 - x11-libs/libva:=[X,drm]
179 - x11-libs/libX11
180 - || (
181 - dev-qt/qtgui:5[jpeg,png,X(-)]
182 - dev-qt/qtgui:5[jpeg,png,xcb(-)]
183 - )
184 - || (
185 - dev-qt/qtwidgets:5[png,X(-)]
186 - dev-qt/qtwidgets:5[png,xcb(-)]
187 - )
188 - dbus? (
189 - dev-qt/qtdbus:5
190 - dev-libs/libdbusmenu-qt[qt5(+)]
191 - )
192 - enchant? ( app-text/enchant:= )
193 - hunspell? ( >=app-text/hunspell-1.7:= )
194 - pulseaudio? ( media-sound/pulseaudio )
195 -"
196 -
197 -DEPEND="
198 - ${PYTHON_DEPS}
199 - ${RDEPEND}
200 -"
201 -
202 -BDEPEND="
203 - >=dev-util/cmake-3.16
204 - virtual/pkgconfig
205 -"
206 -
207 -REQUIRED_USE="|| ( alsa pulseaudio )
208 - spell? (
209 - ^^ ( enchant hunspell )
210 - )
211 -"
212 -
213 -S="${WORKDIR}/${MY_P}"
214 -
215 -PATCHES=(
216 - "${FILESDIR}/1.9.21-icon.patch"
217 -)
218 -
219 -src_configure() {
220 - local mycxxflags=(
221 - -Wno-deprecated-declarations
222 - -Wno-error=deprecated-declarations
223 - -Wno-switch
224 - )
225 -
226 - append-cxxflags "${mycxxflags[@]}"
227 -
228 - # TODO: unbundle header-only libs, ofc telegram uses git versions...
229 - # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots
230 - # EXPECTED VARIANT
231 - local mycmakeargs=(
232 - -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
233 - -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
234 - -DDESKTOP_APP_USE_PACKAGED=ON
235 - -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF
236 - -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF
237 - -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF
238 - -DTDESKTOP_LAUNCHER_BASENAME="${PN}"
239 - -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)"
240 - -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell
241 - -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell
242 - )
243 -
244 - if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then
245 - einfo "Found custom API credentials"
246 - mycmakeargs+=(
247 - -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}"
248 - -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}"
249 - )
250 - else
251 - # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml
252 - # Building with snapcraft API credentials by default
253 - # Custom API credentials can be obtained here:
254 - # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md
255 - # After getting credentials you can export variables:
256 - # export MY_TDESKTOP_API_ID="17349""
257 - # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb"
258 - # and restart the build"
259 - # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop
260 - # portage will use custom variable every build automatically
261 - mycmakeargs+=(
262 - -DTDESKTOP_API_ID="611335"
263 - -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c"
264 - )
265 - fi
266 -
267 - cmake_src_configure
268 -}
269 -
270 -pkg_postinst() {
271 - xdg_desktop_database_update
272 - xdg_icon_cache_update
273 - xdg_mimeinfo_database_update
274 -}
275 -
276 -pkg_postrm() {
277 - xdg_desktop_database_update
278 - xdg_icon_cache_update
279 - xdg_mimeinfo_database_update
280 -}