From c55b2a27321997ab511e6d3ba8357b6ed8a071c5 Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sun, 17 Jan 2021 07:54:24 -0800 Subject: libraries/qwt-qt5: Updated for version 6.1.6. Signed-off-by: Willy Sudiarto Raharjo --- libraries/qwt-qt5/patch-6.1.5-pkgconfig.diff | 22 ---------- libraries/qwt-qt5/patch-6.1.5-qwtconfig.diff | 54 ------------------------- libraries/qwt-qt5/patch-6.1.5-qwtfunctions.diff | 27 ------------- libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff | 22 ++++++++++ libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff | 54 +++++++++++++++++++++++++ libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff | 27 +++++++++++++ libraries/qwt-qt5/qwt-qt5.SlackBuild | 10 ++--- libraries/qwt-qt5/qwt-qt5.info | 6 +-- 8 files changed, 111 insertions(+), 111 deletions(-) delete mode 100644 libraries/qwt-qt5/patch-6.1.5-pkgconfig.diff delete mode 100644 libraries/qwt-qt5/patch-6.1.5-qwtconfig.diff delete mode 100644 libraries/qwt-qt5/patch-6.1.5-qwtfunctions.diff create mode 100644 libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff create mode 100644 libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff create mode 100644 libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff diff --git a/libraries/qwt-qt5/patch-6.1.5-pkgconfig.diff b/libraries/qwt-qt5/patch-6.1.5-pkgconfig.diff deleted file mode 100644 index 91c5ed4c78bc..000000000000 --- a/libraries/qwt-qt5/patch-6.1.5-pkgconfig.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- src/src.pro.orig 2014-12-12 00:13:13.461186493 +1000 -+++ src/src.pro 2015-10-05 08:55:43.504194164 +1000 -@@ -21,6 +21,19 @@ - - DESTDIR = $${QWT_OUT_ROOT}/lib - -+# Add pkgconfig support -+unix { -+ CONFIG += create_pc create_prl no_install_prl -+ QMAKE_PKGCONFIG_NAME = qwt-qt5 -+ QMAKE_PKGCONFIG_DESCRIPTION = GUI components -+ QMAKE_PKGCONFIG_PREFIX = $${QWT_INSTALL_PREFIX} -+ QMAKE_PKGCONFIG_LIBDIR = $${QWT_INSTALL_LIBS} -+ QMAKE_PKGCONFIG_INCDIR = $${QWT_INSTALL_HEADERS} -+ QMAKE_PKGCONFIG_REQUIRES = QtCore -+ QMAKE_PKGCONFIG_DESTDIR = pkgconfig -+} -+ -+ - contains(QWT_CONFIG, QwtDll) { - - CONFIG += dll diff --git a/libraries/qwt-qt5/patch-6.1.5-qwtconfig.diff b/libraries/qwt-qt5/patch-6.1.5-qwtconfig.diff deleted file mode 100644 index 815013bd0659..000000000000 --- a/libraries/qwt-qt5/patch-6.1.5-qwtconfig.diff +++ /dev/null @@ -1,54 +0,0 @@ ---- qwtconfig.pri.orig 2014-12-11 14:13:13.513186492 +0000 -+++ qwtconfig.pri 2015-09-27 08:33:01.948490369 +0000 -@@ -16,11 +16,8 @@ - # Install paths - ###################################################################### - --QWT_INSTALL_PREFIX = $$[QT_INSTALL_PREFIX] -- - unix { -- QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION -- # QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION-qt-$$QT_VERSION -+ QWT_INSTALL_PREFIX = /usr - } - - win32 { -@@ -29,8 +26,10 @@ - } - - QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/doc --QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include --QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib -+QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include/qt5/qwt -+QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib$${LIBDIRSUFFIX} -+ -+ - - ###################################################################### - # Designer plugin -@@ -42,14 +41,12 @@ - # runtime environment of designer/creator. - ###################################################################### - --QWT_INSTALL_PLUGINS = $${QWT_INSTALL_PREFIX}/plugins/designer -- - # linux distributors often organize the Qt installation - # their way and QT_INSTALL_PREFIX doesn't offer a good - # path. Also QT_INSTALL_PREFIX is only one of the default - # search paths of the designer - not the Qt creator - --#QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PREFIX]/plugins/designer -+QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PLUGINS]/designer - - ###################################################################### - # Features -@@ -63,8 +60,7 @@ - # with every Qt upgrade. - ###################################################################### - --QWT_INSTALL_FEATURES = $${QWT_INSTALL_PREFIX}/features --# QWT_INSTALL_FEATURES = $$[QT_INSTALL_PREFIX]/features -+QWT_INSTALL_FEATURES = $$[QMAKE_MKSPECS]/features - - ###################################################################### - # Build the static/shared libraries. diff --git a/libraries/qwt-qt5/patch-6.1.5-qwtfunctions.diff b/libraries/qwt-qt5/patch-6.1.5-qwtfunctions.diff deleted file mode 100644 index b31dc22de61a..000000000000 --- a/libraries/qwt-qt5/patch-6.1.5-qwtfunctions.diff +++ /dev/null @@ -1,27 +0,0 @@ -diff -up qwt-6.1.2/qwtfunctions.pri.qt5 qwt-6.1.2/qwtfunctions.pri ---- qwt-6.1.2/qwtfunctions.pri.qt5 2014-12-11 08:13:13.511186492 -0600 -+++ qwt-6.1.2/qwtfunctions.pri 2014-12-12 20:45:24.556261966 -0600 -@@ -12,7 +12,12 @@ - defineReplace(qwtLibraryTarget) { - - unset(LIBRARY_NAME) -+ -+ greaterThan(QT_MAJOR_VERSION, 4) { -+ LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION} -+ } else { - LIBRARY_NAME = $$1 -+ } - - mac:contains(QWT_CONFIG, QwtFramework) { - -@@ -36,7 +41,11 @@ defineReplace(qwtLibraryTarget) { - defineTest(qwtAddLibrary) { - - LIB_PATH = $$1 -+ greaterThan(QT_MAJOR_VERSION, 4) { -+ LIB_NAME = $${2}-qt$${QT_MAJOR_VERSION} -+ } else { - LIB_NAME = $$2 -+ } - - mac:contains(QWT_CONFIG, QwtFramework) { diff --git a/libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff b/libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff new file mode 100644 index 000000000000..91c5ed4c78bc --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff @@ -0,0 +1,22 @@ +--- src/src.pro.orig 2014-12-12 00:13:13.461186493 +1000 ++++ src/src.pro 2015-10-05 08:55:43.504194164 +1000 +@@ -21,6 +21,19 @@ + + DESTDIR = $${QWT_OUT_ROOT}/lib + ++# Add pkgconfig support ++unix { ++ CONFIG += create_pc create_prl no_install_prl ++ QMAKE_PKGCONFIG_NAME = qwt-qt5 ++ QMAKE_PKGCONFIG_DESCRIPTION = GUI components ++ QMAKE_PKGCONFIG_PREFIX = $${QWT_INSTALL_PREFIX} ++ QMAKE_PKGCONFIG_LIBDIR = $${QWT_INSTALL_LIBS} ++ QMAKE_PKGCONFIG_INCDIR = $${QWT_INSTALL_HEADERS} ++ QMAKE_PKGCONFIG_REQUIRES = QtCore ++ QMAKE_PKGCONFIG_DESTDIR = pkgconfig ++} ++ ++ + contains(QWT_CONFIG, QwtDll) { + + CONFIG += dll diff --git a/libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff b/libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff new file mode 100644 index 000000000000..815013bd0659 --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff @@ -0,0 +1,54 @@ +--- qwtconfig.pri.orig 2014-12-11 14:13:13.513186492 +0000 ++++ qwtconfig.pri 2015-09-27 08:33:01.948490369 +0000 +@@ -16,11 +16,8 @@ + # Install paths + ###################################################################### + +-QWT_INSTALL_PREFIX = $$[QT_INSTALL_PREFIX] +- + unix { +- QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION +- # QWT_INSTALL_PREFIX = /usr/local/qwt-$$QWT_VERSION-qt-$$QT_VERSION ++ QWT_INSTALL_PREFIX = /usr + } + + win32 { +@@ -29,8 +26,10 @@ + } + + QWT_INSTALL_DOCS = $${QWT_INSTALL_PREFIX}/doc +-QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include +-QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib ++QWT_INSTALL_HEADERS = $${QWT_INSTALL_PREFIX}/include/qt5/qwt ++QWT_INSTALL_LIBS = $${QWT_INSTALL_PREFIX}/lib$${LIBDIRSUFFIX} ++ ++ + + ###################################################################### + # Designer plugin +@@ -42,14 +41,12 @@ + # runtime environment of designer/creator. + ###################################################################### + +-QWT_INSTALL_PLUGINS = $${QWT_INSTALL_PREFIX}/plugins/designer +- + # linux distributors often organize the Qt installation + # their way and QT_INSTALL_PREFIX doesn't offer a good + # path. Also QT_INSTALL_PREFIX is only one of the default + # search paths of the designer - not the Qt creator + +-#QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PREFIX]/plugins/designer ++QWT_INSTALL_PLUGINS = $$[QT_INSTALL_PLUGINS]/designer + + ###################################################################### + # Features +@@ -63,8 +60,7 @@ + # with every Qt upgrade. + ###################################################################### + +-QWT_INSTALL_FEATURES = $${QWT_INSTALL_PREFIX}/features +-# QWT_INSTALL_FEATURES = $$[QT_INSTALL_PREFIX]/features ++QWT_INSTALL_FEATURES = $$[QMAKE_MKSPECS]/features + + ###################################################################### + # Build the static/shared libraries. diff --git a/libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff b/libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff new file mode 100644 index 000000000000..b31dc22de61a --- /dev/null +++ b/libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff @@ -0,0 +1,27 @@ +diff -up qwt-6.1.2/qwtfunctions.pri.qt5 qwt-6.1.2/qwtfunctions.pri +--- qwt-6.1.2/qwtfunctions.pri.qt5 2014-12-11 08:13:13.511186492 -0600 ++++ qwt-6.1.2/qwtfunctions.pri 2014-12-12 20:45:24.556261966 -0600 +@@ -12,7 +12,12 @@ + defineReplace(qwtLibraryTarget) { + + unset(LIBRARY_NAME) ++ ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIBRARY_NAME = $${1}-qt$${QT_MAJOR_VERSION} ++ } else { + LIBRARY_NAME = $$1 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { + +@@ -36,7 +41,11 @@ defineReplace(qwtLibraryTarget) { + defineTest(qwtAddLibrary) { + + LIB_PATH = $$1 ++ greaterThan(QT_MAJOR_VERSION, 4) { ++ LIB_NAME = $${2}-qt$${QT_MAJOR_VERSION} ++ } else { + LIB_NAME = $$2 ++ } + + mac:contains(QWT_CONFIG, QwtFramework) { diff --git a/libraries/qwt-qt5/qwt-qt5.SlackBuild b/libraries/qwt-qt5/qwt-qt5.SlackBuild index e9e21ff02611..a88cc576e84a 100644 --- a/libraries/qwt-qt5/qwt-qt5.SlackBuild +++ b/libraries/qwt-qt5/qwt-qt5.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for qwt-qt5 # Modified from libraries/qwt -# Copyright 2019-2020 Benjamin Trigona-Harany +# Copyright 2019-2021 Benjamin Trigona-Harany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=qwt-qt5 -VERSION=${VERSION:-6.1.5} +VERSION=${VERSION:-6.1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -72,9 +72,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -patch -p0 < $CWD/patch-6.1.5-qwtconfig.diff -patch -p0 < $CWD/patch-6.1.5-pkgconfig.diff -patch -p1 < $CWD/patch-6.1.5-qwtfunctions.diff # OpenSUSE +patch -p0 < $CWD/patch-6.1.6-qwtconfig.diff +patch -p0 < $CWD/patch-6.1.6-pkgconfig.diff +patch -p1 < $CWD/patch-6.1.6-qwtfunctions.diff # OpenSUSE mkdir build cd build diff --git a/libraries/qwt-qt5/qwt-qt5.info b/libraries/qwt-qt5/qwt-qt5.info index 72b17edc6afd..90047def4457 100644 --- a/libraries/qwt-qt5/qwt-qt5.info +++ b/libraries/qwt-qt5/qwt-qt5.info @@ -1,8 +1,8 @@ PRGNAM="qwt-qt5" -VERSION="6.1.5" +VERSION="6.1.6" HOMEPAGE="http://qwt.sourceforge.net" -DOWNLOAD="http://downloads.sourceforge.net/qwt/qwt-6.1.5.tar.bz2" -MD5SUM="d65582f99312796ed42c3be3208ed3db" +DOWNLOAD="http://downloads.sourceforge.net/qwt/qwt-6.1.6.tar.bz2" +MD5SUM="cc71be5d6c33c2fc19ae8082ccdd3e83" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="qt5" -- cgit v1.2.3