kdevelop-5.1.0.ebuild 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. EGIT_BRANCH="5.1"
  5. KDE_HANDBOOK="forceoptional"
  6. KDE_TEST="forceoptional-recursive"
  7. VIRTUALX_REQUIRED="test"
  8. inherit kde5
  9. DESCRIPTION="Integrated Development Environment, supporting KF5/Qt, C/C++ and much more"
  10. LICENSE="GPL-2 LGPL-2"
  11. IUSE="+gdbui +ninja okteta +plasma +qmake qthelp"
  12. [[ ${KDE_BUILD_TYPE} = release ]] && KEYWORDS="~amd64 ~x86"
  13. COMMON_DEPEND="
  14. $(add_frameworks_dep kcmutils)
  15. $(add_frameworks_dep kcompletion)
  16. $(add_frameworks_dep kconfig)
  17. $(add_frameworks_dep kconfigwidgets)
  18. $(add_frameworks_dep kcoreaddons)
  19. $(add_frameworks_dep kcrash)
  20. $(add_frameworks_dep kdeclarative)
  21. $(add_frameworks_dep ki18n)
  22. $(add_frameworks_dep kiconthemes)
  23. $(add_frameworks_dep kio)
  24. $(add_frameworks_dep kitemmodels)
  25. $(add_frameworks_dep kitemviews)
  26. $(add_frameworks_dep kjobwidgets)
  27. $(add_frameworks_dep knewstuff)
  28. $(add_frameworks_dep knotifyconfig)
  29. $(add_frameworks_dep kparts)
  30. $(add_frameworks_dep kservice)
  31. $(add_frameworks_dep ktexteditor)
  32. $(add_frameworks_dep kwidgetsaddons)
  33. $(add_frameworks_dep kwindowsystem)
  34. $(add_frameworks_dep kxmlgui)
  35. $(add_frameworks_dep threadweaver)
  36. $(add_qt_dep qtdbus)
  37. $(add_qt_dep qtdeclarative)
  38. $(add_qt_dep qtgui)
  39. $(add_qt_dep qtnetwork)
  40. $(add_qt_dep qtwebkit)
  41. $(add_qt_dep qtwidgets)
  42. $(add_qt_dep qtxml)
  43. >=dev-util/kdevplatform-${PV}:5
  44. >=sys-devel/clang-3.5.0:*
  45. x11-misc/shared-mime-info
  46. gdbui? ( $(add_plasma_dep libksysguard) )
  47. okteta? ( $(add_kdeapps_dep okteta) )
  48. plasma? (
  49. $(add_frameworks_dep krunner)
  50. $(add_frameworks_dep plasma)
  51. )
  52. qmake? ( dev-util/kdevelop-pg-qt:5 )
  53. qthelp? ( $(add_qt_dep qthelp) )
  54. "
  55. DEPEND="${COMMON_DEPEND}
  56. $(add_qt_dep qtconcurrent)
  57. "
  58. RDEPEND="${COMMON_DEPEND}
  59. $(add_kdeapps_dep kapptemplate)
  60. $(add_kdeapps_dep kio-extras)
  61. >=sys-devel/gdb-7.0[python]
  62. ninja? ( dev-util/ninja )
  63. !dev-util/kdevelop:4
  64. !dev-util/kdevelop-clang
  65. !dev-util/kdevelop-cppcheck
  66. !dev-util/kdevelop-qmake
  67. !dev-util/kdevelop-qmljs
  68. !<kde-apps/kapptemplate-16.04.0
  69. "
  70. RESTRICT+=" test"
  71. # see bug 366471
  72. PATCHES=( "${FILESDIR}/${PN}-5.0.2-ninja-optional.patch" )
  73. src_configure() {
  74. local mycmakeargs=(
  75. $(cmake-utils_use_find_package gdbui KF5SysGuard)
  76. -DBUILD_executeplasmoid=$(usex plasma)
  77. $(cmake-utils_use_find_package plasma KF5Plasma)
  78. -DBUILD_ninjabuilder=$(usex ninja)
  79. $(cmake-utils_use_find_package okteta OktetaKastenControllers)
  80. $(cmake-utils_use_find_package qmake KDevelop-PG-Qt)
  81. -DBUILD_qthelp=$(usex qthelp)
  82. )
  83. kde5_src_configure
  84. }