summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2015-09-07 16:03:37 +0200
committerJustin Lecher <jlec@gentoo.org>2015-09-07 20:08:07 +0200
commitd83a0e556a92ff2af5313b57ee6b6feb9237a841 (patch)
treefa87638d1c9a019d716c122afbc903136206d5c6 /x11-libs/qwt
parentdev-db/postgresql: add alpha keyword (diff)
downloadgentoo-d83a0e556a92ff2af5313b57ee6b6feb9237a841.tar.gz
gentoo-d83a0e556a92ff2af5313b57ee6b6feb9237a841.tar.bz2
gentoo-d83a0e556a92ff2af5313b57ee6b6feb9237a841.zip
x11-libs/qwt: Build Designer plugin conditionally
Thanks Luis Ressel for the patch Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=557438 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'x11-libs/qwt')
-rw-r--r--x11-libs/qwt/qwt-6.1.2-r1.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/x11-libs/qwt/qwt-6.1.2-r1.ebuild b/x11-libs/qwt/qwt-6.1.2-r1.ebuild
index 0b678c3f629f..52d528e73aee 100644
--- a/x11-libs/qwt/qwt-6.1.2-r1.ebuild
+++ b/x11-libs/qwt/qwt-6.1.2-r1.ebuild
@@ -15,25 +15,25 @@ SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV/_/-}/${MY_P}.tar.bz2"
LICENSE="qwt mathml? ( LGPL-2.1 Nokia-Qt-LGPL-Exception-1.1 )"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
SLOT="6"
-IUSE="doc examples mathml opengl qt4 qt5 static-libs svg"
+IUSE="designer doc examples mathml opengl qt4 qt5 static-libs svg"
REQUIRED_USE="|| ( qt4 qt5 )"
DEPEND="
!<x11-libs/qwt-5.2.3
qt4? (
- dev-qt/designer:4
dev-qt/qtcore:4
dev-qt/qtgui:4
+ designer? ( dev-qt/designer:4 )
opengl? ( dev-qt/qtopengl:4 )
svg? ( dev-qt/qtsvg:4 )
)
qt5? (
- dev-qt/designer:5
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtconcurrent:5
dev-qt/qtwidgets:5
+ designer? ( dev-qt/designer:5 )
opengl? ( dev-qt/qtopengl:5 )
svg? ( dev-qt/qtsvg:5 )
)
@@ -56,11 +56,12 @@ src_prepare() {
QWT_INSTALL_LIBS = "${EPREFIX}/usr/$(get_libdir)"
QWT_INSTALL_HEADERS = "${EPREFIX}/usr/include/qwt6"
QWT_INSTALL_DOCS = "${EPREFIX}/usr/share/doc/${PF}"
- QWT_CONFIG += QwtPlot QwtWidgets QwtDesigner QwtPkgConfig
+ QWT_CONFIG += QwtPlot QwtWidgets QwtPkgConfig
VERSION = ${PV/_*}
QWT_VERSION = ${PV/_*}
EOF
+ use designer && echo "QWT_CONFIG += QwtDesigner" >> qwtconfig.pri
use mathml && echo "QWT_CONFIG += QwtMathML" >> qwtconfig.pri
use opengl && echo "QWT_CONFIG += QwtOpenGL" >> qwtconfig.pri
use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri