1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
9 DESCRIPTION="A link-local XMPP connection manager for Telepathy"
10 HOMEPAGE="https://telepathy.freedesktop.org/"
11 SRC_URI="https://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
15 KEYWORDS="alpha amd64 ~arm arm64 ~ia64 ppc ~ppc64 sparc x86 ~x86-linux"
17 RESTRICT="!test? ( test )"
20 >=dev-libs/dbus-glib-0.61
22 >=dev-libs/glib-2.28:2
24 >=net-libs/telepathy-glib-0.17.1
25 >=net-dns/avahi-0.6.22[dbus]
29 gnutls? ( >=net-libs/gnutls-2.10.2 )
30 !gnutls? ( >=dev-libs/openssl-0.9.8g:0[-bindist] )
37 >=dev-libs/check-0.9.4
40 $(python_gen_any_dep 'dev-python/twisted[${PYTHON_USEDEP}]')
41 $(python_gen_any_dep 'dev-python/twisted-words[${PYTHON_USEDEP}]')
45 # FIXME: needs xmppstream python module
46 # >=net-dns/avahi-0.6.22[python]
49 "${FILESDIR}"/${PN}-0.5.0-uninitialized.patch # upstream bug #37701
50 "${FILESDIR}"/${P}-openssl-1.1.patch # bug #663994
55 has_version "dev-python/twisted[${PYTHON_USEDEP}]" \
56 || has_version "dev-python/twisted-words[${PYTHON_USEDEP}]"
61 python-any-r1_pkg_setup
66 --disable-coding-style-checks \
70 --disable-avahi-tests \
71 --docdir=/usr/share/doc/${PF} \
72 --with-tls=$(usex gnutls gnutls openssl)
73 #$(use_enable test avahi-tests)
75 # false positives according to bug #413581:
76 # unrecognized options: --disable-plugins, --disable-avahi-tests
80 MAKEOPTS+=" -j1" default # bug 413581
81 find "${D}" -name '*.la' -delete || die