diff options
Diffstat (limited to 'net-misc/ofono/ofono-1.10.ebuild')
-rw-r--r-- | net-misc/ofono/ofono-1.10.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/net-misc/ofono/ofono-1.10.ebuild b/net-misc/ofono/ofono-1.10.ebuild new file mode 100644 index 000000000000..125acadd38d9 --- /dev/null +++ b/net-misc/ofono/ofono-1.10.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/ofono/ofono-1.10.ebuild,v 1.1 2012/10/11 09:33:40 dagger Exp $ + +EAPI="2" + +inherit multilib systemd + +DESCRIPTION="Open Source mobile telephony (GSM/UMTS) daemon." +HOMEPAGE="http://ofono.org/" +SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="+atmodem bluetooth +cdmamodem examples +isimodem +phonesim threads tools +udev" + +RDEPEND=">=sys-apps/dbus-1.4 + >=dev-libs/glib-2.28 + net-misc/mobile-broadband-provider-info + bluetooth? ( >=net-wireless/bluez-4.99 ) + udev? ( >=sys-fs/udev-143 ) + examples? ( dev-python/dbus-python ) + tools? ( virtual/libusb:1 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + default + + # Fix build with newer glib due to G_DISABLE_SINGLE_INCLUDES + grep -lre '<glib/gtypes.h>' "${S}" | while read i; do + sed -ie 's:glib/gtypes.h:glib.h:' "${i}" || die "Unable to sed \"$i\"" + done +} + +src_configure() { + econf \ + $(use_enable threads) \ + $(use_enable udev) \ + $(use_enable isimodem) \ + $(use_enable atmodem) \ + $(use_enable cdmamodem) \ + $(use_enable bluetooth) \ + $(use_enable phonesim) \ + $(use_enable tools) \ + --enable-test \ + --localstatedir=/var \ + --with-systemdunitdir="$(systemd_get_unitdir)" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + if ! use examples ; then + rm -rf "${D}/usr/$(get_libdir)/ofono/test" + fi + + if use tools ; then + dobin tools/{auto-enable,huawei-audio} || die + fi + + newinitd "${FILESDIR}"/${PN}.initd ${PN} || die + dodoc ChangeLog AUTHORS doc/*.txt +} |