oxygen-5.8.6.ebuild 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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="Oxygen visual style for the Plasma desktop"
  6. HOMEPAGE="https://projects.kde.org/projects/kde/workspace/oxygen"
  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 kcompletion)
  13. $(add_frameworks_dep kconfig)
  14. $(add_frameworks_dep kconfigwidgets)
  15. $(add_frameworks_dep kcoreaddons)
  16. $(add_frameworks_dep kguiaddons)
  17. $(add_frameworks_dep ki18n)
  18. $(add_frameworks_dep kwidgetsaddons)
  19. $(add_frameworks_dep kwindowsystem)
  20. $(add_plasma_dep kdecoration)
  21. $(add_qt_dep qtdbus)
  22. $(add_qt_dep qtgui)
  23. $(add_qt_dep qtwidgets)
  24. $(add_qt_dep qtx11extras)
  25. x11-libs/libxcb
  26. qt4? (
  27. kde-frameworks/kdelibs:4
  28. x11-libs/libX11
  29. )
  30. wayland? ( $(add_frameworks_dep kwayland) )
  31. "
  32. DEPEND="${COMMON_DEPEND}
  33. $(add_frameworks_dep kservice)
  34. qt4? (
  35. dev-util/automoc:0
  36. virtual/pkgconfig
  37. )
  38. "
  39. RDEPEND="${COMMON_DEPEND}
  40. $(add_plasma_dep kde-cli-tools)
  41. qt4? (
  42. !kde-plasma/kstyles:4
  43. !kde-plasma/liboxygenstyle:4
  44. )
  45. !kde-plasma/kdebase-cursors:4
  46. "
  47. pkg_setup() {
  48. kde5_pkg_setup
  49. MULTIBUILD_VARIANTS=( kf5 $(usev qt4) )
  50. }
  51. src_configure() {
  52. myconfigure() {
  53. local mycmakeargs=(
  54. $(cmake-utils_use_find_package wayland KF5Wayland)
  55. )
  56. if [[ ${MULTIBUILD_VARIANT} = qt4 ]] ; then
  57. mycmakeargs+=( -DUSE_KDE4=true )
  58. fi
  59. kde5_src_configure
  60. }
  61. multibuild_foreach_variant myconfigure
  62. }
  63. src_compile() {
  64. multibuild_foreach_variant kde5_src_compile
  65. }
  66. src_test() {
  67. multibuild_foreach_variant kde5_src_test
  68. }
  69. src_install() {
  70. multibuild_foreach_variant kde5_src_install
  71. }