breeze-5.9.4.ebuild 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit kde5 multibuild
  5. DESCRIPTION="Breeze visual style for the Plasma desktop"
  6. HOMEPAGE="https://projects.kde.org/projects/kde/workspace/breeze"
  7. KEYWORDS="~amd64 ~arm ~x86"
  8. IUSE="qt4 wayland"
  9. COMMON_DEPEND="
  10. $(add_frameworks_dep frameworkintegration)
  11. $(add_frameworks_dep kcmutils)
  12. $(add_frameworks_dep kconfig)
  13. $(add_frameworks_dep kconfigwidgets)
  14. $(add_frameworks_dep kcoreaddons)
  15. $(add_frameworks_dep kguiaddons)
  16. $(add_frameworks_dep ki18n)
  17. $(add_frameworks_dep kwidgetsaddons)
  18. $(add_frameworks_dep kwindowsystem)
  19. $(add_plasma_dep kdecoration)
  20. $(add_qt_dep qtdbus)
  21. $(add_qt_dep qtdeclarative)
  22. $(add_qt_dep qtgui)
  23. $(add_qt_dep qtwidgets)
  24. $(add_qt_dep qtx11extras)
  25. x11-libs/libxcb
  26. qt4? (
  27. kde-frameworks/kdelibs:4
  28. x11-libs/libX11
  29. )
  30. wayland? ( $(add_frameworks_dep kwayland) )
  31. "
  32. DEPEND="${COMMON_DEPEND}
  33. $(add_frameworks_dep kpackage)
  34. qt4? ( dev-util/automoc:0 )
  35. "
  36. RDEPEND="${COMMON_DEPEND}
  37. $(add_frameworks_dep breeze-icons)
  38. $(add_plasma_dep kde-cli-tools)
  39. "
  40. pkg_setup() {
  41. kde5_pkg_setup
  42. MULTIBUILD_VARIANTS=( kf5 $(usev qt4) )
  43. }
  44. src_configure() {
  45. myconfigure() {
  46. local mycmakeargs=(
  47. $(cmake-utils_use_find_package wayland KF5Wayland)
  48. )
  49. if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then
  50. mycmakeargs+=( -DUSE_KDE4=true )
  51. fi
  52. kde5_src_configure
  53. }
  54. multibuild_foreach_variant myconfigure
  55. }
  56. src_compile() {
  57. multibuild_foreach_variant kde5_src_compile
  58. }
  59. src_test() {
  60. multibuild_foreach_variant kde5_src_test
  61. }
  62. src_install() {
  63. multibuild_foreach_variant kde5_src_install
  64. }