| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/telepathy-farstream/telepathy-farstream-0.4.0.ebuild,v 1.4 2013/03/25 15:57:36 ago Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
PYTHON_DEPEND="python? 2:2.5"
|
| 7 |
PYTHON_USE_WITH="xml"
|
| 8 |
PYTHON_USE_WITH_OPT="python"
|
| 9 |
|
| 10 |
inherit python
|
| 11 |
|
| 12 |
DESCRIPTION="Telepathy client library that uses Farstream to handle Call channels"
|
| 13 |
HOMEPAGE="http://telepathy.freedesktop.org"
|
| 14 |
SRC_URI="http://telepathy.freedesktop.org/releases/${PN}/${P}.tar.gz"
|
| 15 |
|
| 16 |
LICENSE="LGPL-2.1"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="amd64 ~arm x86"
|
| 19 |
IUSE="examples python"
|
| 20 |
|
| 21 |
RDEPEND=">=dev-libs/glib-2.30:2
|
| 22 |
>=sys-apps/dbus-0.60
|
| 23 |
>=dev-libs/dbus-glib-0.60
|
| 24 |
>=net-libs/telepathy-glib-0.17.5
|
| 25 |
>=net-libs/farstream-0.1.0:0.1
|
| 26 |
python? (
|
| 27 |
>=dev-python/pygobject-2.12.0:2
|
| 28 |
>=dev-python/gst-python-0.10.10 )"
|
| 29 |
# python2 is needed at build time in all cases
|
| 30 |
DEPEND="${RDEPEND}
|
| 31 |
!python? ( =dev-lang/python-2*[xml] )"
|
| 32 |
|
| 33 |
pkg_setup() {
|
| 34 |
# Needed for xincludator.py at build time even if USE=-python
|
| 35 |
python_set_active_version 2
|
| 36 |
python_pkg_setup
|
| 37 |
}
|
| 38 |
|
| 39 |
src_prepare() {
|
| 40 |
if use python; then
|
| 41 |
python_convert_shebangs -r 2 .
|
| 42 |
fi
|
| 43 |
}
|
| 44 |
|
| 45 |
src_configure() {
|
| 46 |
econf $(use_enable python) --disable-static
|
| 47 |
}
|
| 48 |
|
| 49 |
src_install() {
|
| 50 |
emake install DESTDIR="${D}"
|
| 51 |
dodoc AUTHORS ChangeLog NEWS README
|
| 52 |
|
| 53 |
# Remove .la files since static libs are disabled
|
| 54 |
find "${D}" -name '*.la' -exec rm -f {} + || die
|
| 55 |
|
| 56 |
if use examples; then
|
| 57 |
insinto /usr/share/doc/${PF}/examples
|
| 58 |
doins examples/*.c
|
| 59 |
if use python; then
|
| 60 |
insinto /usr/share/doc/${PF}/examples/python
|
| 61 |
doins python/examples/*.py
|
| 62 |
fi
|
| 63 |
fi
|
| 64 |
}
|