qtcurve-9999.ebuild 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. KDE_AUTODEPS="false"
  5. inherit kde5
  6. DESCRIPTION="Widget styles for Qt and GTK2"
  7. HOMEPAGE="https://quickgit.kde.org/?p=qtcurve.git"
  8. LICENSE="LGPL-2+"
  9. SLOT="0"
  10. IUSE="+X gtk nls plasma qt4 +qt5 test"
  11. KEYWORDS=""
  12. REQUIRED_USE="gtk? ( X )
  13. || ( gtk qt4 qt5 )
  14. plasma? ( qt5 )
  15. "
  16. COMMON_DEPEND="
  17. gtk? ( x11-libs/gtk+:2 )
  18. qt4? (
  19. dev-qt/qtcore:4
  20. dev-qt/qtdbus:4
  21. dev-qt/qtgui:4
  22. dev-qt/qtsvg:4
  23. )
  24. qt5? (
  25. $(add_qt_dep qtdbus)
  26. $(add_qt_dep qtgui)
  27. $(add_qt_dep qtsvg)
  28. $(add_qt_dep qtwidgets)
  29. $(add_qt_dep qtx11extras)
  30. )
  31. plasma? (
  32. $(add_frameworks_dep karchive)
  33. $(add_frameworks_dep kcompletion)
  34. $(add_frameworks_dep kconfig)
  35. $(add_frameworks_dep kconfigwidgets)
  36. $(add_frameworks_dep kcoreaddons)
  37. $(add_frameworks_dep kdelibs4support)
  38. $(add_frameworks_dep kguiaddons)
  39. $(add_frameworks_dep ki18n)
  40. $(add_frameworks_dep kiconthemes)
  41. $(add_frameworks_dep kio)
  42. $(add_frameworks_dep kwidgetsaddons)
  43. $(add_frameworks_dep kwindowsystem)
  44. $(add_frameworks_dep kxmlgui)
  45. $(add_qt_dep qtprintsupport)
  46. )
  47. X? (
  48. x11-libs/libX11
  49. x11-libs/libxcb
  50. )
  51. "
  52. DEPEND="${COMMON_DEPEND}
  53. virtual/pkgconfig
  54. nls? ( sys-devel/gettext )
  55. "
  56. RDEPEND="${COMMON_DEPEND}
  57. !x11-themes/gtk-engines-qtcurve
  58. "
  59. DOCS=( AUTHORS ChangeLog.md README.md TODO.md )
  60. #PATCHES=(
  61. # "${FILESDIR}/${P}-add_utils_include.patch"
  62. #)
  63. pkg_setup() {
  64. # bug #498776
  65. if ! version_is_at_least 4.7 $(gcc-version) ; then
  66. append-cxxflags -Doverride=
  67. fi
  68. }
  69. src_configure() {
  70. local mycmakeargs=(
  71. -DQTC_QT4_ENABLE_KDE=OFF
  72. -DQTC_QT4_ENABLE_KWIN=OFF
  73. -DQTC_KDE4_DEFAULT_HOME=ON
  74. -DENABLE_GTK2="$(usex gtk)"
  75. -DENABLE_QT4="$(usex qt4)"
  76. -DENABLE_QT5="$(usex qt5)"
  77. -DENABLE_TEST="$(usex test)"
  78. -DQTC_ENABLE_X11="$(usex X)"
  79. -DQTC_INSTALL_PO="$(usex nls)"
  80. -DQTC_QT5_ENABLE_KDE="$(usex plasma)"
  81. )
  82. kde5_src_configure
  83. }