x11-plugins/pidgin-telegram: New package
authorConrad Kostecki <conrad@kostecki.com>
Tue, 19 Jun 2018 18:26:48 +0000 (20:26 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 20 Jun 2018 08:21:25 +0000 (10:21 +0200)
Closes: https://bugs.gentoo.org/529908
Closes: https://github.com/gentoo/gentoo/pull/7777
Package-Manager: Portage-2.3.40, Repoman-2.3.9

x11-plugins/pidgin-telegram/Manifest [new file with mode: 0644]
x11-plugins/pidgin-telegram/metadata.xml [new file with mode: 0644]
x11-plugins/pidgin-telegram/pidgin-telegram-1.3.1.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/pidgin-telegram/Manifest b/x11-plugins/pidgin-telegram/Manifest
new file mode 100644 (file)
index 0000000..eb67b1b
--- /dev/null
@@ -0,0 +1 @@
+DIST telegram-purple_1.3.1.orig.tar.gz 509083 BLAKE2B 5842fac81fa1cd9d2681fe5ac790f0be227dadc49d2031a1682da74f62ae163c7ee9d7bb8f421a974bb0d3ea135b1d44983c976b1afbb81758a3953e89f9c68a SHA512 3d088ea8b77aeba1d7f26dcd3223420bcd50372d610368b8786eca0cbdb0a11bcc2d93f7948348c5e0305479703f74e5b5ad8e06e782e2df119cfd73a4e4a63e
diff --git a/x11-plugins/pidgin-telegram/metadata.xml b/x11-plugins/pidgin-telegram/metadata.xml
new file mode 100644 (file)
index 0000000..c8fb36c
--- /dev/null
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer type="person">
+               <email>ck+gentoo@bl4ckb0x.de</email>
+               <name>Conrad Kostecki</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>proxy-maint@gentoo.org</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <longdescription>
+               This plugin adds support for the Telegram messenger protocol,
+               which can be used directly in net-im/pidgin.
+               Telegram is a cloud-based instant messaging and voice over IP service.
+       </longdescription>
+       <use>
+               <flag name="gcrypt">Use dev-libs/libgcrypt instead of dev-libs/openssl.</flag>
+       </use>
+</pkgmetadata>
diff --git a/x11-plugins/pidgin-telegram/pidgin-telegram-1.3.1.ebuild b/x11-plugins/pidgin-telegram/pidgin-telegram-1.3.1.ebuild
new file mode 100644 (file)
index 0000000..9099938
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A libpurple protocol plugin that adds support for the Telegram messenger"
+HOMEPAGE="https://github.com/majn/telegram-purple"
+SRC_URI="https://github.com/majn/telegram-purple/releases/download/v${PV}/telegram-purple_${PV}.orig.tar.gz"
+
+LICENSE="GPL-2+"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="gcrypt +nls +webp"
+
+RDEPEND="net-im/pidgin
+       sys-libs/zlib:=
+       gcrypt? ( dev-libs/libgcrypt:0= )
+       !gcrypt? ( dev-libs/openssl:0= )
+       nls? ( sys-devel/gettext )
+       webp? ( media-libs/libwebp:= )"
+
+DEPEND="virtual/pkgconfig
+       ${RDEPEND}"
+
+S="${WORKDIR}/telegram-purple"
+
+DOCS=( "AUTHORS" "CHANGELOG.md" "HACKING.md" "HACKING.BUILD.md" "README.md" )
+
+src_prepare() {
+       default
+
+       # Remove '-Werror' to make it compile
+       find -name 'Makefile*' -exec sed -i -e 's/-Werror //'  {} + || die
+}
+
+src_configure() {
+       local myeconfargs=(
+               $(use_enable gcrypt)
+               $(use_enable nls translation)
+               $(use_enable webp libwebp)
+       )
+
+       econf "${myeconfargs[@]}"
+}