breeze-5.8.6.ebuild 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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 qtgui)
  22. $(add_qt_dep qtwidgets)
  23. $(add_qt_dep qtx11extras)
  24. x11-libs/libxcb
  25. qt4? (
  26. kde-frameworks/kdelibs:4
  27. x11-libs/libX11
  28. )
  29. wayland? ( $(add_frameworks_dep kwayland) )
  30. "
  31. DEPEND="${COMMON_DEPEND}
  32. $(add_frameworks_dep kpackage)
  33. qt4? ( dev-util/automoc:0 )
  34. "
  35. RDEPEND="${COMMON_DEPEND}
  36. $(add_frameworks_dep breeze-icons)
  37. $(add_plasma_dep kde-cli-tools)
  38. "
  39. pkg_setup() {
  40. kde5_pkg_setup
  41. MULTIBUILD_VARIANTS=( kf5 $(usev qt4) )
  42. }
  43. src_configure() {
  44. myconfigure() {
  45. local mycmakeargs=(
  46. $(cmake-utils_use_find_package wayland KF5Wayland)
  47. )
  48. if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then
  49. mycmakeargs+=( -DUSE_KDE4=true )
  50. fi
  51. kde5_src_configure
  52. }
  53. multibuild_foreach_variant myconfigure
  54. }
  55. src_compile() {
  56. multibuild_foreach_variant kde5_src_compile
  57. }
  58. src_test() {
  59. multibuild_foreach_variant kde5_src_test
  60. }
  61. src_install() {
  62. multibuild_foreach_variant kde5_src_install
  63. }