Skip to content

Commit

Permalink
dev-libs/qcoro: drop USE=testlib
Browse files Browse the repository at this point in the history
qtbase always installs qttest so we can drop USE=testlib here and always build
it instead.

Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Dec 21, 2023
1 parent 3281fd1 commit f3bd35f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion dev-libs/qcoro/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<use>
<flag name="network">Build <pkg>dev-qt/qtbase</pkg> network support</flag>
<flag name="qml">Enable QML/QtQuick support via <pkg>dev-qt/qtdeclarative</pkg></flag>
<flag name="testlib">Install coroutine-friendly versions of <pkg>dev-qt/qtbase</pkg> test macros</flag>
<flag name="websockets">Build <pkg>dev-qt/qtwebsockets</pkg> support</flag>
</use>
</pkgmetadata>
9 changes: 4 additions & 5 deletions dev-libs/qcoro/qcoro-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ HOMEPAGE="https://qcoro.dvratil.cz/ https://github.com/danvratil/qcoro"

LICENSE="MIT"
SLOT="0"
IUSE="dbus examples +network qml test testlib websockets"
IUSE="dbus examples +network qml test websockets"

REQUIRED_USE="examples? ( network ) test? ( testlib )"
REQUIRED_USE="examples? ( network )"
RESTRICT="!test? ( test )"

RDEPEND="
dev-qt/qtbase:6[dbus?,network?]
qml? ( dev-qt/qtdeclarative:6= )
testlib? ( dev-qt/qtbase:6[test] )
websockets? ( dev-qt/qtwebsockets:6 )
"
DEPEND="${RDEPEND}
examples? ( dev-qt/qtbase:6[concurrent,network,widgets] )
test? ( dev-qt/qtbase:6[concurrent,test] )
test? ( dev-qt/qtbase:6[concurrent] )
"

src_configure() {
Expand All @@ -42,7 +41,7 @@ src_configure() {
-DQCORO_WITH_QTNETWORK=$(usex network)
-DQCORO_WITH_QML=$(usex qml)
-DQCORO_WITH_QTQUICK=$(usex qml)
-DQCORO_WITH_QTTEST=$(usex testlib)
-DQCORO_WITH_QTTEST=ON
-DBUILD_TESTING=$(usex test)
-DQCORO_WITH_QTWEBSOCKETS=$(usex websockets)
)
Expand Down

0 comments on commit f3bd35f

Please sign in to comment.