1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 PYTHON_REQ_USE="sqlite,xml"
10 AUTOTOOLS_AUTORECONF=true
12 inherit autotools-utils python-r1 versionator
17 DESCRIPTION="Jabber client written in PyGTK"
18 HOMEPAGE="http://www.gajim.org/"
20 http://www.gajim.org/downloads/$(get_version_component_range 1-2)/${MY_P}.tar.bz2"
21 # test? ( https://dev.gentoo.org/~jlec/distfiles/${PN}-tests-${PV}.tar.xz )"
25 KEYWORDS="amd64 arm ppc ppc64 x86 ~x86-fbsd"
26 IUSE="avahi crypt dbus gnome gnome-keyring kde idle jingle libnotify networkmanager nls spell +srv test X xhtml"
29 ${PYTHON_REQUIRED_USE}
32 gnome? ( gnome-keyring )"
36 dev-python/pygtk:2[${PYTHON_USEDEP}]
38 DEPEND="${COMMON_DEPEND}
39 >=dev-util/intltool-0.40.1
41 >=sys-devel/gettext-0.17-r1"
42 RDEPEND="${COMMON_DEPEND}
43 dev-python/pyasn1[${PYTHON_USEDEP}]
44 >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
45 >=dev-python/python-nbxmpp-0.5.1[${PYTHON_USEDEP}]
48 dev-python/pycrypto[${PYTHON_USEDEP}]
51 dev-python/dbus-python[${PYTHON_USEDEP}]
53 libnotify? ( dev-python/notify-python[${PYTHON_USEDEP}] )
54 avahi? ( net-dns/avahi[dbus,gtk,python,${PYTHON_USEDEP}] )
57 dev-python/libgnome-python[${PYTHON_USEDEP}]
58 dev-python/egg-python[${PYTHON_USEDEP}]
60 gnome-keyring? ( dev-python/gnome-keyring-python[${PYTHON_USEDEP}] )
61 idle? ( x11-libs/libXScrnSaver )
62 jingle? ( net-libs/farstream:0.1[python,${PYTHON_USEDEP}] )
63 kde? ( kde-apps/kwalletmanager )
65 dev-python/dbus-python[${PYTHON_USEDEP}]
66 net-misc/networkmanager
68 spell? ( app-text/gtkspell:2 )
71 dev-python/libasyncns-python[${PYTHON_USEDEP}]
74 xhtml? ( dev-python/docutils[${PYTHON_USEDEP}] )"
78 S="${WORKDIR}"/${MY_P}
80 PATCHES=( "${FILESDIR}"/${P}-desktop.patch )
83 autotools-utils_src_prepare
92 --docdir="/usr/share/doc/${PF}"
93 --libdir="$(python_get_sitedir)"
94 --enable-site-packages
96 run_in_build_dir autotools-utils_src_configure
98 python_foreach_impl configuration
103 run_in_build_dir autotools-utils_src_compile
105 python_foreach_impl compilation
110 run_in_build_dir ${PYTHON} test/runtests.py --verbose 3 || die
112 python_foreach_impl testing
117 run_in_build_dir autotools-utils_src_install
120 python_foreach_impl installation
122 rm "${ED}/usr/share/doc/${PF}/README.html" || die