ofono-1.19.ebuild 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils multilib systemd
  5. DESCRIPTION="Open Source mobile telephony (GSM/UMTS) daemon"
  6. HOMEPAGE="http://ofono.org/"
  7. SRC_URI="mirror://kernel/linux/network/${PN}/${P}.tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
  11. IUSE="+atmodem bluetooth +cdmamodem +datafiles doc dundee examples +isimodem +phonesim +provision +qmimodem threads tools +udev upower"
  12. REQUIRED_USE="dundee? ( bluetooth )"
  13. RDEPEND=">=sys-apps/dbus-1.4
  14. >=dev-libs/glib-2.32
  15. net-misc/mobile-broadband-provider-info
  16. bluetooth? ( >=net-wireless/bluez-4.99 )
  17. udev? ( virtual/udev )
  18. examples? ( dev-python/dbus-python )
  19. tools? ( virtual/libusb:1 )"
  20. DEPEND="${RDEPEND}
  21. virtual/pkgconfig"
  22. DOCS=( ChangeLog AUTHORS )
  23. src_configure() {
  24. econf \
  25. $(use_enable threads) \
  26. $(use_enable udev) \
  27. $(use_enable isimodem) \
  28. $(use_enable atmodem) \
  29. $(use_enable cdmamodem) \
  30. $(use_enable datafiles) \
  31. $(use_enable dundee) \
  32. $(use_enable bluetooth) \
  33. $(use_enable phonesim) \
  34. $(use_enable provision) \
  35. $(use_enable qmimodem) \
  36. $(use_enable tools) \
  37. $(use_enable examples test) \
  38. $(use_enable upower) \
  39. --disable-maintainer-mode \
  40. --disable-rilmodem
  41. --localstatedir=/var \
  42. --with-systemdunitdir="$(systemd_get_systemunitdir)"
  43. }
  44. src_install() {
  45. default
  46. if use tools ; then
  47. dobin tools/auto-enable \
  48. tools/huawei-audio \
  49. tools/lookup-provider-name \
  50. tools/lookup-apn \
  51. tools/get-location \
  52. tools/qmi \
  53. tools/tty-redirector
  54. fi
  55. newinitd "${FILESDIR}"/${PN}.initd ${PN}
  56. use doc && dodoc doc/*.txt
  57. }