summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-electronics/pulseview/pulseview-9999.ebuild')
-rw-r--r--sci-electronics/pulseview/pulseview-9999.ebuild17
1 files changed, 14 insertions, 3 deletions
diff --git a/sci-electronics/pulseview/pulseview-9999.ebuild b/sci-electronics/pulseview/pulseview-9999.ebuild
index fb77e52bcc3f..3123a1c16da2 100644
--- a/sci-electronics/pulseview/pulseview-9999.ebuild
+++ b/sci-electronics/pulseview/pulseview-9999.ebuild
@@ -20,14 +20,24 @@ HOMEPAGE="http://sigrok.org/wiki/PulseView"
LICENSE="GPL-3"
SLOT="0"
-IUSE="+decode static"
-REQUIRED_USE="decode? ( ${PYTHON_REQUIRED_USE} )"
+IUSE="+decode qt4 qt5 static"
+REQUIRED_USE="decode? ( ${PYTHON_REQUIRED_USE} ) ^^ ( qt4 qt5 )"
RDEPEND="
dev-libs/boost:0=
dev-libs/glib:2
>=sci-libs/libsigrok-0.4.0[cxx]
- dev-qt/qtgui:4
+ qt4? (
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ dev-qt/qtsvg:4
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtsvg:5
+ )
decode? (
>=sci-libs/libsigrokdecode-0.4.0
${PYTHON_DEPS}
@@ -42,6 +52,7 @@ src_configure() {
-DDISABLE_WERROR=TRUE
$(cmake-utils_use_enable decode DECODE)
$(cmake-utils_use_enable static STATIC_PKGDEPS_LIBS)
+ $(cmake-utils_use qt4 FORCE_QT4)
)
cmake-utils_src_configure
}