powerdevil-5.9.4.ebuild 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_GCC_MINIMAL="4.8"
  5. KDE_HANDBOOK="true"
  6. inherit kde5
  7. DESCRIPTION="Power management for KDE Plasma Shell"
  8. HOMEPAGE="https://projects.kde.org/projects/kde/workspace/powerdevil"
  9. KEYWORDS="~amd64 ~arm ~x86"
  10. IUSE="consolekit +wireless"
  11. DEPEND="
  12. $(add_frameworks_dep kactivities)
  13. $(add_frameworks_dep kauth policykit)
  14. $(add_frameworks_dep kcompletion)
  15. $(add_frameworks_dep kconfig)
  16. $(add_frameworks_dep kconfigwidgets)
  17. $(add_frameworks_dep kcoreaddons)
  18. $(add_frameworks_dep kcrash)
  19. $(add_frameworks_dep kdbusaddons)
  20. $(add_frameworks_dep kdelibs4support)
  21. $(add_frameworks_dep kglobalaccel)
  22. $(add_frameworks_dep ki18n)
  23. $(add_frameworks_dep kidletime)
  24. $(add_frameworks_dep kio)
  25. $(add_frameworks_dep knotifications)
  26. $(add_frameworks_dep knotifyconfig)
  27. $(add_frameworks_dep kservice)
  28. $(add_frameworks_dep kwayland)
  29. $(add_frameworks_dep kwidgetsaddons)
  30. $(add_frameworks_dep kxmlgui)
  31. $(add_frameworks_dep solid)
  32. $(add_plasma_dep libkscreen)
  33. $(add_plasma_dep plasma-workspace)
  34. $(add_qt_dep qtdbus)
  35. $(add_qt_dep qtgui)
  36. $(add_qt_dep qtwidgets)
  37. $(add_qt_dep qtx11extras)
  38. virtual/libudev:=
  39. x11-libs/libxcb
  40. wireless? (
  41. $(add_frameworks_dep bluez-qt)
  42. $(add_frameworks_dep networkmanager-qt)
  43. )
  44. "
  45. RDEPEND="${DEPEND}
  46. $(add_plasma_dep kde-cli-tools)
  47. >=sys-power/upower-0.9.23
  48. consolekit? (
  49. >=sys-auth/consolekit-1.0.1
  50. sys-auth/polkit-pkla-compat
  51. sys-power/pm-utils
  52. )
  53. !kde-plasma/powerdevil:4
  54. !kde-plasma/systemsettings:4[handbook]
  55. "
  56. src_configure() {
  57. local mycmakeargs=(
  58. $(cmake-utils_use_find_package wireless KF5BluezQt)
  59. $(cmake-utils_use_find_package wireless KF5NetworkManagerQt)
  60. )
  61. kde5_src_configure
  62. }
  63. src_install() {
  64. kde5_src_install
  65. if use consolekit ; then
  66. insinto /etc/polkit-1/localauthority/10-vendor.d/
  67. doins "${FILESDIR}"/10-org.freedesktop.upower.pkla
  68. doins "${FILESDIR}"/20-org.freedesktop.consolekit.system.stop-multiple-users.pkla
  69. doins "${FILESDIR}"/30-org.freedesktop.consolekit.system.restart-multiple-users.pkla
  70. doins "${FILESDIR}"/40-org.freedesktop.consolekit.system.suspend-multiple-users.pkla
  71. doins "${FILESDIR}"/50-org.freedesktop.consolekit.system.hibernate-multiple-users.pkla
  72. fi
  73. }