Skip to content

Commit

Permalink
dev-qt/qt-creator: add USE flag to disable the qmake project manager
Browse files Browse the repository at this point in the history
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Davide Pesavento <[email protected]>
  • Loading branch information
Pesa committed Nov 29, 2021
1 parent 70f35ca commit 8947d86
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dev-qt/qt-creator/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
<flag name="perforce">Add support for Perforce version control system (requires manual installation of Perforce client)</flag>
<flag name="perfprofiler">Build the Linux Perf-based profiler plugin</flag>
<flag name="python">Build plugin for Python language support</flag>
<flag name="qbs">Build plugin for QBS-based projects</flag>
<flag name="qbs">Build plugin for Qbs-based projects</flag>
<flag name="qmake">Build plugin for qmake-based projects</flag>
<flag name="qml">Build plugins for QML-based development (designer, editor, project manager)</flag>
<flag name="qmldesigner">Enable designer for QML/QtQuick-based UIs</flag>
<flag name="qmljs">Build the QML/JavaScript editor plugin</flag>
Expand Down
16 changes: 9 additions & 7 deletions dev-qt/qt-creator/qt-creator-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ fi

LICENSE="GPL-3"
SLOT="0"
QTC_PLUGINS=(android +autotest autotools:autotoolsprojectmanager baremetal bazaar beautifier boot2qt
'+clang:clangcodemodel|clangformat|clangtools' clearcase cmake:cmakeprojectmanager conan cppcheck
ctfvisualizer cvs +designer docker git glsl:glsleditor +help incredibuild +lsp:languageclient
mcu:mcusupport mercurial meson:mesonprojectmanager modeling:modeleditor nim perforce perfprofiler
python qbs:qbsprojectmanager '+qml:qmldesigner|qmljseditor|qmlpreview|qmlprojectmanager|studiowelcome'
qmlprofiler qnx remotelinux scxml:scxmleditor serialterminal silversearcher subversion valgrind
webassembly)
QTC_PLUGINS=(android +autotest autotools:autotoolsprojectmanager baremetal bazaar beautifier boot2qt '+clang:clangcodemodel|clangformat|clangtools'
clearcase cmake:cmakeprojectmanager conan cppcheck ctfvisualizer cvs +designer docker git glsl:glsleditor +help incredibuild
+lsp:languageclient mcu:mcusupport mercurial meson:mesonprojectmanager modeling:modeleditor nim perforce perfprofiler python
qbs:qbsprojectmanager qmake:qmakeprojectmanager '+qml:qmldesigner|qmljseditor|qmlpreview|qmlprojectmanager|studiowelcome'
qmlprofiler qnx remotelinux scxml:scxmleditor serialterminal silversearcher subversion valgrind webassembly)
IUSE="doc systemd test webengine ${QTC_PLUGINS[@]%:*}"
RESTRICT="!test? ( test )"
REQUIRED_USE="
Expand All @@ -39,6 +37,7 @@ REQUIRED_USE="
clang? ( lsp )
mcu? ( baremetal cmake )
python? ( lsp )
qml? ( qmake )
qnx? ( remotelinux )
"

Expand Down Expand Up @@ -149,6 +148,9 @@ src_prepare() {
sed -i -e '/tracing/d' src/libs/libs.pro tests/auto/auto.pro || die
fi
fi
if ! use qmake; then
sed -i -e '/buildoutputparser/d' src/tools/tools.pro || die
fi
if ! use qml; then
sed -i -e '/advanceddockingsystem\|qmleditorwidgets/d' src/libs/libs.pro || die
sed -i -e '/qml2puppet/d' src/tools/tools.pro || die
Expand Down

0 comments on commit 8947d86

Please sign in to comment.