From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0745D13835A for ; Sat, 18 Jul 2020 13:31:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D272BE0929; Sat, 18 Jul 2020 13:31:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B7712E0929 for ; Sat, 18 Jul 2020 13:31:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C65F34F303 for ; Sat, 18 Jul 2020 13:31:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1CFC72EA for ; Sat, 18 Jul 2020 13:31:08 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1595079017.6eb00ad1a18a7ada9fbbe1e84d6063be8388bf24.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/telegram-desktop-bin/telegram-desktop-bin-2.1.13-r1.ebuild X-VCS-Directories: net-im/telegram-desktop-bin/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 6eb00ad1a18a7ada9fbbe1e84d6063be8388bf24 X-VCS-Branch: master Date: Sat, 18 Jul 2020 13:31:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e9c74e04-9120-420f-8349-7efdcedbeddf X-Archives-Hash: f55b676978f27fb8f23cbf202afc8363 commit: 6eb00ad1a18a7ada9fbbe1e84d6063be8388bf24 Author: Sam James gentoo org> AuthorDate: Sat Jul 18 13:22:17 2020 +0000 Commit: Sam James gentoo org> CommitDate: Sat Jul 18 13:30:17 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6eb00ad1 net-im/telegram-desktop-bin: improve runtime dependencies It's better to explicitly list runtime dependencies for prebuilt packages, because they may only conditionally exist on a user's system because of indirect dependencies if we don't. Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Sam James gentoo.org> .../telegram-desktop-bin-2.1.13-r1.ebuild | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/net-im/telegram-desktop-bin/telegram-desktop-bin-2.1.13-r1.ebuild b/net-im/telegram-desktop-bin/telegram-desktop-bin-2.1.13-r1.ebuild new file mode 100644 index 00000000000..1da038a5f93 --- /dev/null +++ b/net-im/telegram-desktop-bin/telegram-desktop-bin-2.1.13-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop eutils xdg + +DESCRIPTION="Official desktop client for Telegram (binary package)" +HOMEPAGE="https://desktop.telegram.org" +SRC_URI=" + https://github.com/telegramdesktop/tdesktop/archive/v${PV}.tar.gz -> tdesktop-${PV}.tar.gz + amd64? ( https://updates.tdesktop.com/tlinux/tsetup.${PV}.tar.xz ) + x86? ( https://updates.tdesktop.com/tlinux32/tsetup32.${PV}.tar.xz ) +" + +LICENSE="GPL-3-with-openssl-exception" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +QA_PREBUILT="usr/lib/${PN}/Telegram" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gobject-introspection + >=media-libs/fontconfig-2.13 + media-libs/freetype:2 + media-libs/libglvnd[X] + >=sys-apps/dbus-1.4.2[X] + sys-libs/zlib + x11-libs/libSM + x11-libs/libdrm + x11-libs/libICE + x11-libs/libSM + x11-libs/libX11 + >=x11-libs/libxcb-1.10[xkb] +" + +S="${WORKDIR}/Telegram" + +src_install() { + exeinto /usr/lib/${PN} + doexe "Telegram" + newbin "${FILESDIR}"/${PN} "telegram-desktop" + + local icon_size + for icon_size in 16 32 48 64 128 256 512; do + newicon -s "${icon_size}" \ + "${WORKDIR}/tdesktop-${PV}/Telegram/Resources/art/icon${icon_size}.png" \ + telegram.png + done + + domenu "${WORKDIR}/tdesktop-${PV}"/lib/xdg/telegramdesktop.desktop +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "spell checker support" app-text/enchant +}