summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-libs/qwt/qwt-6.1.2.ebuild')
-rw-r--r--x11-libs/qwt/qwt-6.1.2.ebuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/x11-libs/qwt/qwt-6.1.2.ebuild b/x11-libs/qwt/qwt-6.1.2.ebuild
index 31fd9ec907dc..cc9a2c934d8e 100644
--- a/x11-libs/qwt/qwt-6.1.2.ebuild
+++ b/x11-libs/qwt/qwt-6.1.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-6.1.2.ebuild,v 1.1 2014/12/21 15:35:49 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt/qwt-6.1.2.ebuild,v 1.2 2014/12/24 09:46:26 jlec Exp $
EAPI=5
@@ -15,7 +15,7 @@ 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 static-libs svg"
+IUSE="doc examples mathml opengl static-libs svg"
DEPEND="
!<x11-libs/qwt-5.2.3
@@ -23,6 +23,7 @@ DEPEND="
dev-qt/qtcore:4
dev-qt/qtgui:4
doc? ( !<media-libs/coin-3.1.3[doc] )
+ opengl? ( virtual/opengl )
svg? ( dev-qt/qtsvg:4 )"
RDEPEND="${DEPEND}"
@@ -48,6 +49,7 @@ src_prepare() {
EOF
use mathml && echo "QWT_CONFIG += QwtMathML" >> qwtconfig.pri
+ use opengl && echo "QWT_CONFIG += QwtOpenGL" >> qwtconfig.pri
use svg && echo "QWT_CONFIG += QwtSvg" >> qwtconfig.pri
cat > qwtbuild.pri <<-EOF
@@ -101,6 +103,10 @@ src_install () {
rm -f doc/man/*/{_,deprecated}* || die
multibuild_foreach_variant run_in_build_dir qt4-r2_src_install
+ sed \
+ -e "s: -L${WORKDIR}.* -lqwt6: -lqwt6:g" \
+ -i "${ED}"/usr/$(get_libdir)/pkgconfig/qwtmathml.pc || die
+
use doc && dohtml -r doc/html/*
if use examples; then