summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorM. Scholz2019-07-05 14:27:54 +0200
committerM. Scholz2019-07-05 14:27:54 +0200
commitb98003b1ce3540c8c8798c427d3d93899a1e56c4 (patch)
tree660069905398fef17a4ecbe81821b1b3fa537b38
downloadaur-b98003b1ce3540c8c8798c427d3d93899a1e56c4.tar.gz
initial
-rw-r--r--.SRCINFO18
-rw-r--r--00_qlist_missing.patch68
-rw-r--r--PKGBUILD41
-rw-r--r--qwtconfig-archlinux.pri137
4 files changed, 264 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0d649851083b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = qwt5-qt5
+ pkgdesc = Qwt library (version 5.2.3) updated to work with Qt5.
+ pkgver = 5.2.3.0
+ pkgrel = 1
+ url = https://github.com/gbm19/qwt5-qt5
+ arch = x86_64
+ license = custom
+ depends = qt5-base
+ depends = qt5-svg
+ source = qwt5-qt5-5.2.3.0.zip::https://github.com/gbm19/qwt5-qt5/archive/2819734e280ab2fce39338ccecf21124eb787004.zip
+ source = qwtconfig-archlinux.pri
+ source = 00_qlist_missing.patch
+ sha1sums = 75001ab1862ba448a7883e87a32a0956ac374053
+ sha1sums = 23209de530c9604a0b2fa6df32b6beabe28a9e58
+ sha1sums = 94ed795c9457d187d1e31489f8377e2570919bb1
+
+pkgname = qwt5-qt5
+
diff --git a/00_qlist_missing.patch b/00_qlist_missing.patch
new file mode 100644
index 000000000000..33355d945698
--- /dev/null
+++ b/00_qlist_missing.patch
@@ -0,0 +1,68 @@
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1: .qmake.stash
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/designer: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/designer: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/designer: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/designer: plugins
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/designer: resources
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples: bin
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/bode: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/bode: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/bode: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/cpuplot: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/cpuplot: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/cpuplot: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo1: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo1: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo1: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo2: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo2: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/curvdemo2: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/data_plot: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/data_plot: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/data_plot: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/event_filter: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/event_filter: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/event_filter: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/histogram: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/histogram: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/histogram: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/realtime_plot: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/realtime_plot: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/realtime_plot: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/simple_plot: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/simple_plot: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/simple_plot: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/spectrogram: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/spectrogram: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/examples/spectrogram: obj
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1: lib
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/src: Makefile
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/src: moc
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/src: obj
+diff -r -u10 qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004/src/qwt_clipper.cpp qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/src/qwt_clipper.cpp
+--- qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004/src/qwt_clipper.cpp 2018-11-29 18:52:06.000000000 +0100
++++ qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/src/qwt_clipper.cpp 2019-07-05 12:48:12.739158087 +0200
+@@ -1,19 +1,20 @@
+ /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
+ * Qwt Widget Library
+ * Copyright (C) 1997 Josef Wilgen
+ * Copyright (C) 2002 Uwe Rathmann
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the Qwt License, Version 1.0
+ *****************************************************************************/
+
++#include <QList>
+ #include <qrect.h>
+ #include "qwt_math.h"
+ #include "qwt_clipper.h"
+
+ static inline QwtDoubleRect boundingRect(const QwtPolygonF &polygon)
+ {
+ #if QT_VERSION < 0x040000
+ if (polygon.isEmpty())
+ return QwtDoubleRect(0, 0, 0, 0);
+
+Only in qwt5-qt5-2819734e280ab2fce39338ccecf21124eb787004.1/textengines: Makefile
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..04205fe18b49
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Mirko Scholz
+pkgname=qwt5-qt5
+_commit=2819734e280ab2fce39338ccecf21124eb787004
+pkgver=5.2.3.0
+pkgrel=1
+pkgdesc='Qwt library (version 5.2.3) updated to work with Qt5.'
+arch=('x86_64')
+license=('custom')
+depends=('qt5-base' 'qt5-svg')
+url='https://github.com/gbm19/qwt5-qt5'
+source=(
+"qwt5-qt5-${pkgver}.zip::https://github.com/gbm19/qwt5-qt5/archive/${_commit}.zip"
+"qwtconfig-archlinux.pri"
+"00_qlist_missing.patch"
+)
+sha1sums=('75001ab1862ba448a7883e87a32a0956ac374053'
+ '23209de530c9604a0b2fa6df32b6beabe28a9e58'
+ '94ed795c9457d187d1e31489f8377e2570919bb1')
+
+prepare() {
+ install -Dm644 "qwtconfig-archlinux.pri" "${srcdir}/qwt5-qt5-${_commit}/qwtconfig.pri"
+ cd "${srcdir}/qwt5-qt5-${_commit}"
+ patch --forward --strip=1 --input="${srcdir}/00_qlist_missing.patch"
+}
+
+build() {
+ cd "${srcdir}/qwt5-qt5-${_commit}"
+ qmake-qt5 qwt.pro
+ make
+}
+
+package() {
+ cd "${srcdir}/qwt5-qt5-${_commit}"
+ make INSTALL_ROOT="${pkgdir}" install
+
+ # remove docs
+ rm -r "${pkgdir}/usr/share/doc/"
+ rm -r "${pkgdir}/usr/share/man/"
+
+ install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/qwtconfig-archlinux.pri b/qwtconfig-archlinux.pri
new file mode 100644
index 000000000000..ccfb2c7b2b9c
--- /dev/null
+++ b/qwtconfig-archlinux.pri
@@ -0,0 +1,137 @@
+######################################################################
+# Install paths
+######################################################################
+
+VER_MAJ = 5
+VER_MIN = 2
+VER_PAT = 3
+VERSION = $${VER_MAJ}.$${VER_MIN}.$${VER_PAT}
+
+greaterThan(QT_MAJOR_VERSION, 3){
+ CONFIG += c++11
+}
+
+equals(QT_MAJOR_VERSION, 5) {
+ QT += widgets printsupport
+}
+
+message(Using QT version $$QT_VERSION)
+
+target.path = $$[QT_INSTALL_LIBS]
+doc.path = $$[QT_INSTALL_DOCS]
+
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+ headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt3
+} else {
+ equals(QT_MAJOR_VERSION, 5) {
+ headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt5
+ } else {
+ headers.path = $$[QT_INSTALL_HEADERS]/qwt5-qt4
+ }
+}
+
+######################################################################
+# qmake internal options
+######################################################################
+
+CONFIG += qt # Also for Qtopia Core!
+CONFIG += warn_on
+CONFIG += thread
+#CONFIG += silent
+
+######################################################################
+# release/debug mode
+# If you want to build both DEBUG_SUFFIX and RELEASE_SUFFIX
+# have to differ to avoid, that they overwrite each other.
+######################################################################
+
+VVERSION = $$[QT_VERSION]
+isEmpty(VVERSION) {
+
+ # Qt 3
+ CONFIG += release # release/debug
+}
+else {
+ # Qt 4
+ win32 {
+ # On Windows you can't mix release and debug libraries.
+ # The designer is built in release mode. If you like to use it
+ # you need a release version. For your own application development you
+ # might need a debug version.
+ # Enable debug_and_release + build_all if you want to build both.
+
+ CONFIG += release # release/debug/debug_and_release
+ #CONFIG += debug_and_release
+ #CONFIG += build_all
+ }
+ else {
+ CONFIG += release # release/debug
+ }
+}
+
+######################################################################
+# If you want to have different names for the debug and release
+# versions you can add a suffix rule below.
+######################################################################
+
+DEBUG_SUFFIX =
+RELEASE_SUFFIX =
+
+win32 {
+ DEBUG_SUFFIX = d
+}
+
+######################################################################
+# Build the static/shared libraries.
+# If QwtDll is enabled, a shared library is built, otherwise
+# it will be a static library.
+######################################################################
+
+CONFIG += QwtDll
+
+######################################################################
+# QwtPlot enables all classes, that are needed to use the QwtPlot
+# widget.
+######################################################################
+
+CONFIG += QwtPlot
+
+######################################################################
+# QwtWidgets enables all classes, that are needed to use the all other
+# widgets (sliders, dials, ...), beside QwtPlot.
+######################################################################
+
+CONFIG += QwtWidgets
+
+######################################################################
+# If you want to display svg imageson the plot canvas, enable the
+# line below. Note that Qwt needs the svg+xml, when enabling
+# QwtSVGItem.
+######################################################################
+
+CONFIG += QwtSVGItem
+
+######################################################################
+# You can use the MathML renderer of the Qt solutions package to
+# enable MathML support in Qwt. # If you want this, copy
+# qtmmlwidget.h + qtmmlwidget.cpp to # textengines/mathml and enable
+# the line below.
+######################################################################
+
+#CONFIG += QwtMathML
+
+######################################################################
+# If you want to build the Qwt designer plugin,
+# enable the line below.
+# Otherwise you have to build it from the designer directory.
+######################################################################
+
+# CONFIG += QwtDesigner
+
+######################################################################
+# If you want to auto build the examples, enable the line below
+# Otherwise you have to build them from the examples directory.
+######################################################################
+
+# CONFIG += QwtExamples