diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-13 16:38:56 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-13 16:38:56 +0100 |
commit | ea31ad0ed5501d0bf92267c35beaf06ac016bad2 (patch) | |
tree | 2fdc433d571e3ead010876d43ce2646b7d783680 /x11-libs/qwt | |
parent | 88ebe56470c37b02a044e1091cad6b2df0f3be8f (diff) |
gentoo resync : 13.05.2018
Diffstat (limited to 'x11-libs/qwt')
-rw-r--r-- | x11-libs/qwt/Manifest | 1 | ||||
-rw-r--r-- | x11-libs/qwt/qwt-6.1.3-r2.ebuild | 154 |
2 files changed, 155 insertions, 0 deletions
diff --git a/x11-libs/qwt/Manifest b/x11-libs/qwt/Manifest index d3a0ec405c29..532f916c7f0e 100644 --- a/x11-libs/qwt/Manifest +++ b/x11-libs/qwt/Manifest @@ -5,4 +5,5 @@ DIST qwt-5.2.3.tar.bz2 1983725 BLAKE2B 24c9d5c9b660ec082266a02da59b89ec0f8f4eea0 DIST qwt-6.1.3.tar.bz2 4245614 BLAKE2B 5461602702eb159c5c9131eb554d6a619f40c459432c3f32f98b55e4b659d37848fbc0691baeaf691155bae83f68b9c91d3fee430935dd0c1b29e6fceac7a36f SHA512 d4a73e9e7ddcb7c16c508920a298784935be2eddc8f7585993d9fffe1bb01e1787a0d5d7ea4f220398b94ea2b211a19009dccaeadce56a84410357124bcb051a EBUILD qwt-5.2.3-r2.ebuild 2613 BLAKE2B fda982614ccab5f7b36cb731aaf3fe7788d5355407c91dec6d87e213f24b4d652cc03936af928f3d670a988c95f16f1b31e0d2a5bfd4f27f418428b6b90d1d8c SHA512 d1cde98eaebe87e74f0b40f4743d3ba0dd4a446c9998694083bd8514d125dc16cabef377c8a83a24301f51fe7013e3bd1171320a6aaeb6338eed5d0472f4356f EBUILD qwt-6.1.3-r1.ebuild 5238 BLAKE2B 50bd0fb81fa5b38ff57b0ea19d22ac35a492b6dcbf2fd0c9801c6dc2e54527454cbe7ae82c9c0f5bc9875c68b44ea8af9a975adcd0ddd39b3b067b2ccc3190ee SHA512 1ae81490e6f49e58fa03df9c06e1105f41d2a243632dd83390a525c090a4c58d84bd60614f1e3c35b293d3bd272f8c2443cbfe908a6a2e5cea153560955a2c88 +EBUILD qwt-6.1.3-r2.ebuild 3832 BLAKE2B cae78c7d35232ccbf0ab27114e1125dd8a26d546153f0681b2f00760d9104395fa48383d8b1c9266a44c857856289c4cf62555646e0d94e3b5865df15ec90d2e SHA512 297ecf27893b693a770ab77a15977d4c0e74eafffd31de339d51e221245f3f30fdfa07457363c8e8de2bfa9f1494e6e1fbb23dee60940e654438874cf261296c MISC metadata.xml 870 BLAKE2B 1e2262a74f86901bfdb2a897fb40885880391898e60ca6ddb001ea6f7a1bca4586e2cc2c3af28b8d3f455aac4d93204efb370d491ac6749207cf584c8b08f589 SHA512 53e10079699529613ece87ae1e2908e7f7144d041f62618512d00df0b6bf9ae2c5b70afc8309cef0523e10a6605126f3ce871589c3133d64ac52db9ff7346b43 diff --git a/x11-libs/qwt/qwt-6.1.3-r2.ebuild b/x11-libs/qwt/qwt-6.1.3-r2.ebuild new file mode 100644 index 000000000000..2159276a453a --- /dev/null +++ b/x11-libs/qwt/qwt-6.1.3-r2.ebuild @@ -0,0 +1,154 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit multibuild qmake-utils + +MY_P="${PN}-${PV/_/-}" + +DESCRIPTION="2D plotting library for Qt5" +HOMEPAGE="http://qwt.sourceforge.net/" +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="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +SLOT="6/1.3" +IUSE="designer doc examples mathml opengl static-libs svg" + +DEPEND=" + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + designer? ( dev-qt/designer:5 ) + opengl? ( + dev-qt/qtopengl:5 + virtual/opengl + ) + svg? ( dev-qt/qtsvg:5 ) +" +RDEPEND="${DEPEND} + !<x11-libs/qwt-5.2.3 + !x11-libs/qwt:5[doc] + doc? ( !<media-libs/coin-3.1.3[doc] ) +" + +S="${WORKDIR}"/${MY_P} + +DOCS=( CHANGES-6.1 README ) + +PATCHES=( + "${FILESDIR}"/${PN}-6.0.2-invalid-read.patch + "${FILESDIR}"/${PN}-6.1.1-pc-destdir.patch +) + +pkg_setup() { + MULTIBUILD_VARIANTS=( shared $(usev static-libs) ) +} + +src_prepare() { + cat > qwtconfig.pri <<-EOF + 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 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 + + cat > qwtbuild.pri <<-EOF + QWT_CONFIG += qt warn_on thread release no_keywords + EOF + + multibuild_copy_sources + + preparation() { + if [[ ${MULTIBUILD_VARIANT} == shared ]]; then + echo "QWT_CONFIG += QwtDll" >> qwtconfig.pri + fi + + cat >> qwtconfig.pri <<-EOF + QWT_INSTALL_PLUGINS = "${EPREFIX}$(qt5_get_plugindir)/designer" + QWT_INSTALL_FEATURES = "${EPREFIX}$(qt5_get_mkspecsdir)/features" + EOF + sed \ + -e 's/target doc/target/' \ + -e "/^TARGET/s:(qwt):(qwt6-qt5):g" \ + -e "/^TARGET/s:qwt):qwt6-qt5):g" \ + -i src/src.pro || die + + sed \ + -e '/qwtAddLibrary/s:(qwt):(qwt6-qt5):g' \ + -e '/qwtAddLibrary/s:qwt):qwt6-qt5):g' \ + -i qwt.prf designer/designer.pro examples/examples.pri \ + textengines/mathml/qwtmathml.prf textengines/textengines.pri || die + + default + } + + multibuild_foreach_variant run_in_build_dir preparation +} + +src_configure() { + multibuild_foreach_variant run_in_build_dir eqmake5 +} + +src_compile() { + multibuild_foreach_variant run_in_build_dir default +} + +src_test() { + testing() { + cd examples || die + eqmake5 examples.pro + emake + } + multibuild_foreach_variant run_in_build_dir testing +} + +src_install () { + rm -f doc/man/*/{_,deprecated}* || die + + multibuild_foreach_variant run_in_build_dir emake INSTALL_ROOT="${D}" install + + if use mathml; then + sed \ + -e "s: -L\"${WORKDIR}\".* -lqwt6: -lqwt6:g" \ + -i "${ED}"/usr/$(get_libdir)/pkgconfig/qwtmathml.pc || die + fi + + if use doc; then + HTML_DOCS=( doc/html/. ) + else + rm -rf "${ED}"/usr/share/doc/${PF}/html || die + fi + + einstalldocs + + mkdir -p "${ED}"/usr/share/man/ || die + mv "${ED}"/usr/share/doc/${PF}/man/man3 "${ED}"/usr/share/man/ && \ + rmdir "${ED}"/usr/share/doc/${PF}/man || die + + if use examples; then + # don't build examples - fix the qt files to build once installed + cat > examples/examples.pri <<-EOF + include( qwtconfig.pri ) + TEMPLATE = app + MOC_DIR = moc + INCLUDEPATH += "${EPREFIX}/usr/include/qwt6" + DEPENDPATH += "${EPREFIX}/usr/include/qwt6" + LIBS += -lqwt6 + EOF + sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die + cp *.pri examples/ || die + insinto /usr/share/${PN}6 + doins -r examples + fi +} |