summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-05-23 13:39:20 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-05-23 14:47:37 +0200
commit163af06911edd0328728e5cd4ecc5966fd703812 (patch)
tree2227fb0abfb9de729ed6245a299e9515ec4fdcc3 /x11-libs
parentdev-perl/HTTPD-User-Manage: Remove last-rited pkg (diff)
downloadgentoo-163af06911edd0328728e5cd4ecc5966fd703812.tar.gz
gentoo-163af06911edd0328728e5cd4ecc5966fd703812.tar.bz2
gentoo-163af06911edd0328728e5cd4ecc5966fd703812.zip
x11-libs/qwt: add 5.2.3
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/qwt/Manifest1
-rw-r--r--x11-libs/qwt/metadata.xml1
-rw-r--r--x11-libs/qwt/qwt-5.2.3_p20210211.ebuild92
-rw-r--r--x11-libs/qwt/qwt-6.1.5.ebuild2
4 files changed, 95 insertions, 1 deletions
diff --git a/x11-libs/qwt/Manifest b/x11-libs/qwt/Manifest
index 8975bcd4c249..4bd6322fbbee 100644
--- a/x11-libs/qwt/Manifest
+++ b/x11-libs/qwt/Manifest
@@ -1 +1,2 @@
+DIST qwt-5.2.3_p20210211.tar.gz 2324714 BLAKE2B 86556c9cf65af80500b3cba7ef78be8aec0f2413a1d485641f8870b447a1b1370b9821ad6b4a58c74f87a73172e4b2fa3eb2f02bb525c0ab3982aec550914666 SHA512 8268213c9e809015d83f3f7d42e66c85b6c9cb16efb9586ad4e5da2fa60fdcc5bdf52e0a422adcdfe928e36df0f63d8bbed1fabded91ef36d226e6cc7fa372bb
DIST qwt-6.1.5.tar.bz2 4408268 BLAKE2B 5f42e0cfc95a7dade8e376438234abded91390b52a793eba6aef21027379f12ab2441fd80121e05c1fba13ac1b526bb6c1a6c0e8442c87cb06dcf2c520269373 SHA512 0dd1a8278751f0bb26e33ccbf120a20e406109a440d314e4525ce9a2d6f1fc56dccff2dc11c500fe2cfcbd42f4a641e87a231f93f321edc588d9353ffaccbd22
diff --git a/x11-libs/qwt/metadata.xml b/x11-libs/qwt/metadata.xml
index 5fa861212232..5acd8316bb0a 100644
--- a/x11-libs/qwt/metadata.xml
+++ b/x11-libs/qwt/metadata.xml
@@ -18,5 +18,6 @@
</use>
<upstream>
<remote-id type="sourceforge">qwt</remote-id>
+ <remote-id type="github">SciDAVis/qwt5-qt5</remote-id>
</upstream>
</pkgmetadata>
diff --git a/x11-libs/qwt/qwt-5.2.3_p20210211.ebuild b/x11-libs/qwt/qwt-5.2.3_p20210211.ebuild
new file mode 100644
index 000000000000..3e01139e4af2
--- /dev/null
+++ b/x11-libs/qwt/qwt-5.2.3_p20210211.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit qmake-utils
+
+COMMIT="2a9f1ae2f394abf3a000906b507a0d925b1e4b25"
+
+DESCRIPTION="2D plotting library for Qt5"
+HOMEPAGE="https://qwt.sourceforge.io/ https://github.com/SciDAVis/qwt5-qt5"
+SRC_URI="https://github.com/SciDAVis/qwt5-qt5/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="qwt"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+SLOT="5"
+IUSE="designer examples"
+
+DEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtsvg:5
+ designer? ( dev-qt/designer:5 )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}5-qt5-${COMMIT}"
+
+src_prepare() {
+ default
+ sed -e "/QwtVersion/s:5.2.2.:${PV/_*}:g" -i ${PN}.prf || die
+
+ cat > qwtconfig.pri <<-EOF
+ target.path = "${EPREFIX}/usr/$(get_libdir)"
+ headers.path = "${EPREFIX}/usr/include/qwt5"
+ doc.path = "${EPREFIX}/usr/share/doc/${PF}"
+ CONFIG += qt warn_on thread release
+ CONFIG += QwtDll QwtPlot QwtWidgets QwtSVGItem
+ VERSION = ${PV/_*}
+ QWT_VERSION = ${PV/_*}
+ EOF
+ use designer && echo "CONFIG += QwtDesigner" >> qwtconfig.pri
+ # Fails to compile with MathML enabled
+ #use mathml && echo "CONFIG += QwtMathML" >> qwtconfig.pri
+
+ cat >> qwtconfig.pri <<-EOF
+ QWT_INSTALL_PLUGINS = "${EPREFIX}$(qt5_get_plugindir)/designer"
+ QWT_INSTALL_FEATURES = "${EPREFIX}$(qt5_get_mkspecsdir)/features"
+ EOF
+ sed -i -e 's/headers doc/headers/' src/src.pro || die
+}
+
+src_configure() {
+ eqmake5
+}
+
+src_compile() {
+ default
+}
+
+src_install () {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+ doman doc/man/*/*
+
+ 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/qwt5"
+ DEPENDPATH += "${EPREFIX}/usr/include/qwt5"
+ LIBS += -lqwt
+ EOF
+ sed -i -e 's:../qwtconfig:qwtconfig:' examples/examples.pro || die
+ cp *.pri examples/ || die
+ insinto /usr/share/${PN}5
+ doins -r examples
+ fi
+
+ # avoid file conflict with qwt:6
+ # https://github.com/gbm19/qwt5-qt5/issues/2
+ pushd "${ED}/usr/share/man/man3/" || die
+ for f in *; do
+ mv ${f} ${f//.3/.5qt5.3} || die
+ done
+ popd || die
+}
diff --git a/x11-libs/qwt/qwt-6.1.5.ebuild b/x11-libs/qwt/qwt-6.1.5.ebuild
index 1c2423d812c1..fccc45df62b7 100644
--- a/x11-libs/qwt/qwt-6.1.5.ebuild
+++ b/x11-libs/qwt/qwt-6.1.5.ebuild
@@ -6,7 +6,7 @@ EAPI=7
inherit qmake-utils
DESCRIPTION="2D plotting library for Qt5"
-HOMEPAGE="https://qwt.sourceforge.net/"
+HOMEPAGE="https://qwt.sourceforge.io/"
SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2"
LICENSE="qwt mathml? ( LGPL-2.1 Nokia-Qt-LGPL-Exception-1.1 )"