1 |
commit: c793aa288187e2094355eb2aa841340adb48315c |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 12 09:04:21 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 09:10:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c793aa28 |
7 |
|
8 |
net-im/telegram-desktop: remove gtk3 useflag from 1.9.12 |
9 |
|
10 |
gtk integration is unneeded with system-qt according to upstream |
11 |
also remove unneeded musl patch |
12 |
and make possible to build without qdbus (patch will be upstream) |
13 |
|
14 |
Package-Manager: Portage-2.3.88, Repoman-2.3.20 |
15 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
16 |
|
17 |
net-im/telegram-desktop/files/1.9.12-dbus.patch | 13 +++++++++++++ |
18 |
net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild | 12 +++--------- |
19 |
2 files changed, 16 insertions(+), 9 deletions(-) |
20 |
|
21 |
diff --git a/net-im/telegram-desktop/files/1.9.12-dbus.patch b/net-im/telegram-desktop/files/1.9.12-dbus.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..d622645d8f8 |
24 |
--- /dev/null |
25 |
+++ b/net-im/telegram-desktop/files/1.9.12-dbus.patch |
26 |
@@ -0,0 +1,13 @@ |
27 |
+diff --git a/cmake/external/CMakeLists.txt b/cmake/external/CMakeLists.txt |
28 |
+index b52e2cd..e868a63 100644 |
29 |
+--- a/cmake/external/CMakeLists.txt |
30 |
++++ b/cmake/external/CMakeLists.txt |
31 |
+@@ -24,7 +24,7 @@ add_subdirectory(rlottie) |
32 |
+ if (APPLE) |
33 |
+ add_subdirectory(sp_media_key_tap) |
34 |
+ endif() |
35 |
+-if (LINUX) |
36 |
++if (LINUX AND Qt5DBus_FOUND AND dbusmenu-qt5_FOUND) |
37 |
+ add_subdirectory(statusnotifieritem) |
38 |
+ endif() |
39 |
+ add_subdirectory(variant) |
40 |
|
41 |
diff --git a/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild b/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild |
42 |
index 79b0ce1d5a0..7dd055b0574 100644 |
43 |
--- a/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild |
44 |
+++ b/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild |
45 |
@@ -16,10 +16,8 @@ SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${ |
46 |
LICENSE="GPL-3-with-openssl-exception" |
47 |
SLOT="0" |
48 |
KEYWORDS="~amd64 ~ppc64" |
49 |
-IUSE="+alsa ayatana dbus gtk3 libressl pulseaudio spell" |
50 |
+IUSE="+alsa ayatana dbus libressl pulseaudio spell" |
51 |
|
52 |
-# dbus still required to build, but use flag disables dbus usage at runtime |
53 |
-# pkg-config will pick up gtk2 first if found, needs a workaround |
54 |
RDEPEND=" |
55 |
!net-im/telegram-desktop-bin |
56 |
app-arch/lz4:= |
57 |
@@ -31,7 +29,6 @@ RDEPEND=" |
58 |
dev-libs/libdbusmenu-qt[qt5(+)] |
59 |
dev-libs/xxhash |
60 |
dev-qt/qtcore:5 |
61 |
- dev-qt/qtdbus:5 |
62 |
dev-qt/qtimageformats:5 |
63 |
dev-qt/qtnetwork:5 |
64 |
dev-qt/qtsvg:5 |
65 |
@@ -53,7 +50,7 @@ RDEPEND=" |
66 |
dev-qt/qtwidgets:5[png,xcb(-)] |
67 |
) |
68 |
ayatana? ( dev-libs/libappindicator:3 ) |
69 |
- gtk3? ( x11-libs/gtk+:3 ) |
70 |
+ dbus? ( dev-qt/qtdbus:5 ) |
71 |
pulseaudio? ( media-sound/pulseaudio ) |
72 |
spell? ( app-text/enchant:= ) |
73 |
" |
74 |
@@ -74,7 +71,7 @@ S="${WORKDIR}/${MY_P}" |
75 |
|
76 |
PATCHES=( |
77 |
"${FILESDIR}/0002-PPC-big-endian.patch" |
78 |
- "${FILESDIR}/musl.patch" |
79 |
+ "${FILESDIR}/${PV}-dbus.patch" |
80 |
) |
81 |
|
82 |
src_configure() { |
83 |
@@ -90,7 +87,6 @@ src_configure() { |
84 |
# it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
85 |
# EXPECTED VARIANT |
86 |
local mycmakeargs=( |
87 |
- -Ddisable_autoupdate=1 |
88 |
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
89 |
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
90 |
-DDESKTOP_APP_USE_PACKAGED=ON |
91 |
@@ -100,9 +96,7 @@ src_configure() { |
92 |
-DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON |
93 |
-DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
94 |
-DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" |
95 |
- -DTDESKTOP_DISABLE_GTK_INTEGRATION="$(usex gtk3 OFF ON)" |
96 |
-DTDESKTOP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
97 |
- -DTDESKTOP_FORCE_GTK_FILE_DIALOG="$(usex gtk3)" |
98 |
) |
99 |
|
100 |
if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |