summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2016-01-12 17:52:19 +0000
committerSven Wegener <swegener@gentoo.org>2016-01-12 18:35:26 +0000
commitcda1e43e3f791545b4ce96a719558a1bba001ea6 (patch)
tree07ce81b0c85f8687a85e0a0669bbb9a1af0f7198 /sci-electronics
parentapp-portage/portpeek: Fix for =category/package-version* (asterick handling) (diff)
downloadgentoo-cda1e43e3f791545b4ce96a719558a1bba001ea6.tar.gz
gentoo-cda1e43e3f791545b4ce96a719558a1bba001ea6.tar.bz2
gentoo-cda1e43e3f791545b4ce96a719558a1bba001ea6.zip
sci-electronics/pulseview: Support qt4 and qt5
Signed-off-by: Sven Wegener <swegener@gentoo.org>
Diffstat (limited to 'sci-electronics')
-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
}