Diff telegram-desktop-4.8.1-r3 with a telegram-desktop-4.8.4-r1

/usr/portage/net-im/telegram-desktop/telegram-desktop-4.8.4-r1.ebuild 2023-10-09 14:52:34.452368475 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{9..11} )
6
PYTHON_COMPAT=( python3_{9..12} )
7 7

  
8 8
inherit xdg cmake python-any-r1 optfeature flag-o-matic
9 9

  
......
16 16

  
17 17
LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+"
18 18
SLOT="0"
19
KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv"
20
IUSE="+dbus enchant +fonts +jemalloc screencast qt6 qt6-imageformats wayland +X"
19
KEYWORDS="~amd64 ~riscv"
20
IUSE="enchant +fonts +jemalloc screencast qt6 qt6-imageformats wayland +X"
21 21
REQUIRED_USE="
22 22
	qt6-imageformats? ( qt6 )
23 23
"
......
31 31
	!net-im/telegram-desktop-bin
32 32
	app-arch/lz4:=
33 33
	dev-cpp/abseil-cpp:=
34
	>=dev-cpp/glibmm-2.76:2.68
34 35
	dev-libs/glib:2
35 36
	dev-libs/libdispatch
36 37
	dev-libs/libsigc++:2
......
41 42
	media-libs/libjpeg-turbo:=
42 43
	~media-libs/libtgvoip-2.4.4_p20221208
43 44
	media-libs/openal
44
	media-libs/opus:=
45
	media-libs/opus
45 46
	media-libs/rnnoise
46 47
	~media-libs/tg_owt-0_pre20230428:=[screencast=,X=]
47 48
	media-video/ffmpeg:=[opus,vpx]
48 49
	sys-libs/zlib:=[minizip]
49 50
	virtual/opengl
50
	dbus? ( >=dev-cpp/glibmm-2.76:2.68 )
51 51
	!enchant? ( >=app-text/hunspell-1.7:= )
52 52
	enchant? ( app-text/enchant:= )
53 53
	jemalloc? ( dev-libs/jemalloc:=[-lazy-lock] )
54 54
	!qt6? (
55 55
		>=dev-qt/qtcore-5.15:5
56
		>=dev-qt/qtgui-5.15:5=[dbus?,jpeg,png,wayland?,X?]
56
		>=dev-qt/qtgui-5.15:5=[dbus,jpeg,png,wayland?,X?]
57 57
		>=dev-qt/qtimageformats-5.15:5
58 58
		>=dev-qt/qtnetwork-5.15:5[ssl]
59 59
		>=dev-qt/qtsvg-5.15:5
......
61 61
		kde-frameworks/kcoreaddons:=
62 62
	)
63 63
	qt6? (
64
		dev-qt/qt5compat:6
65
		dev-qt/qtbase:6=[dbus?,gui,network,opengl,widgets,X?]
64
		dev-qt/qtbase:6=[dbus,gui,network,opengl,widgets,X?]
66 65
		dev-qt/qtimageformats:6
67 66
		dev-qt/qtsvg:6
68 67
		wayland? ( dev-qt/qtwayland:6 )
......
77 76
	)
78 77
"
79 78
DEPEND="${RDEPEND}
80
	dev-cpp/range-v3
79
	dev-cpp/cppgir
81 80
	>=dev-cpp/ms-gsl-4
81
	dev-cpp/range-v3
82 82
"
83 83
BDEPEND="
84 84
	${PYTHON_DEPS}
85
	dev-cpp/cppgir
85 86
	>=dev-util/cmake-3.16
87
	dev-util/gdbus-codegen
86 88
	virtual/pkgconfig
87 89
"
88 90
# dev-libs/jemalloc:=[-lazy-lock] -> https://bugs.gentoo.org/803233
89 91

  
90 92
PATCHES=(
91 93
	"${FILESDIR}/tdesktop-4.2.4-jemalloc-only-telegram-r1.patch"
92
	"${FILESDIR}/tdesktop-4.4.1-fix-dupe-main-decl.patch"
94
	"${FILESDIR}/tdesktop-4.8.4-system-cppgir.patch"
95
	"${FILESDIR}/tdesktop-4.8.3-fix-clang.patch"
93 96
)
94 97

  
95 98
# Current desktop-file-utils-0.26 does not understand Version=1.5
......
104 107
	fi
105 108
}
106 109

  
110
pkg_setup() {
111
	# Having inaccessible paths sneak into the build environment through the
112
	# XDG_DATA_DIRS variable breaks cppgir.
113
	# bug 909038
114
	unset XDG_DATA_DIRS
115
}
116

  
107 117
src_prepare() {
108 118
	# Bundle kde-frameworks/kimageformats for qt6, since it's impossible to
109 119
	#   build in gentoo right now.
......
133 143
		-DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON  # header only lib, some git version. prevents warnings.
134 144
		-DQT_VERSION_MAJOR=$(usex qt6 6 5)
135 145

  
136
		-DDESKTOP_APP_DISABLE_DBUS_INTEGRATION=$(usex !dbus)
137 146
		-DDESKTOP_APP_DISABLE_X11_INTEGRATION=$(usex !X)
138 147
		-DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=$(usex !wayland)
139 148
		-DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc)
......
203 212
		elog
204 213
	fi
205 214
	optfeature_header
206
	optfeature "shop payment support (requires USE=dbus enabled)" net-libs/webkit-gtk:4
215
	optfeature "shop payment support" net-libs/webkit-gtk:4
207 216
	if ! use qt6; then
208 217
		optfeature "AVIF, HEIF and JpegXL image support" kde-frameworks/kimageformats[avif,heif,jpegxl]
209 218
	fi
Thank you!