blob: bde5fd75a5de4213a7b359a9ad6ac7e01a50b9b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ofono/ofono-0.27.ebuild,v 1.1 2010/09/08 14:49:13 dagger Exp $
EAPI="2"
inherit multilib
DESCRIPTION="Open Source mobile telephony (GSM/UMTS) daemon."
HOMEPAGE="http://ofono.org/"
SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE="+atmodem bluetooth +caps examples +isimodem threads +udev"
RDEPEND=">=sys-apps/dbus-1.2.24
bluetooth? ( >=net-wireless/bluez-4.61 )
caps? ( sys-libs/libcap-ng )
>=dev-libs/glib-2.16
udev? ( >=sys-fs/udev-143 )
examples? ( dev-python/dbus-python )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_configure() {
econf \
$(use_enable caps capng) \
$(use_enable threads) \
$(use_enable udev) \
$(use_enable isimodem) \
$(use_enable atmodem) \
--enable-test \
--localstatedir=/var
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
if ! use examples ; then
rm -rf ${D}/usr/"$(get_libdir)"/ofono/test
fi
newinitd "${FILESDIR}"/${PN}.initd ${PN} || die
dodoc ChangeLog AUTHORS doc/*.txt
}
|