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, 02 Aug 2022 22:07:33
Message-Id: 1659478042.a95f43ef69c6803ba7c90420b336e8645e2f12d5.gyakovlev@gentoo
1 commit: a95f43ef69c6803ba7c90420b336e8645e2f12d5
2 Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 29 11:21:24 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 22:07:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a95f43ef
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/26649
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13
14 net-im/telegram-desktop/Manifest | 1 -
15 .../telegram-desktop-3.5.2-r1.ebuild | 158 ---------------------
16 2 files changed, 159 deletions(-)
17
18 diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest
19 index 480b5e46f4e2..5cc1ba90b246 100644
20 --- a/net-im/telegram-desktop/Manifest
21 +++ b/net-im/telegram-desktop/Manifest
22 @@ -1,3 +1,2 @@
23 -DIST tdesktop-3.5.2-full.tar.gz 41216346 BLAKE2B 5f2570073e02c5aadbf5f9b6251f9b71e9a608d97763bd3a792d3c4836b68245410142face3446660b68e519bd7e71df0319cb1ff1ea1fed24327ac8db0e8d0b SHA512 adb95fb37fedba6344107e4dd789b88563e24e6a01c7b944d9e5365ceccff60d774eb31a2c1e39cd200ef6de83317fe654956cfecaa1e13c7b2fdbf4c38f057e
24 DIST tdesktop-3.6.1-full.tar.gz 41226549 BLAKE2B 6922ae015e36f86597aaedf1212ed951d6313a8f5f76a8838ab7ef9e02afe0cbc428acd991488190bafdf28faf2a69a09a5a1e963b2aa6ed27ef941602e15d88 SHA512 dd216c720ea3b1c72669805bb31319746a7ddfe746d188bf2ae0c5cdf0a10b379fc2e888a26fe755d77381fc5d9aa638cedc76b2dce1f1126a9c1ef9c02da2ba
25 DIST tdesktop-4.0.2-full.tar.gz 41059443 BLAKE2B da4efb15c8a2d11719d3aa56c3a40b12f70c37577d2909c43e6029e10ca0bb1f8445ed68ed9acd532009c8e0a8f48fa13d2a51573a81f58a8a83b13427ffb631 SHA512 0078b627d06dd8e655bd2bcc222ecbb3b15b7d88f858810bccdca84793ad02a60f4a4bf3808838752d65d4f6cffa3ddb5f70c5afc8e94cb6edae52101362feeb
26
27 diff --git a/net-im/telegram-desktop/telegram-desktop-3.5.2-r1.ebuild b/net-im/telegram-desktop/telegram-desktop-3.5.2-r1.ebuild
28 deleted file mode 100644
29 index 757e0eab2ba4..000000000000
30 --- a/net-im/telegram-desktop/telegram-desktop-3.5.2-r1.ebuild
31 +++ /dev/null
32 @@ -1,158 +0,0 @@
33 -# Copyright 2020-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=8
37 -
38 -PYTHON_COMPAT=( python3_{8..10} )
39 -
40 -inherit xdg cmake python-any-r1 optfeature flag-o-matic
41 -
42 -DESCRIPTION="Official desktop client for Telegram"
43 -HOMEPAGE="https://desktop.telegram.org"
44 -
45 -MY_P="tdesktop-${PV}-full"
46 -SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz"
47 -S="${WORKDIR}/${MY_P}"
48 -
49 -LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+"
50 -SLOT="0"
51 -KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv"
52 -IUSE="+dbus enchant +hunspell +jemalloc screencast +spell wayland +X"
53 -REQUIRED_USE="
54 - spell? (
55 - ^^ ( enchant hunspell )
56 - )
57 -"
58 -
59 -RDEPEND="
60 - !net-im/telegram-desktop-bin
61 - app-arch/lz4:=
62 - dev-cpp/abseil-cpp:=
63 - dev-libs/libdispatch
64 - dev-libs/openssl:=
65 - dev-libs/xxhash
66 - >=dev-qt/qtcore-5.15:5
67 - >=dev-qt/qtgui-5.15:5[dbus?,jpeg,png,wayland?,X?]
68 - >=dev-qt/qtimageformats-5.15:5
69 - >=dev-qt/qtnetwork-5.15:5[ssl]
70 - >=dev-qt/qtsvg-5.15:5
71 - >=dev-qt/qtwidgets-5.15:5[png,X?]
72 - media-fonts/open-sans
73 - media-libs/fontconfig:=
74 - ~media-libs/libtgvoip-2.4.4_p20220117
75 - media-libs/openal
76 - media-libs/opus:=
77 - media-libs/rnnoise
78 - ~media-libs/tg_owt-0_pre20220209[screencast=,X=]
79 - media-video/ffmpeg:=[opus]
80 - sys-libs/zlib:=[minizip]
81 - dbus? (
82 - dev-cpp/glibmm:2
83 - dev-qt/qtdbus:5
84 - dev-libs/libdbusmenu-qt[qt5(+)]
85 - )
86 - enchant? ( app-text/enchant:= )
87 - hunspell? ( >=app-text/hunspell-1.7:= )
88 - jemalloc? ( dev-libs/jemalloc:=[-lazy-lock] )
89 - wayland? ( kde-frameworks/kwayland:= )
90 - X? ( x11-libs/libxcb:= )
91 -"
92 -DEPEND="${RDEPEND}
93 - dev-cpp/range-v3
94 - =dev-cpp/ms-gsl-3*
95 -"
96 -BDEPEND="
97 - ${PYTHON_DEPS}
98 - >=dev-util/cmake-3.16
99 - virtual/pkgconfig
100 -"
101 -# dev-libs/jemalloc:=[-lazy-lock] -> https://bugs.gentoo.org/803233
102 -
103 -PATCHES=(
104 - "${FILESDIR}/tdesktop-3.5.2-jemalloc-only-telegram.patch"
105 - "${FILESDIR}/tdesktop-3.3.0-fix-enchant.patch"
106 - "${FILESDIR}/tdesktop-3.5.2-musl.patch"
107 - "${FILESDIR}/tdesktop-3.5.2-jemalloc-optional.patch"
108 - "${FILESDIR}/tdesktop-3.6.1-fix-kwayland-5.93.patch"
109 -)
110 -
111 -pkg_pretend() {
112 - if has ccache ${FEATURES}; then
113 - ewarn
114 - ewarn "ccache does not work with ${PN} out of the box"
115 - ewarn "due to usage of precompiled headers"
116 - ewarn "check bug https://bugs.gentoo.org/715114 for more info"
117 - ewarn
118 - fi
119 -}
120 -
121 -src_prepare() {
122 - # no explicit toggle, doesn't build with the system one #752417
123 - sed -i 's/DESKTOP_APP_USE_PACKAGED/NO_ONE_WILL_EVER_SET_THIS/' \
124 - cmake/external/rlottie/CMakeLists.txt || die
125 -
126 - cmake_src_prepare
127 -}
128 -
129 -src_configure() {
130 - local mycmakeargs=(
131 - -DTDESKTOP_LAUNCHER_BASENAME="${PN}"
132 - -DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON # header only lib, some git version. prevents warnings.
133 - -DDESKTOP_APP_QT6=OFF
134 -
135 - -DDESKTOP_APP_DISABLE_DBUS_INTEGRATION=$(usex !dbus)
136 - -DDESKTOP_APP_DISABLE_X11_INTEGRATION=$(usex !X)
137 - -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=$(usex !wayland)
138 - -DDESKTOP_APP_DISABLE_SPELLCHECK=$(usex !spell) # enables hunspell (recommended)
139 - -DDESKTOP_APP_USE_ENCHANT=$(usex enchant) # enables enchant and disables hunspell
140 -
141 - # This option is heavily discouraged by upstream.
142 - # See files/tdesktop-*-jemalloc-optional.patch
143 - -DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc)
144 - )
145 -
146 - if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then
147 - einfo "Found custom API credentials"
148 - mycmakeargs+=(
149 - -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}"
150 - -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}"
151 - )
152 - else
153 - # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml
154 - # Building with snapcraft API credentials by default
155 - # Custom API credentials can be obtained here:
156 - # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md
157 - # After getting credentials you can export variables:
158 - # export MY_TDESKTOP_API_ID="17349""
159 - # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb"
160 - # and restart the build"
161 - # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop
162 - # portage will use custom variable every build automatically
163 - mycmakeargs+=(
164 - -DTDESKTOP_API_ID="611335"
165 - -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c"
166 - )
167 - fi
168 -
169 - cmake_src_configure
170 -}
171 -
172 -pkg_postinst() {
173 - xdg_pkg_postinst
174 - if ! use X && ! use screencast; then
175 - elog "both the 'X' and 'screencast' useflags are disabled, screen sharing won't work!"
176 - elog
177 - fi
178 - if has_version '<dev-qt/qtcore-5.15.2-r10'; then
179 - ewarn "Versions of dev-qt/qtcore lower than 5.15.2-r10 might cause telegram"
180 - ewarn "to crash when pasting big images from the clipboard."
181 - ewarn
182 - fi
183 - if ! use jemalloc && use elibc_glibc; then
184 - ewarn "Disabling USE=jemalloc on glibc systems may cause very high RAM usage!"
185 - ewarn "Do NOT report issues about RAM usage without enabling this flag first."
186 - ewarn
187 - fi
188 - optfeature_header
189 - optfeature "shop payment support (requires USE=dbus enabled)" net-libs/webkit-gtk
190 -}