diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-21 00:31:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-21 00:31:17 +0000 |
commit | ae832415103492f73a8351ed7a91cb596392d779 (patch) | |
tree | 50b8927d2d57e707e7e3402895a997ebbc349dda /net-im | |
parent | 77684468238b8755c1aa3e72f3055f4e62fcf14c (diff) |
gentoo auto-resync : 21:03:2025 - 00:31:16
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/Manifest.gz | bin | 8422 -> 8418 bytes | |||
-rw-r--r-- | net-im/dino/Manifest | 2 | ||||
-rw-r--r-- | net-im/dino/dino-0.4.5.ebuild | 100 | ||||
-rw-r--r-- | net-im/signal-desktop-bin/Manifest | 4 | ||||
-rw-r--r-- | net-im/signal-desktop-bin/signal-desktop-bin-7.46.1.ebuild (renamed from net-im/signal-desktop-bin/signal-desktop-bin-7.45.0.ebuild) | 0 | ||||
-rw-r--r-- | net-im/telegram-desktop/Manifest | 3 | ||||
-rw-r--r-- | net-im/telegram-desktop/metadata.xml | 1 | ||||
-rw-r--r-- | net-im/telegram-desktop/telegram-desktop-5.12.3-r2.ebuild | 215 |
8 files changed, 321 insertions, 4 deletions
diff --git a/net-im/Manifest.gz b/net-im/Manifest.gz Binary files differindex 949d971e1655..af699bb2d2e7 100644 --- a/net-im/Manifest.gz +++ b/net-im/Manifest.gz diff --git a/net-im/dino/Manifest b/net-im/dino/Manifest index 43d78af7a773..49c7b6e97d5f 100644 --- a/net-im/dino/Manifest +++ b/net-im/dino/Manifest @@ -1,6 +1,8 @@ AUX README.gentoo 469 BLAKE2B e7176c3fa41c859f13f93f2805bf317817de1c736b56a55a1cd21340b2195f1192a96c56ae973c347430f3553715e829420ef6e0d91b26835cf06d06b744b9ec SHA512 a800f5ae1f02a1574602c1595f005eeffbd2db6c100bb59f7a4cf9dbb0bea79bb3d1a17cf9559a09f318f4d8189ecfce964e594829228ab16f861b3c966c3f41 DIST dino-0.4.4.tar.gz 884259 BLAKE2B 5290543aeaf89f2adf5acf648b6ff4fb7daafc7d4e0b9e948f34a4af81ea49073664aa37d2541753e2f75dbfe492ac82ebdda5fe9ab5749e7b251d6788a36f3a SHA512 d2d5553c60d20e163930c0d8468727109871651f7305bf86940b7efd70a42d11ca85572f4dbea01e67ec8ce48fb0a244acb29b491d5d43bf188653ddc6ecface +DIST dino-0.4.5.tar.gz 886933 BLAKE2B 19afec6cedf770017ef459ab87dac38f24a4e9c7ca956145e6bd4bc99f35928ae2cc461f98de262beb6e06cd6cbbcd56197835adc8ead57c3f1f29b2c4446771 SHA512 877e218105b4c9b643145d557ebf0e19d9ad989146dcffde047aba46290389babf8814a8bd819788f91e34c11df0c8609c68f9de8fa418c0801c83642ad861c6 EBUILD dino-0.4.4-r1.ebuild 2017 BLAKE2B c0a71bd5b533855c5af568f8f093cacc0a56e56a1ed23931fed02e1e22f82af2402fdefb8dddf58eff9708178251d5771fc3e9ecd81057761651e4f302655076 SHA512 f85879aed52699b77f89bf69310b8931af8a4cdb8b3ffe4ab672c6befae6275083818f1da9b7119a348b156f61d9d512372ae47bbefbf47e9080a7ca89368a79 EBUILD dino-0.4.4-r3.ebuild 2115 BLAKE2B 670d246ad7fc4678534eb1cc455517a8d29d5c9399a7a6af11d0730e37ade3b7bf4460d9da240694a55cb593c32b66dba137a3796649bbf3d2d694a5c30aaa75 SHA512 72960af4797615b1695810c074a3e56721a3fafb908c091cbd08995af00d41e937e0f696d530842541256db664335d949afdc894b34ee52b19c11ca979cd33ea +EBUILD dino-0.4.5.ebuild 2115 BLAKE2B 0d80281fca6181e4d9262b574f5ecc5a6b1da41d9cfec7a8126e6d6a247bc21c3c717f05a0ca191306e411fe6147395a7530a70d5efb8b747a9813c81be2ef7f SHA512 d922009cbbf71385d88b1cdaf713395dd02c6f5e44732325b02b89555e3ae7322cbe449fdc13377d60da6754f200e72e9798441b7dbdf6d132c26763e0bf52fd EBUILD dino-9999.ebuild 2115 BLAKE2B 670d246ad7fc4678534eb1cc455517a8d29d5c9399a7a6af11d0730e37ade3b7bf4460d9da240694a55cb593c32b66dba137a3796649bbf3d2d694a5c30aaa75 SHA512 72960af4797615b1695810c074a3e56721a3fafb908c091cbd08995af00d41e937e0f696d530842541256db664335d949afdc894b34ee52b19c11ca979cd33ea MISC metadata.xml 629 BLAKE2B 451fa9ab43aa4c0915e87a4b8835b25fba86c846270d3257f7ca8dcde782f5b2d5c8705f828dc3d20e371345af2b5715f86753839f7d0a147ee9b6fb71aeadb4 SHA512 5d16f3cd53aa46fa5028050fd8db9c3bd239ea80a7bf38dbfc0814a0b50efdc34a7aa52bf628439b2db4aa22afbe320514ae22fc7349d508220da23c00663416 diff --git a/net-im/dino/dino-0.4.5.ebuild b/net-im/dino/dino-0.4.5.ebuild new file mode 100644 index 000000000000..2b492cf8646c --- /dev/null +++ b/net-im/dino/dino-0.4.5.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake vala xdg readme.gentoo-r1 + +DESCRIPTION="Modern Jabber/XMPP Client using GTK+/Vala" +HOMEPAGE="https://dino.im" + +LICENSE="GPL-3" +SLOT="0" +IUSE="+gpg +http +omemo +notification-sound +rtp test" +RESTRICT="!test? ( test )" + +MY_REPO_URI="https://github.com/dino/dino" +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="${MY_REPO_URI}.git" + inherit git-r3 +else + KEYWORDS="~amd64 ~arm64" + SRC_URI="${MY_REPO_URI}/releases/download/v${PV}/${P}.tar.gz" +fi + +RDEPEND=" + dev-db/sqlite:3 + dev-libs/glib:2 + dev-libs/icu:= + dev-libs/libgee:0.8= + gui-libs/gtk:4 + >=gui-libs/libadwaita-1.2.0:1[vala] + media-libs/graphene + net-libs/glib-networking + net-libs/gnutls:= + >=net-libs/libnice-0.1.15 + net-libs/libsignal-protocol-c + net-libs/libsrtp:2= + x11-libs/cairo + x11-libs/gdk-pixbuf:2 + x11-libs/pango + gpg? ( app-crypt/gpgme:= ) + http? ( net-libs/libsoup:2.4 ) + notification-sound? ( media-libs/libcanberra:0[sound(+)] ) + omemo? ( + dev-libs/libgcrypt:= + media-gfx/qrencode:= + ) + rtp? ( + media-libs/gst-plugins-base:1.0 + media-libs/gstreamer:1.0 + media-libs/webrtc-audio-processing:1 + ) +" +DEPEND="${RDEPEND} + media-libs/gst-plugins-base + media-libs/gstreamer +" +BDEPEND=" + sys-devel/gettext + $(vala_depend) +" + +src_configure() { + vala_setup + + local disabled_plugins=( + $(usex gpg "" "openpgp") + $(usex omemo "" "omemo") + $(usex http "" "http-files") + $(usex rtp "" rtp) + ) + local enabled_plugins=( + $(usex notification-sound "notification-sound" "") + ) + local mycmakeargs=( + "-DENABLED_PLUGINS=$(local IFS=";"; echo "${enabled_plugins[*]}")" + "-DDISABLED_PLUGINS=$(local IFS=";"; echo "${disabled_plugins[*]}")" + "-DVALA_EXECUTABLE=${VALAC}" + # libsoup-2 for bug #948374 + # dino -> libnice[upnp] -> gupnp-igd:0 -> gupnp:0 -> libsoup:2.4 + "-DSOUP_VERSION=2" + "-DBUILD_TESTS=$(usex test)" + ) + + cmake_src_configure +} + +src_test() { + "${BUILD_DIR}"/xmpp-vala-test || die +} + +src_install() { + cmake_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + xdg_pkg_postinst + readme.gentoo_print_elog +} diff --git a/net-im/signal-desktop-bin/Manifest b/net-im/signal-desktop-bin/Manifest index 5707645f44a3..4075e90e9349 100644 --- a/net-im/signal-desktop-bin/Manifest +++ b/net-im/signal-desktop-bin/Manifest @@ -1,3 +1,3 @@ -DIST signal-desktop_7.45.0_amd64.deb 122957914 BLAKE2B 629246b4b1452b24b4c9cf270eb08c9cad0d585f325672c75d797398065b60a85c34fa83e5687e573f0aee554df0c111645e7d8766d6b5f210572f27f7273206 SHA512 f57d09e58cfbe572c417008036f6e2d51b27bb55f49bf269a19e081558bc959e5b316c5f862290e39c2eab28a62585e80be6f9ef5400a9ad7f4a2f2432a5c39c -EBUILD signal-desktop-bin-7.45.0.ebuild 2397 BLAKE2B cc4545309c5fb1aea9b077ab7c3586ac19f350a247c6a9cac8b1bbd103d58172b4d7c2255e278560d5d1bc6ef67abaee0cc630ad3c13823ad2edc32ad98c8480 SHA512 d9cdd78088960e235d659a4632d260f77009d09f5727bc3164041b1b12e53846bb6b25555f6329031948b49a581440659e0a2bd031235e300e4964932de4052c +DIST signal-desktop_7.46.1_amd64.deb 121866986 BLAKE2B 9b04086318fc4cacd341ba6915bc2232d1950a4102f222d8ce82652a3cbca570f2d5033ff77074078a2ac15f77ea52d8360164b5973cd7d4a99489c13297384e SHA512 99c70488bb34eb4e35742a5c5e59effef69956d9fbabe8d0eb921a4b0fda64c693975d071c004a8540548e1bc980917c748e97a8566debc4886eafe10144973f +EBUILD signal-desktop-bin-7.46.1.ebuild 2397 BLAKE2B cc4545309c5fb1aea9b077ab7c3586ac19f350a247c6a9cac8b1bbd103d58172b4d7c2255e278560d5d1bc6ef67abaee0cc630ad3c13823ad2edc32ad98c8480 SHA512 d9cdd78088960e235d659a4632d260f77009d09f5727bc3164041b1b12e53846bb6b25555f6329031948b49a581440659e0a2bd031235e300e4964932de4052c MISC metadata.xml 486 BLAKE2B cfc118c5488c5c50b4de72443e6b836992a4ba7a6fb94358552c814006a49b00580b5ab0a57141b17809e1d2a898b9e23e6fee0837778edfa7f6de53ccc09d01 SHA512 4ab7dc5fd6fb03e7296164d0d924ab4eb11c6fd31c2fc651706892eda53b29be5db65cd94da8e6aa743e9b7ed10ee3e5f25f14dd2d1be99459daa11f529dbb95 diff --git a/net-im/signal-desktop-bin/signal-desktop-bin-7.45.0.ebuild b/net-im/signal-desktop-bin/signal-desktop-bin-7.46.1.ebuild index 276cc243a0c4..276cc243a0c4 100644 --- a/net-im/signal-desktop-bin/signal-desktop-bin-7.45.0.ebuild +++ b/net-im/signal-desktop-bin/signal-desktop-bin-7.46.1.ebuild diff --git a/net-im/telegram-desktop/Manifest b/net-im/telegram-desktop/Manifest index e5988d49865a..9b111fd693af 100644 --- a/net-im/telegram-desktop/Manifest +++ b/net-im/telegram-desktop/Manifest @@ -10,5 +10,6 @@ DIST tdesktop-5.11.1-full.tar.gz 72594842 BLAKE2B d0a637795b4c00ca8c3c88d5a678b0 DIST tdesktop-5.12.3-full.tar.gz 72628307 BLAKE2B 2a625d5e71c3a583c7acf1419ff3f31173446a1475514e981c6483aa18a88ff7e1aa57252412bab3c3e9b162bc9ac6286718f2c96c2f0758f635678086469a99 SHA512 cd366f6cecfc72396ae2b8453d015e85f1f579c60212f0b77f84057ba6caf6aa97d7ed08fde2ab8bf2f29017fdd7c0b617392ec74537be4f8445ef81ea135e5c EBUILD telegram-desktop-5.10.7.ebuild 8310 BLAKE2B 7ab046e37a6ef8b840765cd77a1a049d70b1bad3b6a67fa3e0584b5364a105b55377d61b7a8c0c13a91e8e428e73fb30454806ff4dff14f690b2e5c17c24b4e2 SHA512 3dedc82291ee913098d1548f64106704ca3e314f5dab6fd9e1701d90e3f6662adfe4ca1447b8360837f3f0b2662df98a4a0919f65e70e12372108078c206e510 EBUILD telegram-desktop-5.11.1.ebuild 8352 BLAKE2B 13c8c6bac28b274149640149c54c844a19f2d3e97cdeade658f2a83100c0187820cec8d9e9cc194964c8e3d9e141a7b65a28814e1f1f8070a92dcfb7171926e4 SHA512 f39de350a97dff964d778727ef0c4c30c83a880899744e2c152e7799342bf217caf4974525eb00c21f7f1594a7ec39574018b14968de2262d1f6da6f4bb7588c +EBUILD telegram-desktop-5.12.3-r2.ebuild 7376 BLAKE2B f36c95b72c650398ce52b97b3db5632159b30760d06d78dd82d407b6dcc47b086e975930000e67a05274c6c5d26f79376704eee242557b304d56a7bc7becf22b SHA512 3a3e0b6af157fdee7ce33572886731b4a3a98d04cadaa9ce1a18c2c5d014edf2bbca22ea12a9fc3a3530ca5be503c0b02d79820742c55ab45ec7755097e1e16f EBUILD telegram-desktop-5.12.3.ebuild 8352 BLAKE2B 13c8c6bac28b274149640149c54c844a19f2d3e97cdeade658f2a83100c0187820cec8d9e9cc194964c8e3d9e141a7b65a28814e1f1f8070a92dcfb7171926e4 SHA512 f39de350a97dff964d778727ef0c4c30c83a880899744e2c152e7799342bf217caf4974525eb00c21f7f1594a7ec39574018b14968de2262d1f6da6f4bb7588c -MISC metadata.xml 1297 BLAKE2B 8fd0b98eabe1a75d627899eb69dcc26b6c3b6d297b43b2d65081a57d697e05eec18dfeb0e95510473988641356dd39c16c91d391cf4a0ca09cfc531abcdb4115 SHA512 6b420a9bde7e85f502b24eb93c36ba24bd4a2978623ce4ab0c0746717609d63654120cea0af0391caf94f364784d030c9a3c492c791e4a0588d60db308d8b862 +MISC metadata.xml 1248 BLAKE2B f1b20562a63d6bb5fb1684390c534fb9c3ddde8c2129646a79b34e1836357594cfc6bce0882c853bd3fced5ae848d6e161c41ebb3c1faab35331007299666f1b SHA512 ebba1655ec833792d9edf8ee9b29837bcb5682213b295b0fd10e38df65e4aa8abd113916f7c1b454bc76e34aaf48760e9e08dc09772652648cb683fe5d37ca1d diff --git a/net-im/telegram-desktop/metadata.xml b/net-im/telegram-desktop/metadata.xml index 526a64b15115..c3c50aa74bfa 100644 --- a/net-im/telegram-desktop/metadata.xml +++ b/net-im/telegram-desktop/metadata.xml @@ -21,7 +21,6 @@ <flag name="enchant">Use the <pkg>app-text/enchant</pkg> spell-checking backend instead of <pkg>app-text/hunspell</pkg></flag> <flag name="fonts">Use builtin patched copy of open-sans fonts (overrides fontconfig)</flag> <flag name="libdispatch">Use <pkg>dev-libs/libdispatch</pkg> to speed up concurrent code execution</flag> - <flag name="qt6">Build with Qt6 support</flag> </use> <upstream> <remote-id type="github">telegramdesktop/tdesktop</remote-id> diff --git a/net-im/telegram-desktop/telegram-desktop-5.12.3-r2.ebuild b/net-im/telegram-desktop/telegram-desktop-5.12.3-r2.ebuild new file mode 100644 index 000000000000..c0b0c7b8f65d --- /dev/null +++ b/net-im/telegram-desktop/telegram-desktop-5.12.3-r2.ebuild @@ -0,0 +1,215 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit xdg cmake python-any-r1 optfeature flag-o-matic + +DESCRIPTION="Official desktop client for Telegram" +HOMEPAGE="https://desktop.telegram.org https://github.com/telegramdesktop/tdesktop" + +MY_P="tdesktop-${PV}-full" +SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~loong ~riscv" +IUSE="dbus enchant +fonts +jemalloc +libdispatch screencast wayland webkit +X" + +CDEPEND=" + !net-im/telegram-desktop-bin + app-arch/lz4:= + dev-cpp/abseil-cpp:= + dev-cpp/ada:= + >=dev-cpp/glibmm-2.77:2.68 + dev-libs/glib:2 + dev-libs/openssl:= + >=dev-libs/protobuf-21.12 + dev-libs/xxhash + >=dev-qt/qtbase-6.5:6=[dbus?,gui,network,opengl,wayland?,widgets,X?] + >=dev-qt/qtimageformats-6.5:6 + >=dev-qt/qtsvg-6.5:6 + media-libs/libjpeg-turbo:= + ~media-libs/libtgvoip-2.4.4_p20240706 + media-libs/openal + media-libs/opus + media-libs/rnnoise + ~media-libs/tg_owt-0_pre20241202:=[screencast=,X=] + >=media-video/ffmpeg-6:=[opus,vpx] + sys-libs/zlib:=[minizip] + kde-frameworks/kcoreaddons:6 + !enchant? ( >=app-text/hunspell-1.7:= ) + enchant? ( app-text/enchant:= ) + jemalloc? ( dev-libs/jemalloc:= ) + libdispatch? ( dev-libs/libdispatch ) + webkit? ( wayland? ( + >=dev-qt/qtdeclarative-6.5:6 + >=dev-qt/qtwayland-6.5:6[compositor,qml] + ) ) + X? ( + x11-libs/libxcb:= + x11-libs/xcb-util-keysyms + ) +" +RDEPEND="${CDEPEND} + webkit? ( || ( net-libs/webkit-gtk:4.1 net-libs/webkit-gtk:6 ) ) +" +DEPEND="${CDEPEND} + >=dev-cpp/cppgir-2.0_p20240315 + >=dev-cpp/ms-gsl-4.1.0 + dev-cpp/expected-lite + dev-cpp/range-v3 +" +BDEPEND=" + ${PYTHON_DEPS} + >=dev-build/cmake-3.16 + >=dev-cpp/cppgir-2.0_p20240315 + dev-libs/gobject-introspection + dev-util/gdbus-codegen + virtual/pkgconfig + wayland? ( dev-util/wayland-scanner ) +" + +PATCHES=( + "${FILESDIR}"/tdesktop-4.2.4-jemalloc-only-telegram-r1.patch + "${FILESDIR}"/tdesktop-4.10.0-system-cppgir.patch + "${FILESDIR}"/tdesktop-5.2.2-qt6-no-wayland.patch + "${FILESDIR}"/tdesktop-5.2.2-libdispatch.patch + "${FILESDIR}"/tdesktop-5.7.2-cstring.patch + "${FILESDIR}"/tdesktop-5.8.3-cstdint.patch +) + +pkg_pretend() { + if has ccache ${FEATURES}; then + ewarn "ccache does not work with ${PN} out of the box" + ewarn "due to usage of precompiled headers" + ewarn "check bug https://bugs.gentoo.org/715114 for more info" + ewarn + fi +} + +src_prepare() { + # Happily fail if libraries aren't found... + find -type f \( -name 'CMakeLists.txt' -o -name '*.cmake' \) \ + \! -path './Telegram/lib_webview/CMakeLists.txt' \ + \! -path './cmake/external/expected/CMakeLists.txt' \ + \! -path './cmake/external/kcoreaddons/CMakeLists.txt' \ + \! -path './cmake/external/qt/package.cmake' \ + -print0 | xargs -0 sed -i \ + -e '/pkg_check_modules(/s/[^ ]*)/REQUIRED &/' \ + -e '/find_package(/s/)/ REQUIRED)/' || die + # Make sure to check the excluded files for new + # CMAKE_DISABLE_FIND_PACKAGE entries. + + # Control QtDBus dependency from here, to avoid messing with QtGui. + # QtGui will use find_package to find QtDbus as well, which + # conflicts with the -DCMAKE_DISABLE_FIND_PACKAGE method. + if ! use dbus; then + sed -e '/find_package(Qt[^ ]* OPTIONAL_COMPONENTS/s/DBus *//' \ + -i cmake/external/qt/package.cmake || die + fi + + # Control automagic dep only needed when USE="webkit wayland" + if ! use webkit || ! use wayland; then + sed -e 's/QT_CONFIG(wayland_compositor_quick)/0/' \ + -i Telegram/lib_webview/webview/platform/linux/webview_linux_compositor.h || die + fi + + cmake_src_prepare +} + +src_configure() { + # Having user paths sneak into the build environment through the + # XDG_DATA_DIRS variable causes all sorts of weirdness with cppgir: + # - bug 909038: can't read from flatpak directories (fixed upstream) + # - bug 920819: system-wide directories ignored when variable is set + export XDG_DATA_DIRS="${EPREFIX}/usr/share" + + # Evil flag (bug #919201) + filter-flags -fno-delete-null-pointer-checks + + # The ABI of media-libs/tg_owt breaks if the -DNDEBUG flag doesn't keep + # the same state across both projects. + # See https://bugs.gentoo.org/866055 + append-cppflags -DNDEBUG + + # https://github.com/telegramdesktop/tdesktop/issues/17437#issuecomment-1001160398 + use !libdispatch && append-cppflags -DCRL_FORCE_QT + + local use_webkit_wayland=$(use webkit && use wayland && echo yes || echo no) + local mycmakeargs=( + -DQT_VERSION_MAJOR=6 + + # Override new cmake.eclass defaults (https://bugs.gentoo.org/921939) + # Upstream never tests this any other way + -DCMAKE_DISABLE_PRECOMPILE_HEADERS=OFF + + # Control automagic dependencies on certain packages + ## Header-only lib, some git version. + -DCMAKE_DISABLE_FIND_PACKAGE_tl-expected=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Quick=${use_webkit_wayland} + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6QuickWidgets=${use_webkit_wayland} + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WaylandClient=$(usex !wayland) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt6WaylandCompositor=${use_webkit_wayland} + + -DDESKTOP_APP_USE_LIBDISPATCH=$(usex libdispatch) + -DDESKTOP_APP_DISABLE_X11_INTEGRATION=$(usex !X) + -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=$(usex !wayland) + -DDESKTOP_APP_DISABLE_JEMALLOC=$(usex !jemalloc) + ## Enables enchant and disables hunspell + -DDESKTOP_APP_USE_ENCHANT=$(usex enchant) + ## Use system fonts instead of bundled ones + -DDESKTOP_APP_USE_PACKAGED_FONTS=$(usex !fonts) + ) + + if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then + einfo "Found custom API credentials" + mycmakeargs+=( + -DTDESKTOP_API_ID="${MY_TDESKTOP_API_ID}" + -DTDESKTOP_API_HASH="${MY_TDESKTOP_API_HASH}" + ) + else + # https://github.com/telegramdesktop/tdesktop/blob/dev/snap/snapcraft.yaml + # Building with snapcraft API credentials by default + # Custom API credentials can be obtained here: + # https://github.com/telegramdesktop/tdesktop/blob/dev/docs/api_credentials.md + # After getting credentials you can export variables: + # export MY_TDESKTOP_API_ID="17349"" + # export MY_TDESKTOP_API_HASH="344583e45741c457fe1862106095a5eb" + # and restart the build" + # you can set above variables (without export) in /etc/portage/env/net-im/telegram-desktop + # portage will use custom variable every build automatically + mycmakeargs+=( + -DTDESKTOP_API_ID="611335" + -DTDESKTOP_API_HASH="d524b414d21f4d37f08684c1df41ac9c" + ) + fi + + cmake_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + if ! use X && ! use screencast; then + ewarn "both the 'X' and 'screencast' USE flags are disabled, screen sharing won't work!" + ewarn + fi + if ! use jemalloc && use elibc_glibc; then + # https://github.com/telegramdesktop/tdesktop/issues/16084 + # https://github.com/desktop-app/cmake_helpers/pull/91#issuecomment-881788003 + ewarn "Disabling USE=jemalloc on glibc systems may cause very high RAM usage!" + ewarn "Do NOT report issues about RAM usage without enabling this flag first." + ewarn + fi + if ! use libdispatch; then + ewarn "Disabling USE=libdispatch may cause performance degradation" + ewarn "due to fallback to poor QThreadPool! Please see" + ewarn "https://github.com/telegramdesktop/tdesktop/wiki/The-Packaged-Building-Mode" + ewarn + fi + optfeature_header + optfeature "AVIF, HEIF and JpegXL image support" kde-frameworks/kimageformats:6[avif,heif,jpegxl] +} |