1 |
commit: 71616a7b97bdea936ca456e99dfb9c3fbbc9c86e |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 12 21:53:52 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 22:42:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71616a7b |
7 |
|
8 |
net-im/telegram-desktop: bump to 1.9.13 |
9 |
|
10 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
net-im/telegram-desktop/Manifest | 1 + |
14 |
.../telegram-desktop-1.9.13.ebuild | 135 +++++++++++++++++++++ |
15 |
2 files changed, 136 insertions(+) |
16 |
|
17 |
diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest |
18 |
index c42d91aaec0..6dd775ef92f 100644 |
19 |
--- a/net-im/telegram-desktop/Manifest |
20 |
+++ b/net-im/telegram-desktop/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST tdesktop-1.9.10-full.tar.gz 25272713 BLAKE2B 26b2eb49b5b55dac21be46d37ff7ddd3b6ea4490e58d8a04aaada3237b81cfbb87f2422d179882407501db2a597718f4974629791c8d3f165673fe953bdecbf6 SHA512 128dc3fd42196ebf61853917914c3d33fb148d3e6b04847ffa6d4df5baa8d9e286e7d25317b0dd2a332f1475f60b5addd19bb6e25a0fa6bbca316c22235569c6 |
23 |
DIST tdesktop-1.9.12-full.tar.gz 25324201 BLAKE2B ea4a5ee18c68cd332dd2f1f79fb2a1c376c2c8142f44924220ea44e9d2ff9a4db00770b80ef7fdcedd3f4c114f1f9c6f6c0f44df527117f144a59b8d845d4bf9 SHA512 11b6be5fa4db95a8b329b492edcdeca2cf834c274a86a26fac3e62254649e5767da6b2442eff6f7b48b975f4b319fee46d10e9430e28a3ef080146a8deb3bfb2 |
24 |
+DIST tdesktop-1.9.13-full.tar.gz 25324119 BLAKE2B 70029ea0dd68fd4be3ba540831111b79d223e059f70551a970847190b00f2aaebc13319236b2c681b2a55ee99408d20e6feea3fc3ab2fb9c97d4740fd4c6a644 SHA512 995face8a2ffb54f9f31aaa8d5a26421f4915e73360945553b6fa4e4b02431ca83ec1e72d6d2ce77f5b9daa39892859c88f7ea53c3ddbeec2cb37f27451878d2 |
25 |
DIST tdesktop-1.9.8-full.tar.gz 25225784 BLAKE2B d938dc5d82740f93c575f621697e4bae430dc045c18437957bead6cc949ad0643b0422d8fd2a1695af921ea7f259ca323094a4a7821855d842edfaf4f328c840 SHA512 5562eb99812a8faec74fe073323d6e04e36311c1e4ce984035212ecfed8bd5d12df92cd0f0022401201136315fb5556971b267b4bf47edf4eeddc9926c7969dc |
26 |
DIST tdesktop-1.9.9-full.tar.gz 25221934 BLAKE2B c8f6252fd6e72785a39c92f04e5dadf322775fc1a178f2c6dac9e38cb654b9eb924c16cffcf9dc47e2e309e4f27a13ea07235146e7d7960b6bd0a342a3645e03 SHA512 ba6400e6f5eec5bda6e8a54b43846e695b2cce731cb6b39f17407cc39e3e9b8078d977253d29962671f30e33dbe012f8e40f340f781fd8ca73487e5f2d42e3de |
27 |
|
28 |
diff --git a/net-im/telegram-desktop/telegram-desktop-1.9.13.ebuild b/net-im/telegram-desktop/telegram-desktop-1.9.13.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..fbc0c464b1d |
31 |
--- /dev/null |
32 |
+++ b/net-im/telegram-desktop/telegram-desktop-1.9.13.ebuild |
33 |
@@ -0,0 +1,135 @@ |
34 |
+# Copyright 2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{6,7} ) |
40 |
+ |
41 |
+inherit cmake desktop flag-o-matic python-any-r1 xdg-utils |
42 |
+ |
43 |
+MY_P="tdesktop-${PV}-full" |
44 |
+ |
45 |
+DESCRIPTION="Official desktop client for Telegram" |
46 |
+HOMEPAGE="https://desktop.telegram.org" |
47 |
+SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-3-with-openssl-exception" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~ppc64" |
52 |
+IUSE="+alsa dbus libressl pulseaudio spell" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ !net-im/telegram-desktop-bin |
56 |
+ app-arch/lz4:= |
57 |
+ app-arch/xz-utils |
58 |
+ !libressl? ( dev-libs/openssl:0= ) |
59 |
+ libressl? ( dev-libs/libressl:0= ) |
60 |
+ >=dev-cpp/ms-gsl-2.1.0 |
61 |
+ dev-cpp/range-v3 |
62 |
+ dev-libs/libdbusmenu-qt[qt5(+)] |
63 |
+ dev-libs/xxhash |
64 |
+ dev-qt/qtcore:5 |
65 |
+ dev-qt/qtdbus:5 |
66 |
+ dev-qt/qtimageformats:5 |
67 |
+ dev-qt/qtnetwork:5 |
68 |
+ dev-qt/qtsvg:5 |
69 |
+ media-libs/fontconfig:= |
70 |
+ >=media-libs/libtgvoip-2.4.4_p20200212[alsa?,pulseaudio?] |
71 |
+ media-libs/openal[alsa?,pulseaudio?] |
72 |
+ media-libs/opus:= |
73 |
+ media-video/ffmpeg:=[opus] |
74 |
+ sys-libs/zlib[minizip] |
75 |
+ virtual/libiconv |
76 |
+ x11-libs/libva:=[X,drm] |
77 |
+ x11-libs/libX11 |
78 |
+ || ( |
79 |
+ dev-qt/qtgui:5[jpeg,png,X(-)] |
80 |
+ dev-qt/qtgui:5[jpeg,png,xcb(-)] |
81 |
+ ) |
82 |
+ || ( |
83 |
+ dev-qt/qtwidgets:5[png,X(-)] |
84 |
+ dev-qt/qtwidgets:5[png,xcb(-)] |
85 |
+ ) |
86 |
+ pulseaudio? ( media-sound/pulseaudio ) |
87 |
+ spell? ( app-text/enchant:= ) |
88 |
+" |
89 |
+ |
90 |
+DEPEND=" |
91 |
+ ${PYTHON_DEPS} |
92 |
+ ${RDEPEND} |
93 |
+" |
94 |
+ |
95 |
+BDEPEND=" |
96 |
+ >=dev-util/cmake-3.16 |
97 |
+ virtual/pkgconfig |
98 |
+" |
99 |
+ |
100 |
+REQUIRED_USE="|| ( alsa pulseaudio )" |
101 |
+ |
102 |
+S="${WORKDIR}/${MY_P}" |
103 |
+ |
104 |
+PATCHES=( |
105 |
+ "${FILESDIR}/0002-PPC-big-endian.patch" |
106 |
+) |
107 |
+ |
108 |
+src_configure() { |
109 |
+ local mycxxflags=( |
110 |
+ -Wno-deprecated-declarations |
111 |
+ -Wno-error=deprecated-declarations |
112 |
+ -Wno-switch |
113 |
+ ) |
114 |
+ |
115 |
+ append-cxxflags "${mycxxflags[@]}" |
116 |
+ |
117 |
+ # TODO: unbundle header-only libs, ofc telegram uses git versions... |
118 |
+ # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots |
119 |
+ # EXPECTED VARIANT |
120 |
+ local mycmakeargs=( |
121 |
+ -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON |
122 |
+ -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF |
123 |
+ -DDESKTOP_APP_USE_PACKAGED=ON |
124 |
+ -DDESKTOP_APP_USE_PACKAGED_EXPECTED=OFF |
125 |
+ -DDESKTOP_APP_USE_PACKAGED_RLOTTIE=OFF |
126 |
+ -DDESKTOP_APP_USE_PACKAGED_VARIANT=OFF |
127 |
+ -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON |
128 |
+ -DTDESKTOP_LAUNCHER_BASENAME="${PN}" |
129 |
+ -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" |
130 |
+ -DTDESKTOP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" |
131 |
+ ) |
132 |
+ |
133 |
+ if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then |
134 |
+ einfo "Found custom API credentials" |
135 |
+ mycmakeargs+=( |
136 |
+ -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" |
137 |
+ -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" |
138 |
+ ) |
139 |
+ else |
140 |
+ mycmakeargs+=( -DTDESKTOP_API_TEST=ON ) |
141 |
+ ewarn |
142 |
+ ewarn "Building ${PN} with test API credentials." |
143 |
+ ewarn "Connectivity to API servers will be throttled." |
144 |
+ ewarn "To build ${PN} custom API credentials cancel build now and obtain" |
145 |
+ ewarn "credentials here: https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md" |
146 |
+ ewarn "After getting credentials you can export variables:" |
147 |
+ ewarn "export MY_TDESKTOP_API_ID=\"17349\"" |
148 |
+ ewarn "export MY_TDESKTOP_API_HASH=\"344583e45741c457fe1862106095a5eb\"" |
149 |
+ ewarn "and restart the build" |
150 |
+ ewarn "you can save variables in /etc/portage/env/${CATEGORY}/${PN}" |
151 |
+ ewarn "portage will use the file every build automatically" |
152 |
+ ewarn |
153 |
+ fi |
154 |
+ |
155 |
+ cmake_src_configure |
156 |
+} |
157 |
+ |
158 |
+pkg_postinst() { |
159 |
+ xdg_desktop_database_update |
160 |
+ xdg_icon_cache_update |
161 |
+ xdg_mimeinfo_database_update |
162 |
+} |
163 |
+ |
164 |
+pkg_postrm() { |
165 |
+ xdg_desktop_database_update |
166 |
+ xdg_icon_cache_update |
167 |
+ xdg_mimeinfo_database_update |
168 |
+} |