1 |
commit: 8002c9f47332b83d9f09c134ea6dbbe856314e8d |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 3 09:05:05 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 3 09:06:34 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8002c9f4 |
7 |
|
8 |
net-im/telegram-desktop: drop 2.4.5 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-im/telegram-desktop/Manifest | 1 - |
14 |
.../telegram-desktop/telegram-desktop-2.4.5.ebuild | 173 --------------------- |
15 |
2 files changed, 174 deletions(-) |
16 |
|
17 |
diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest |
18 |
index 726803c3941..9219e31da0b 100644 |
19 |
--- a/net-im/telegram-desktop/Manifest |
20 |
+++ b/net-im/telegram-desktop/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST tdesktop-2.4.5-full.tar.gz 36354189 BLAKE2B cdf31b5bc1c90e0714fe648929ee18aed29c3ff2b5e6f9dc96b4e9741267aae092415fd1b304a54b98e462a90375f8087d727d067b4865c7a8b3a89a68a59189 SHA512 d0c792fcd890a95b24233f37cdfc34008e814f6f0730722a41916e25d2efff405fd472bd6b45bbfc79787ed117dc5f87271c438d92ec1ce29335cabe76a1062e |
23 |
DIST tdesktop-2.4.6-full.tar.gz 36355592 BLAKE2B 9481158301cec5518182da9cf9739d82126aa2d0941d51eee840d94bc7b561103d6e65439347f6b15ce17970f68e335f177126db0a7fdf81ac6e668f14a3e3db SHA512 922b9d00a90866899c2817aaa24273b2ac8525bb18543598c8f203846d2e2e3849485cfcbce081d4dfbd45ebafe40dd57434f08849781a4f1d011b3518d03a6b |
24 |
|
25 |
diff --git a/net-im/telegram-desktop/telegram-desktop-2.4.5.ebuild b/net-im/telegram-desktop/telegram-desktop-2.4.5.ebuild |
26 |
deleted file mode 100644 |
27 |
index 9c70f67350e..00000000000 |
28 |
--- a/net-im/telegram-desktop/telegram-desktop-2.4.5.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,173 +0,0 @@ |
31 |
-# Copyright 2020 Gentoo Authors |
32 |
-# Distributed under the terms of the GNU General Public License v2 |
33 |
- |
34 |
-EAPI=7 |
35 |
- |
36 |
-PYTHON_COMPAT=( python3_{7,8,9} ) |
37 |
- |
38 |
-inherit cmake desktop flag-o-matic ninja-utils python-any-r1 xdg-utils |
39 |
- |
40 |
-MY_P="tdesktop-${PV}-full" |
41 |
- |
42 |
-DESCRIPTION="Official desktop client for Telegram" |
43 |
-HOMEPAGE="https://desktop.telegram.org" |
44 |
-SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
45 |
- |
46 |
-LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+" |
47 |
-SLOT="0" |
48 |
-KEYWORDS="amd64 ~ppc64" |
49 |
-IUSE="+dbus enchant +gtk +hunspell libressl lto pulseaudio +spell +webrtc +X" |
50 |
- |
51 |
-RDEPEND=" |
52 |
- !net-im/telegram-desktop-bin |
53 |
- app-arch/lz4:= |
54 |
- app-arch/xz-utils |
55 |
- !libressl? ( dev-libs/openssl:0= ) |
56 |
- libressl? ( dev-libs/libressl:0= ) |
57 |
- dev-libs/xxhash |
58 |
- dev-qt/qtcore:5 |
59 |
- dev-qt/qtgui:5[dbus?,jpeg,png,wayland,X(-)?] |
60 |
- dev-qt/qtimageformats:5 |
61 |
- dev-qt/qtnetwork:5 |
62 |
- dev-qt/qtsvg:5 |
63 |
- dev-qt/qtwidgets:5[png,X(-)?] |
64 |
- media-fonts/open-sans |
65 |
- media-libs/alsa-lib |
66 |
- media-libs/fontconfig:= |
67 |
- ~media-libs/libtgvoip-2.4.4_p20201030[pulseaudio=] |
68 |
- media-libs/openal[alsa] |
69 |
- media-libs/opus:= |
70 |
- media-video/ffmpeg:=[alsa,opus] |
71 |
- sys-libs/zlib[minizip] |
72 |
- virtual/libiconv |
73 |
- x11-libs/libxcb:= |
74 |
- dbus? ( |
75 |
- dev-qt/qtdbus:5 |
76 |
- dev-libs/libdbusmenu-qt[qt5(+)] |
77 |
- ) |
78 |
- enchant? ( app-text/enchant:= ) |
79 |
- gtk? ( |
80 |
- dev-libs/glib:2 |
81 |
- x11-libs/gdk-pixbuf:2[jpeg,X?] |
82 |
- x11-libs/gtk+:3[X?] |
83 |
- x11-libs/libX11 |
84 |
- ) |
85 |
- hunspell? ( >=app-text/hunspell-1.7:= ) |
86 |
- !pulseaudio? ( media-sound/apulse[sdk] ) |
87 |
- pulseaudio? ( media-sound/pulseaudio ) |
88 |
- webrtc? ( |
89 |
- media-libs/libjpeg-turbo:= |
90 |
- ~media-libs/tg_owt-0_pre20201030[pulseaudio=] |
91 |
- ) |
92 |
-" |
93 |
- |
94 |
-DEPEND=" |
95 |
- ${PYTHON_DEPS} |
96 |
- ${RDEPEND} |
97 |
- dev-cpp/range-v3 |
98 |
- =dev-cpp/ms-gsl-3* |
99 |
-" |
100 |
- |
101 |
-BDEPEND=" |
102 |
- >=dev-util/cmake-3.16 |
103 |
- virtual/pkgconfig |
104 |
- amd64? ( dev-lang/yasm ) |
105 |
-" |
106 |
- |
107 |
-REQUIRED_USE=" |
108 |
- spell? ( |
109 |
- ^^ ( enchant hunspell ) |
110 |
- ) |
111 |
- webrtc? ( !libressl ) |
112 |
-" |
113 |
- |
114 |
-S="${WORKDIR}/${MY_P}" |
115 |
- |
116 |
-pkg_pretend() { |
117 |
- if has ccache ${FEATURES}; then |
118 |
- ewarn |
119 |
- ewarn "ccache does not work with ${PN} out of the box" |
120 |
- ewarn "due to usage of precompiled headers" |
121 |
- ewarn "check bug https://bugs.gentoo.org/715114 for more info" |
122 |
- ewarn |
123 |
- fi |
124 |
-} |
125 |
- |
126 |
-src_prepare() { |
127 |
- # conditional patching is bad, but we want vanilla telegram with webrtc. |
128 |
- use webrtc || local PATCHES=( "${FILESDIR}/no-webrtc-build.patch" ) |
129 |
- |
130 |
- # no explicit toggle #752417 |
131 |
- sed -i 's/DESKTOP_APP_USE_PACKAGED/NO_ONE_WILL_EVER_SET_THIS/' \ |
132 |
- cmake/external/rlottie/CMakeLists.txt || die |
133 |
- |
134 |
- cmake_src_prepare |
135 |
-} |
136 |
- |
137 |
-src_configure() { |
138 |
- local mycxxflags=( |
139 |
- -Wno-deprecated-declarations |
140 |
- -Wno-error=deprecated-declarations |
141 |
- -Wno-switch |
142 |
- -Wno-unknown-warning-option |
143 |
- ) |
144 |
- |
145 |
- append-cxxflags "${mycxxflags[@]}" |
146 |
- |
147 |
- # TODO: unbundle header-only libs, ofc telegram uses git versions... |
148 |
- # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
149 |
- # EXPECTED VARIANT |
150 |
- # gtk is really needed for image copy-paste due to https://bugreports.qt.io/browse/QTBUG-56595 |
151 |
- local mycmakeargs=( |
152 |
- -DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON # header only lib, some git version. prevents warnings. |
153 |
- -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
154 |
- -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
155 |
- -DDESKTOP_APP_USE_PACKAGED=ON |
156 |
- -DDESKTOP_APP_USE_PACKAGED_FONTS=ON |
157 |
- -DTDESKTOP_DISABLE_GTK_INTEGRATION="$(usex gtk OFF ON)" |
158 |
- -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
159 |
- -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
160 |
- -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" # enables hunspell (recommended) |
161 |
- -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION="$(usex webrtc OFF ON)" |
162 |
- -DDESKTOP_APP_USE_ENCHANT="$(usex enchant ON OFF)" # enables enchant and disables hunspell |
163 |
- $(usex lto "-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON" '') |
164 |
- ) |
165 |
- |
166 |
- if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
167 |
- einfo "Found custom API credentials" |
168 |
- mycmakeargs+=( |
169 |
- -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
170 |
- -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
171 |
- ) |
172 |
- else |
173 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml |
174 |
- # Building with snapcraft API credentials by default |
175 |
- # Custom API credentials can be obtained here: |
176 |
- # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md |
177 |
- # After getting credentials you can export variables: |
178 |
- # export MY_TDESKTOP_API_ID="17349"" |
179 |
- # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" |
180 |
- # and restart the build" |
181 |
- # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop |
182 |
- # portage will use custom variable every build automatically |
183 |
- mycmakeargs+=( |
184 |
- -DTDESKTOP_API_ID="611335" |
185 |
- -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" |
186 |
- ) |
187 |
- fi |
188 |
- |
189 |
- cmake_src_configure |
190 |
-} |
191 |
- |
192 |
-pkg_postinst() { |
193 |
- xdg_desktop_database_update |
194 |
- xdg_icon_cache_update |
195 |
- xdg_mimeinfo_database_update |
196 |
- use gtk || einfo "enable 'gtk' useflag if you have image copy-paste problems" |
197 |
-} |
198 |
- |
199 |
-pkg_postrm() { |
200 |
- xdg_desktop_database_update |
201 |
- xdg_icon_cache_update |
202 |
- xdg_mimeinfo_database_update |
203 |
-} |