diff options
author | Michael Palimaka <kensington@gentoo.org> | 2018-03-02 22:10:54 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2018-03-02 22:11:38 +1100 |
commit | 4d9883b22033932633769292ac6a2b98f8d3fd08 (patch) | |
tree | 6576dbc3d8186d60dd70ba77d38660d9a0bdce9f /x11-libs | |
parent | net-misc/tn5250: Fix building against sys-libs/ncurses[tinfo] (bug #596314). (diff) | |
download | gentoo-4d9883b22033932633769292ac6a2b98f8d3fd08.tar.gz gentoo-4d9883b22033932633769292ac6a2b98f8d3fd08.tar.bz2 gentoo-4d9883b22033932633769292ac6a2b98f8d3fd08.zip |
x11-libs/qwtpolar: revision bump removes qt4 support and adds missing dependencies
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/qwtpolar/qwtpolar-1.1.1-r2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/x11-libs/qwtpolar/qwtpolar-1.1.1-r2.ebuild b/x11-libs/qwtpolar/qwtpolar-1.1.1-r2.ebuild new file mode 100644 index 000000000000..994d5637f4e5 --- /dev/null +++ b/x11-libs/qwtpolar/qwtpolar-1.1.1-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +DESCRIPTION="Library for displaying values on a polar coordinate system" +HOMEPAGE="http://qwtpolar.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="qwt" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + x11-libs/qwt:6=[designer,qt5(+),svg] +" +DEPEND="${RDEPEND} + dev-qt/qtconcurrent:5 +" + +src_prepare() { + default + + local qtplugindir="${EPREFIX}$(qt5_get_plugindir)" + + sed \ + -e "/QWT_POLAR_INSTALL_PREFIX /s:=.*$:= ${EPREFIX}/usr:g" \ + -e "/QWT_POLAR_INSTALL_LIBS/s:lib:$(get_libdir):g" \ + -e "/QWT_POLAR_INSTALL_DOCS/s:doc:share/doc/${PF}:g" \ + -e "/QWT_POLAR_INSTALL_PLUGINS/s:=.*$:= ${qtplugindir}/designer/:g" \ + -e "/QWT_POLAR_INSTALL_FEATURES/s:=.*$:= ${qtplugindir}/features/:g" \ + -e "/= QwtPolarDesigner/ d" \ + -e "/= QwtPolarExamples/d" \ + -i ${PN}config.pri || die + + sed \ + -e "s:{QWT_POLAR_ROOT}/lib:{QWT_POLAR_ROOT}/$(get_libdir):" \ + -i src/src.pro || die + echo "INCLUDEPATH += ${EPREFIX}/usr/include/qwt6" >> src/src.pro + cat >> designer/designer.pro <<- EOF + INCLUDEPATH += "${EPREFIX}"/usr/include/qwt6 + LIBS += -L"${S}/$(get_libdir)" + EOF +} + +src_configure() { + eqmake5 +} + +src_install() { + emake DESTDIR="${D}" INSTALL_ROOT="${D}" install + einstalldocs +} |