qtbearer-4.8.6-r1.ebuild 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit qt4-build-multilib
  5. DESCRIPTION="The network bearer plugins for the Qt toolkit"
  6. if [[ ${QT4_BUILD_TYPE} == live ]]; then
  7. KEYWORDS="alpha arm hppa ia64 ppc ppc64 sparc"
  8. else
  9. KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
  10. fi
  11. IUSE="connman networkmanager"
  12. DEPEND="
  13. ~dev-qt/qtcore-${PV}[aqua=,debug=,${MULTILIB_USEDEP}]
  14. connman? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
  15. networkmanager? ( ~dev-qt/qtdbus-${PV}[aqua=,debug=,${MULTILIB_USEDEP}] )
  16. "
  17. RDEPEND="${DEPEND}
  18. connman? ( net-misc/connman )
  19. networkmanager? ( net-misc/networkmanager )
  20. "
  21. pkg_setup() {
  22. QT4_TARGET_DIRECTORIES="
  23. src/plugins/bearer/generic
  24. $(use connman && echo src/plugins/bearer/connman)
  25. $(use networkmanager && echo src/plugins/bearer/networkmanager)"
  26. }
  27. multilib_src_configure() {
  28. local myconf=(
  29. $(use connman || use networkmanager || echo -no-dbus)
  30. -no-accessibility -no-xmlpatterns -no-multimedia -no-audio-backend -no-phonon
  31. -no-phonon-backend -no-svg -no-webkit -no-script -no-scripttools -no-declarative
  32. -system-zlib -no-gif -no-libtiff -no-libpng -no-libmng -no-libjpeg
  33. -no-cups -no-gtkstyle -no-nas-sound -no-opengl
  34. -no-sm -no-xshape -no-xvideo -no-xsync -no-xinerama -no-xcursor -no-xfixes
  35. -no-xrandr -no-xrender -no-mitshm -no-fontconfig -no-freetype -no-xinput -no-xkb
  36. )
  37. qt4_multilib_src_configure
  38. }