Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-plugins/pidgin-telegram/
Date: Mon, 30 Nov 2020 00:28:59
Message-Id: 1606696072.5e64617ba6261e97adddc3348c18a30ae7675164.conikost@gentoo
1 commit: 5e64617ba6261e97adddc3348c18a30ae7675164
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 00:27:52 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 00:27:52 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e64617b
7
8 x11-plugins/pidgin-telegram: bump to version 1.4.4
9
10 Closes: https://bugs.gentoo.org/757690
11 Package-Manager: Portage-3.0.9, Repoman-3.0.2
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 x11-plugins/pidgin-telegram/Manifest | 1 +
15 .../pidgin-telegram/pidgin-telegram-1.4.4.ebuild | 56 ++++++++++++++++++++++
16 2 files changed, 57 insertions(+)
17
18 diff --git a/x11-plugins/pidgin-telegram/Manifest b/x11-plugins/pidgin-telegram/Manifest
19 index b7e7757ecfc..1f2e5e31fdd 100644
20 --- a/x11-plugins/pidgin-telegram/Manifest
21 +++ b/x11-plugins/pidgin-telegram/Manifest
22 @@ -1 +1,2 @@
23 DIST telegram-purple_1.4.3.orig.tar.gz 491997 BLAKE2B 30d42b34525c6553498c67f8a28cfe789442555a3a135a116195edc982611b8ccae6d7c53006358ebdca679258ae6a40b29a1d2ebb764e082bc2ee77d39584db SHA512 697d070da5c6671dd54a1709b37153d4b569ae1cd19d574a2d92a777a89ebd7884596b35829564a7f6fd49104f5d26e35cbe9634f64c678b5f061af8197fba16
24 +DIST telegram-purple_1.4.4.orig.tar.gz 495386 BLAKE2B 7ecac3a334f88f3d9c0367c5910d3de03b1e6749f18628a58f90c0ae3602dd04d0a1bec79b1016af236375bfe3eb7d4c40437c31fbbee0e9648e5425e40bb43d SHA512 9907da48b978294749f0697313cc7dbf26358535d6528190d8b61cdce5e478af8e756528a212af806025eb75b7f7ec90054ee763eea327f101ef469d0f4fd43e
25
26 diff --git a/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.4.ebuild b/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.4.ebuild
27 new file mode 100644
28 index 00000000000..653d01bdc92
29 --- /dev/null
30 +++ b/x11-plugins/pidgin-telegram/pidgin-telegram-1.4.4.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DESCRIPTION="A libpurple protocol plugin that adds support for the Telegram messenger"
38 +HOMEPAGE="https://github.com/majn/telegram-purple"
39 +SRC_URI="https://github.com/majn/telegram-purple/releases/download/v${PV}/telegram-purple_${PV}.orig.tar.gz"
40 +
41 +LICENSE="GPL-2+"
42 +KEYWORDS="~amd64 ~x86"
43 +SLOT="0"
44 +IUSE="gcrypt libressl +nls +png +webp"
45 +
46 +RDEPEND="
47 + net-im/pidgin
48 + sys-libs/zlib:=
49 + gcrypt? ( dev-libs/libgcrypt:0= )
50 + !gcrypt? (
51 + libressl? ( dev-libs/libressl:0= )
52 + !libressl? ( dev-libs/openssl:0= )
53 + )
54 + png? ( media-libs/libpng:0= )
55 + webp? ( media-libs/libwebp:= )
56 +"
57 +
58 +DEPEND="${RDEPEND}"
59 +
60 +BDEPEND="
61 + nls? ( sys-devel/gettext )
62 + virtual/pkgconfig
63 +"
64 +
65 +S="${WORKDIR}/telegram-purple"
66 +
67 +DOCS=( "AUTHORS" "CHANGELOG.md" "HACKING.md" "HACKING.BUILD.md" "README.md" )
68 +
69 +PATCHES=( "${FILESDIR}/${PN}-1.4.3-clang.patch" )
70 +
71 +src_prepare() {
72 + default
73 +
74 + # Remove '-Werror' to make it compile
75 + find -name 'Makefile*' -exec sed -i -e 's/-Werror //' {} + || die
76 +}
77 +
78 +src_configure() {
79 + local myeconfargs=(
80 + $(use_enable gcrypt)
81 + $(use_enable nls translation)
82 + $(use_enable png libpng)
83 + $(use_enable webp libwebp)
84 + )
85 +
86 + econf "${myeconfargs[@]}"
87 +}