# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit kde5 DESCRIPTION="Manage print jobs and printers in Plasma" KEYWORDS="" IUSE="gtk" DEPEND=" $(add_frameworks_dep kconfig) $(add_frameworks_dep kconfigwidgets) $(add_frameworks_dep kcoreaddons) $(add_frameworks_dep kdbusaddons) $(add_frameworks_dep ki18n) $(add_frameworks_dep kiconthemes) $(add_frameworks_dep kio) $(add_frameworks_dep knotifications) $(add_frameworks_dep kservice) $(add_frameworks_dep kwidgetsaddons) $(add_frameworks_dep kwindowsystem) dev-qt/qtdbus:5 dev-qt/qtdeclarative:5 dev-qt/qtgui:5 dev-qt/qtnetwork:5 dev-qt/qtwidgets:5 net-print/cups " RDEPEND="${DEPEND} gtk? ( app-admin/system-config-printer-gnome ) " pkg_postinst(){ if ! use gtk ; then ewarn ewarn "By switching off \"gtk\" USE flag, you have chosen to do without" ewarn "an important, though optional, runtime dependency:" ewarn ewarn "app-admin/system-config-printer-gnome" ewarn ewarn "${PN} will work nevertheless, but is going to be less comfortable" ewarn "and will show the following error status during runtime:" ewarn ewarn "\"Failed to group devices: 'The name org.fedoraproject.Config.Printing" ewarn "was not provided by any .service files'\"" ewarn fi }