diff options
Diffstat (limited to 'dev-util/cmake/cmake-3.27.6-r1.ebuild')
-rw-r--r-- | dev-util/cmake/cmake-3.27.6-r1.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/dev-util/cmake/cmake-3.27.6-r1.ebuild b/dev-util/cmake/cmake-3.27.6-r1.ebuild index ae44c2129a3d..b122058f45cd 100644 --- a/dev-util/cmake/cmake-3.27.6-r1.ebuild +++ b/dev-util/cmake/cmake-3.27.6-r1.ebuild @@ -60,7 +60,7 @@ S="${WORKDIR}/${MY_P}" LICENSE="BSD" SLOT="0" -IUSE="${CMAKE_DOCS_USEFLAG} dap emacs gui ncurses test" +IUSE="${CMAKE_DOCS_USEFLAG} dap emacs gui ncurses qt6 test" RESTRICT="!test? ( test )" RDEPEND=" @@ -75,9 +75,14 @@ RDEPEND=" dap? ( dev-cpp/cppdap ) emacs? ( >=app-editors/emacs-23.1:* ) gui? ( - dev-qt/qtbase:6[gui,widgets] + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + ) + qt6? ( dev-qt/qtbase:6[gui,widgets] ) ) - ncurses? ( sys-libs/ncurses:0= ) + ncurses? ( sys-libs/ncurses:= ) " DEPEND="${RDEPEND}" BDEPEND+=" @@ -205,7 +210,7 @@ src_configure() { -DBUILD_QtDialog=$(usex gui) ) - use gui && mycmakeargs+=( -DCMake_QT_MAJOR_VERSION=6 ) + use gui && mycmakeargs+=( -DCMake_QT_MAJOR_VERSION=$(usex qt6 6 5) ) cmake_src_configure } |