summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2019-11-16 20:46:10 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-11-16 20:46:10 +0700
commit8d5d723ac6b8fa939eb8f3b4f4206a638906eae3 (patch)
tree485c6382e1eabe2ac596d62ad737845ee83dc005 /libraries
parent9e49d39f6dea9060f8265c93d3dc73ed5f6b636f (diff)
downloadslackbuilds-8d5d723ac6b8fa939eb8f3b4f4206a638906eae3.tar.gz
libraries/QScintilla-qt5: Added (Qt5 port of Scintilla C++ editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/QScintilla-qt5/QScintilla-qt5.SlackBuild110
-rw-r--r--libraries/QScintilla-qt5/QScintilla-qt5.info10
-rw-r--r--libraries/QScintilla-qt5/README9
-rw-r--r--libraries/QScintilla-qt5/slack-desc19
4 files changed, 148 insertions, 0 deletions
diff --git a/libraries/QScintilla-qt5/QScintilla-qt5.SlackBuild b/libraries/QScintilla-qt5/QScintilla-qt5.SlackBuild
new file mode 100644
index 0000000000..f922b9ad7e
--- /dev/null
+++ b/libraries/QScintilla-qt5/QScintilla-qt5.SlackBuild
@@ -0,0 +1,110 @@
+#!/bin/sh
+
+# Slackware build script for QScintilla-qt5
+
+# Copyright 2019 Benjamin Trigona-Harant <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.
+
+PRGNAM=QScintilla-qt5
+SRCNAM=QScintilla_gpl
+VERSION=${VERSION:-2.10.2}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+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 -fPIC"
+ 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.gz
+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 {} \;
+
+cd Qt4Qt5
+ qmake-qt5 qscintilla.pro
+ make install INSTALL_ROOT=$PKG
+cd -
+
+cd designer-Qt4Qt5
+ qmake-qt5 designer.pro INCLUDEPATH+=$PKG/usr/include/qt5 QMAKE_LIBDIR+=$PKG/usr/lib${LIBDIRSUFFIX}
+ make install INSTALL_ROOT=$PKG
+cd -
+
+cp -r Python Python3
+# QScintilla 2.10.2 is not compatible with Slackware 14.2's version of sip
+#cd Python
+# python configure.py --pyqt=PyQt5 -c --qmake /usr/bin/qmake-qt5 -n $PKG/usr/include/qt5 -o $PKG/usr/lib${LIBDIRSUFFIX} --sip=/usr/bin/sip --sip-incdir=/usr/include/python2.7
+# make install INSTALL_ROOT=$PKG
+#cd -
+
+cd Python3
+ sed -i "1423i\ pro.write('INCLUDEPATH += /usr/include/qt5/QtWidgets\\\n')" configure.py
+ sed -i "1423i\ pro.write('INCLUDEPATH += /usr/include/qt5/QtPrintSupport\\\n')" configure.py
+ python3 configure.py --pyqt=PyQt5 -c --qmake /usr/bin/qmake-qt5 -n $PKG/usr/include/qt5 -o $PKG/usr/lib${LIBDIRSUFFIX} --sip=/usr/bin/python3-sip --sip-incdir=/usr/include/python$(python3 -c "from distutils.sysconfig import get_python_version; print(get_python_version())")
+ 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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ LICENSE NEWS 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:-tgz}
diff --git a/libraries/QScintilla-qt5/QScintilla-qt5.info b/libraries/QScintilla-qt5/QScintilla-qt5.info
new file mode 100644
index 0000000000..2f08fe6c4b
--- /dev/null
+++ b/libraries/QScintilla-qt5/QScintilla-qt5.info
@@ -0,0 +1,10 @@
+PRGNAM="QScintilla-qt5"
+VERSION="2.10.2"
+HOMEPAGE="https://www.riverbankcomputing.com/software/qscintilla"
+DOWNLOAD="https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-2.10.2/QScintilla_gpl-2.10.2.tar.gz"
+MD5SUM="0d2b25ad607f93453c37478e83ec4640"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="python3-PyQt5"
+MAINTAINER="Benjamin Trigona-Harany"
+EMAIL="slackbuilds@jaxartes.net"
diff --git a/libraries/QScintilla-qt5/README b/libraries/QScintilla-qt5/README
new file mode 100644
index 0000000000..2824761f20
--- /dev/null
+++ b/libraries/QScintilla-qt5/README
@@ -0,0 +1,9 @@
+QScintilla includes features especially useful when editing and debugging
+source code. These include support for syntax styling, error indicators, code
+completion, and call tips. The selection margin can contain markers like those
+used in debuggers to indicate breakpoints and the current line. Styling
+choices are more open than with many editors, allowing the use of proportional
+fonts, bold and italics, multiple foreground and background colours, and
+multiple fonts.
+
+This script provides QScintilla for Python 3 only.
diff --git a/libraries/QScintilla-qt5/slack-desc b/libraries/QScintilla-qt5/slack-desc
new file mode 100644
index 0000000000..3358ffc54e
--- /dev/null
+++ b/libraries/QScintilla-qt5/slack-desc
@@ -0,0 +1,19 @@
+# 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 ':'.
+
+ |-----handy-ruler--------------------------------------------------|
+QScintilla-qt5: QScintilla-qt5 (Qt5 port of the Scintilla C++ editor control)
+QScintilla-qt5:
+QScintilla-qt5: QScintilla includes features especially useful when editing and
+QScintilla-qt5: debugging source code. These include support for syntax styling,
+QScintilla-qt5: error indicators, code completion, and call tips. The selection
+QScintilla-qt5: margin can contain markers like those used in debuggers to
+QScintilla-qt5: indicate breakpoints and the current line. Styling choices are
+QScintilla-qt5: more open than with many editors, allowing the use of
+QScintilla-qt5: proportional fonts, bold and italics, multiple foreground and
+QScintilla-qt5: background colours, and multiple fonts.
+QScintilla-qt5: