# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit kde5 multibuild DESCRIPTION="Breeze visual style for the Plasma desktop" HOMEPAGE="https://projects.kde.org/projects/kde/workspace/breeze" KEYWORDS=" ~amd64" IUSE="kde4" DEPEND=" $(add_frameworks_dep frameworkintegration) $(add_frameworks_dep kcmutils) $(add_frameworks_dep kconfig) $(add_frameworks_dep kconfigwidgets) $(add_frameworks_dep kcoreaddons) $(add_frameworks_dep kguiaddons) $(add_frameworks_dep ki18n) $(add_frameworks_dep kwindowsystem) $(add_plasma_dep kdecoration) dev-qt/qtdbus:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 x11-libs/libxcb kde4? ( kde-base/kdelibs:4 x11-libs/libX11 ) " RDEPEND="${DEPEND} $(add_plasma_dep kde-cli-tools) !kde-base/breeze " pkg_setup() { kde5_pkg_setup MULTIBUILD_VARIANTS=( kf5 $(usev kde4) ) } src_configure() { myconfigure() { local mycmakeargs=() if [[ ${MULTIBUILD_VARIANT} = kde4 ]] ; then mycmakeargs+=( -DUSE_KDE4=true ) fi kde5_src_configure } multibuild_foreach_variant myconfigure } src_compile() { multibuild_foreach_variant kde5_src_compile } src_install() { multibuild_foreach_variant kde5_src_install }