kde-cli-tools-5.9.4.ebuild 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_HANDBOOK="true"
  5. KDE_TEST="true"
  6. VIRTUALX_REQUIRED="test"
  7. inherit kde5
  8. DESCRIPTION="Tools based on KDE Frameworks 5 to better interact with the system"
  9. HOMEPAGE="https://projects.kde.org/projects/kde/workspace/kde-cli-tools"
  10. KEYWORDS="~amd64 ~arm ~x86"
  11. IUSE="+kdesu X"
  12. DEPEND="
  13. $(add_frameworks_dep kcmutils)
  14. $(add_frameworks_dep kcompletion)
  15. $(add_frameworks_dep kconfig)
  16. $(add_frameworks_dep kconfigwidgets)
  17. $(add_frameworks_dep kcoreaddons)
  18. $(add_frameworks_dep ki18n)
  19. $(add_frameworks_dep kiconthemes)
  20. $(add_frameworks_dep kio)
  21. $(add_frameworks_dep kservice)
  22. $(add_frameworks_dep kwidgetsaddons)
  23. $(add_frameworks_dep kwindowsystem)
  24. $(add_qt_dep qtdbus)
  25. $(add_qt_dep qtgui)
  26. $(add_qt_dep qtsvg)
  27. $(add_qt_dep qtwidgets)
  28. kdesu? ( $(add_frameworks_dep kdesu) )
  29. X? (
  30. $(add_qt_dep qtx11extras)
  31. x11-libs/libX11
  32. )
  33. "
  34. RDEPEND="${DEPEND}
  35. handbook? ( !kde-apps/kdesu[handbook] )
  36. "
  37. # requires running kde environment
  38. RESTRICT+=" test"
  39. src_configure() {
  40. local mycmakeargs=(
  41. $(cmake-utils_use_find_package kdesu KF5Su)
  42. $(cmake-utils_use_find_package X KF5KDELibs4Support)
  43. $(cmake-utils_use_find_package X Qt5X11Extras)
  44. )
  45. kde5_src_configure
  46. }
  47. src_install() {
  48. kde5_src_install
  49. use kdesu && dosym /usr/$(get_libdir)/libexec/kf5/kdesu /usr/bin/kdesu5
  50. }