kdevelop-5.0.4.ebuild 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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.0"
  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="+cxx +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. x11-misc/shared-mime-info
  45. cxx? ( >=sys-devel/clang-3.5.0:= )
  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-qmake
  66. !dev-util/kdevelop-qmljs
  67. !<kde-apps/kapptemplate-16.04.0
  68. "
  69. RESTRICT+=" test"
  70. # see bug 366471
  71. PATCHES=( "${FILESDIR}/${PN}-5.0.2-ninja-optional.patch" )
  72. src_configure() {
  73. local mycmakeargs=(
  74. -DLEGACY_CPP_SUPPORT=$(usex !cxx)
  75. -DBUILD_cpp=OFF
  76. $(cmake-utils_use_find_package gdbui KF5SysGuard)
  77. -DBUILD_executeplasmoid=$(usex plasma)
  78. $(cmake-utils_use_find_package plasma KF5Plasma)
  79. -DBUILD_ninjabuilder=$(usex ninja)
  80. $(cmake-utils_use_find_package okteta OktetaKastenControllers)
  81. $(cmake-utils_use_find_package qmake KDevelop-PG-Qt)
  82. -DBUILD_qthelp=$(usex qthelp)
  83. )
  84. kde5_src_configure
  85. }