summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/qtox/qtox-9999.ebuild')
-rw-r--r--net-im/qtox/qtox-9999.ebuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/net-im/qtox/qtox-9999.ebuild b/net-im/qtox/qtox-9999.ebuild
index dd9f1a5c5026..21c7d9d197cb 100644
--- a/net-im/qtox/qtox-9999.ebuild
+++ b/net-im/qtox/qtox-9999.ebuild
@@ -13,7 +13,7 @@ EGIT_REPO_URI="https://github.com/qTox/qTox.git"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS=""
-IUSE="gtk X"
+IUSE="gtk test X"
RDEPEND="
dev-db/sqlcipher
@@ -43,8 +43,19 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-qt/linguist-tools:5
virtual/pkgconfig
+ test? ( dev-qt/qttest:5 )
"
+src_prepare() {
+ cmake-utils_src_prepare
+
+ # bug 628574
+ if ! use test; then
+ sed -i CMakeLists.txt -e "/include(Testing)/s/^/#/" || die
+ sed -i cmake/Dependencies.cmake -e "/find_package(Qt5Test/s/^/#/" || die
+ fi
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_STATUSNOTIFIER=$(usex gtk)