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/
Date: Tue, 29 Nov 2022 14:59:42
Message-Id: 1669733948.ab5c67332de57286e173bbb2e7b5e5a51ff7738b.gyakovlev@gentoo
1 commit: ab5c67332de57286e173bbb2e7b5e5a51ff7738b
2 Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 27 19:06:52 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 14:59:08 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab5c6733
7
8 net-im/telegram-desktop: Drop old
9
10 Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/28453
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 net-im/telegram-desktop/Manifest | 1 -
15 .../telegram-desktop/telegram-desktop-4.3.1.ebuild | 203 ---------------------
16 2 files changed, 204 deletions(-)
17
18 diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest
19 index b7e61178b0e8..78584eec2e2a 100644
20 --- a/net-im/telegram-desktop/Manifest
21 +++ b/net-im/telegram-desktop/Manifest
22 @@ -1,4 +1,3 @@
23 DIST tdesktop-3.6.1-full.tar.gz 41226549 BLAKE2B 6922ae015e36f86597aaedf1212ed951d6313a8f5f76a8838ab7ef9e02afe0cbc428acd991488190bafdf28faf2a69a09a5a1e963b2aa6ed27ef941602e15d88 SHA512 dd216c720ea3b1c72669805bb31319746a7ddfe746d188bf2ae0c5cdf0a10b379fc2e888a26fe755d77381fc5d9aa638cedc76b2dce1f1126a9c1ef9c02da2ba
24 DIST tdesktop-4.2.4-full.tar.gz 49210806 BLAKE2B 5900f977156f8ec98098a5e2fe97efcc5c2d7e2768123268e4b232e384c47a02fec11b3d5d875f99134aace9d3d7f937defb83ea1572d41c7df52f4d1bda1e9c SHA512 c0b458e4f21855d1041f7343ffdd501890a7535d040b45a8bd565e545d5bc01a00703af65e14ae407bf53f81a6d28d3f7d6afa664eb5b8e5641b21bb8e669a3a
25 -DIST tdesktop-4.3.1-full.tar.gz 49305237 BLAKE2B 3f0605adb6b471ecd913921a836c8d0e09d5fb40f107290d085af2a0ad64f7f067014b381a50317ffa089ce68724629972c565619d4d24776ac3496c15d9959f SHA512 365c16f4260827e3ad7e066f6ec96fc97a6f5874df376933f16de20c3488c24f52bc1aa3bd5df936f29a198e287dc8e706b259d57d7d7a9d6468c7edc7568514
26 DIST tdesktop-4.3.4-full.tar.gz 50030732 BLAKE2B 68d9001128cca6e8a68d991e77a20f9764af9a634c37d792e92f7e77b0446b6d16ec1342f9e7ce7e0c49464f385f795164f9d176d65a74fc64fc072eae33d263 SHA512 415e0d60508317ef6d07e1f8aa2d974b166925f19349106cc543e487dd5bef8d1ff0548fb815682c6c4bb3bf762c08fcb1c7073f2c7ad305ae885b7979c70f88
27
28 diff --git a/net-im/telegram-desktop/telegram-desktop-4.3.1.ebuild b/net-im/telegram-desktop/telegram-desktop-4.3.1.ebuild
29 deleted file mode 100644
30 index 57495aa9e6cc..000000000000
31 --- a/net-im/telegram-desktop/telegram-desktop-4.3.1.ebuild
32 +++ /dev/null
33 @@ -1,203 +0,0 @@
34 -# Copyright 2020-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -
39 -PYTHON_COMPAT=( python3_{8..11} )
40 -
41 -inherit xdg cmake python-any-r1 optfeature
42 -
43 -DESCRIPTION="Official desktop client for Telegram"
44 -HOMEPAGE="https://desktop.telegram.org"
45 -
46 -MY_P="tdesktop-${PV}-full"
47 -SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz"
48 -S="${WORKDIR}/${MY_P}"
49 -
50 -LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+"
51 -SLOT="0"
52 -KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
53 -IUSE="+dbus enchant +fonts +hunspell +jemalloc screencast +spell qt6 qt6-imageformats wayland +X"
54 -REQUIRED_USE="
55 - spell? (
56 - ^^ ( enchant hunspell )
57 - )
58 - qt6-imageformats? ( qt6 )
59 -"
60 -
61 -KIMAGEFORMATS_RDEPEND="
62 - media-libs/libavif:=
63 - media-libs/libheif:=
64 - media-libs/libjxl
65 -"
66 -RDEPEND="
67 - !net-im/telegram-desktop-bin
68 - app-arch/lz4:=
69 - dev-cpp/abseil-cpp:=
70 - dev-libs/glib:2
71 - dev-libs/libdispatch
72 - dev-libs/libsigc++:2
73 - dev-libs/openssl:=
74 - dev-libs/xxhash
75 - media-libs/fontconfig:=
76 - media-libs/libjpeg-turbo:=
77 - ~media-libs/libtgvoip-2.4.4_p20220503
78 - media-libs/openal
79 - media-libs/opus:=
80 - media-libs/rnnoise
81 - ~media-libs/tg_owt-0_pre20220507:=[screencast=,X=]
82 - media-video/ffmpeg:=[opus]
83 - sys-libs/zlib:=[minizip]
84 - x11-libs/xcb-util-keysyms
85 - virtual/opengl
86 - dbus? ( dev-cpp/glibmm:2.68 )
87 - enchant? ( app-text/enchant:= )
88 - hunspell? ( >=app-text/hunspell-1.7:= )
89 - jemalloc? ( dev-libs/jemalloc:=[-lazy-lock] )
90 - !qt6? (
91 - >=dev-qt/qtcore-5.15:5
92 - >=dev-qt/qtgui-5.15:5[dbus?,jpeg,png,wayland?,X?]
93 - >=dev-qt/qtimageformats-5.15:5
94 - >=dev-qt/qtnetwork-5.15:5[ssl]
95 - >=dev-qt/qtsvg-5.15:5
96 - >=dev-qt/qtwidgets-5.15:5[png,X?]
97 - kde-frameworks/kcoreaddons:=
98 - )
99 - qt6? (
100 - dev-qt/qt5compat:6
101 - dev-qt/qtbase:6[dbus?,gui,network,opengl,widgets,X?]
102 - dev-qt/qtimageformats:6
103 - dev-qt/qtsvg:6
104 - wayland? ( dev-qt/qtwayland:6 )
105 - qt6-imageformats? ( ${KIMAGEFORMATS_RDEPEND} )
106 - )
107 - X? ( x11-libs/libxcb:= )
108 -"
109 -DEPEND="${RDEPEND}
110 - dev-cpp/range-v3
111 - =dev-cpp/ms-gsl-3*
112 -"
113 -BDEPEND="
114 - ${PYTHON_DEPS}
115 - >=dev-util/cmake-3.16
116 - virtual/pkgconfig
117 -"
118 -# dev-libs/jemalloc:=[-lazy-lock] -> https://bugs.gentoo.org/803233
119 -
120 -PATCHES=(
121 - "${FILESDIR}/tdesktop-4.2.4-jemalloc-only-telegram.patch"
122 - "${FILESDIR}/tdesktop-3.3.0-fix-enchant.patch"
123 -)
124 -
125 -# Current desktop-file-utils-0.26 does not understand Version=1.5
126 -QA_DESKTOP_FILE="usr/share/applications/${PN}.desktop"
127 -
128 -pkg_pretend() {
129 - if has ccache ${FEATURES}; then
130 - ewarn "ccache does not work with ${PN} out of the box"
131 - ewarn "due to usage of precompiled headers"
132 - ewarn "check bug https://bugs.gentoo.org/715114 for more info"
133 - ewarn
134 - fi
135 -}
136 -
137 -src_prepare() {
138 - # Bundle kde-frameworks/kimageformats for qt6, since it's impossible to
139 - # build in gentoo right now.
140 - if use qt6-imageformats; then
141 - sed -e 's/DESKTOP_APP_USE_PACKAGED_LAZY/TRUE/' -i \
142 - cmake/external/kimageformats/CMakeLists.txt || die
143 - printf "%s\n" \
144 - 'Q_IMPORT_PLUGIN(QAVIFPlugin)' \
145 - 'Q_IMPORT_PLUGIN(HEIFPlugin)' \
146 - 'Q_IMPORT_PLUGIN(QJpegXLPlugin)' \
147 - >> cmake/external/qt/qt_static_plugins/qt_static_plugins.cpp || die
148 - fi
149 -
150 - # kde-frameworks/kcoreaddons is bundled when using qt6, see:
151 - # cmake/external/kcoreaddons/CMakeLists.txt
152 -
153 - cmake_src_prepare
154 -}
155 -
156 -src_configure() {
157 - local mycmakeargs=(
158 - -DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON # header only lib, some git version. prevents warnings.
159 - -DQT_VERSION_MAJOR=$(usex qt6 6 5)
160 -
161 - -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION=$(usex !dbus)
162 - -DDESKTOP_APP_DISABLE_X11_INTEGRATION=$(usex !X)
163 - -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=$(usex !wayland)
164 - -DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc)
165 - -DDESKTOP_APP_DISABLE_SPELLCHECK=$(usex !spell) # enables hunspell (recommended)
166 - -DDESKTOP_APP_USE_ENCHANT=$(usex enchant) # enables enchant and disables hunspell
167 - -DDESKTOP_APP_USE_PACKAGED_FONTS=$(usex !fonts) # use system fonts instead of bundled ones
168 - )
169 -
170 - if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then
171 - einfo "Found custom API credentials"
172 - mycmakeargs+=(
173 - -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}"
174 - -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}"
175 - )
176 - else
177 - # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml
178 - # Building with snapcraft API credentials by default
179 - # Custom API credentials can be obtained here:
180 - # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md
181 - # After getting credentials you can export variables:
182 - # export MY_TDESKTOP_API_ID="17349""
183 - # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb"
184 - # and restart the build"
185 - # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop
186 - # portage will use custom variable every build automatically
187 - mycmakeargs+=(
188 - -DTDESKTOP_API_ID="611335"
189 - -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c"
190 - )
191 - fi
192 -
193 - cmake_src_configure
194 -}
195 -
196 -pkg_postinst() {
197 - xdg_pkg_postinst
198 - if ! use X && ! use screencast; then
199 - ewarn "both the 'X' and 'screencast' USE flags are disabled, screen sharing won't work!"
200 - ewarn
201 - fi
202 - if has_version '<dev-qt/qtcore-5.15.2-r10'; then
203 - ewarn "Versions of dev-qt/qtcore lower than 5.15.2-r10 might cause telegram"
204 - ewarn "to crash when pasting big images from the clipboard."
205 - ewarn
206 - fi
207 - if ! use jemalloc && use elibc_glibc; then
208 - # https://github.com/telegramdesktop/tdesktop/issues/16084
209 - # https://github.com/desktop-app/cmake_helpers/pull/91#issuecomment-881788003
210 - ewarn "Disabling USE=jemalloc on glibc systems may cause very high RAM usage!"
211 - ewarn "Do NOT report issues about RAM usage without enabling this flag first."
212 - ewarn
213 - fi
214 - if use qt6; then
215 - ewarn "Qt6 support in gentoo is experimental."
216 - ewarn "Please report any issues you may find, but don't expect"
217 - ewarn "everything to work correctly as of yet."
218 - ewarn
219 - fi
220 - if use wayland && ! use qt6; then
221 - ewarn "Wayland-specific integrations have been deprecated with Qt5."
222 - ewarn "The app will continue to function under wayland, but some"
223 - ewarn "functionality may be reduced."
224 - ewarn "These integrations are only supported when built with Qt6."
225 - ewarn
226 - fi
227 - if use qt6 && ! use qt6-imageformats; then
228 - elog "Enable USE=qt6-imageformats for AVIF, HEIF and JpegXL support"
229 - elog
230 - fi
231 - optfeature_header
232 - optfeature "shop payment support (requires USE=dbus enabled)" net-libs/webkit-gtk:4
233 - if ! use qt6; then
234 - optfeature "AVIF, HEIF and JpegXL image support" kde-frameworks/kimageformats
235 - fi
236 -}