Browse Source

libraries/qwt-qt5: Removed (redundant; use qwt).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/180/head
B. Watson 4 years ago
committed by Willy Sudiarto Raharjo
parent
commit
6b96bcb9b1
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 5
      libraries/qwt-qt5/README
  2. 22
      libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff
  3. 54
      libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff
  4. 27
      libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff
  5. 114
      libraries/qwt-qt5/qwt-qt5.SlackBuild
  6. 10
      libraries/qwt-qt5/qwt-qt5.info
  7. 19
      libraries/qwt-qt5/slack-desc

5
libraries/qwt-qt5/README

@ -1,5 +0,0 @@
Qwt is an extension to the Qt5 GUI library that contains widgets and components
which are primarily useful for programs with a technical background. Beside a
framework for 2D plots it provides scales, sliders, dials, compasses,
thermometers, wheels and knobs to control or display values, arrays, or ranges
of type double.

22
libraries/qwt-qt5/patch-6.1.6-pkgconfig.diff

@ -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

54
libraries/qwt-qt5/patch-6.1.6-qwtconfig.diff

@ -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.

27
libraries/qwt-qt5/patch-6.1.6-qwtfunctions.diff

@ -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) {

114
libraries/qwt-qt5/qwt-qt5.SlackBuild

@ -1,114 +0,0 @@
#!/bin/bash
# Slackware build script for qwt-qt5
# Modified from libraries/qwt
# Copyright 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=qwt-qt5
VERSION=${VERSION:-6.1.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
SRCNAM=qwt
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -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.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
qmake-qt5 LIBDIRSUFFIX=$LIBDIRSUFFIX ..
make \
CFLAGS+="$SLKCFLAGS" \
CXXFLAGS+="$SLKCFLAGS -std=c++11 -fPIC"
make install INSTALL_ROOT=$PKG
cd -
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
rm -rf $PKG/usr/doc/man
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/doc/html $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
CHANGES-6.1 COPYING INSTALL README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

10
libraries/qwt-qt5/qwt-qt5.info

@ -1,10 +0,0 @@
PRGNAM="qwt-qt5"
VERSION="6.1.6"
HOMEPAGE="http://qwt.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/qwt/qwt-6.1.6.tar.bz2"
MD5SUM="cc71be5d6c33c2fc19ae8082ccdd3e83"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Benjamin Trigona-Harany"
EMAIL="slackbuilds@jaxartes.net"

19
libraries/qwt-qt5/slack-desc

@ -1,19 +0,0 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
qwt-qt5: qwt-qt5 (Qt5 widgets for technical applications)
qwt-qt5:
qwt-qt5: Qwt is an extension to the Qt5 GUI library that contains widgets and
qwt-qt5: components which are primarily useful for programs with a technical
qwt-qt5: background. Beside a framework for 2D plots it provides scales,
qwt-qt5: sliders, dials, compasses, thermometers, wheels and knobs to control
qwt-qt5: or display values, arrays, or ranges of type double.
qwt-qt5:
qwt-qt5:
qwt-qt5:
qwt-qt5:
Loading…
Cancel
Save