summaryrefslogtreecommitdiffstats
path: root/development/highlight
diff options
context:
space:
mode:
Diffstat (limited to 'development/highlight')
-rw-r--r--development/highlight/README12
-rw-r--r--development/highlight/doinst.sh10
-rw-r--r--development/highlight/highlight.SlackBuild29
-rw-r--r--development/highlight/highlight.info12
-rw-r--r--development/highlight/lua-qt.patch25
5 files changed, 68 insertions, 20 deletions
diff --git a/development/highlight/README b/development/highlight/README
index 683b68d13b..4afbb5de61 100644
--- a/development/highlight/README
+++ b/development/highlight/README
@@ -1,6 +1,6 @@
-Highlight is a universal converter from source code to HTML, XHTML, RTF,
-TeX, LaTeX, and XML. (X)HTML output is formatted by Cascading Style Sheets.
-It supports more than 100 programming languages, and includes 40
-highlighting color themes. It's possible to easily enhance the parsing
-database. The converter includes some features to provide a consistent
-layout of the input code.
+Highlight is a universal converter from source code to HTML, XHTML,
+RTF, TeX, LaTeX, and XML. (X)HTML output is formatted by Cascading
+Style Sheets. It supports more than 100 programming languages, and
+includes 40 highlighting color themes. It's possible to easily enhance
+the parsing database. The converter includes some features to provide a
+consistent layout of the input code.
diff --git a/development/highlight/doinst.sh b/development/highlight/doinst.sh
index 686b2a1f0a..29442be229 100644
--- a/development/highlight/doinst.sh
+++ b/development/highlight/doinst.sh
@@ -12,3 +12,13 @@ config() {
}
config etc/highlight/filetypes.conf.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/development/highlight/highlight.SlackBuild b/development/highlight/highlight.SlackBuild
index 8a7ed4d1b2..ebb3bf94e0 100644
--- a/development/highlight/highlight.SlackBuild
+++ b/development/highlight/highlight.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for highlight
#
-# Copyright 2011-2017 Erik W. Hanson, Minneapolis, MN, USA
+# Copyright 2011-2022 Erik W. Hanson, Minneapolis, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,24 +22,34 @@
# 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=highlight
-VERSION=${VERSION:-3.38}
+VERSION=${VERSION:-4.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ 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
+
set -ue
rm -rf $PKG
@@ -55,8 +65,11 @@ 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 {} \;
-make cli
-make install DESTDIR=$PKG
+#Patch so gui links with lua5.1 instead of lua5.3 and fail.
+patch -p1 < $CWD/lua-qt.patch
+
+make cli gui
+make -j1 install install-gui DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
@@ -76,4 +89,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/development/highlight/highlight.info b/development/highlight/highlight.info
index 160c4b0c17..ef92753436 100644
--- a/development/highlight/highlight.info
+++ b/development/highlight/highlight.info
@@ -1,10 +1,10 @@
PRGNAM="highlight"
-VERSION="3.38"
+VERSION="4.7"
HOMEPAGE="http://www.andre-simon.de/"
-DOWNLOAD="http://www.andre-simon.de/zip/highlight-3.38.tar.bz2"
-MD5SUM="cb6f5678455200d28dcdbc1028d35693"
+DOWNLOAD="http://www.andre-simon.de/zip/highlight-4.7.tar.bz2"
+MD5SUM="cc5f3a857aa6c6d9f23ea3e36522f959"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="lua"
-MAINTAINER="Erik Hanson"
-EMAIL="erik@slackbuilds.org"
+REQUIRES="lua53"
+MAINTAINER="Ozan Türkyılmaz"
+EMAIL="ozan.turkyilmaz@gmail.com"
diff --git a/development/highlight/lua-qt.patch b/development/highlight/lua-qt.patch
new file mode 100644
index 0000000000..6078f07dd9
--- /dev/null
+++ b/development/highlight/lua-qt.patch
@@ -0,0 +1,25 @@
+Only in highlight-4.1/src/gui-qt: .highlight.pro.un~
+diff -cr highlight-4.1.DIST/src/gui-qt/highlight.pro highlight-4.1/src/gui-qt/highlight.pro
+*** highlight-4.1.DIST/src/gui-qt/highlight.pro 2021-05-10 18:47:34.000000000 +0100
+--- highlight-4.1/src/gui-qt/highlight.pro 2022-07-27 14:39:31.295908472 +0100
+***************
+*** 36,44 ****
+ unix {
+ DESTDIR = ../
+ LIBS += -L.. -lhighlight
+! LIBS += -llua
+ CONFIG += link_pkgconfig
+! PKGCONFIG += lua
+
+ # to make it run within Qt Creator
+ !contains(DEFINES, DATA_DIR.*) {
+--- 36,44 ----
+ unix {
+ DESTDIR = ../
+ LIBS += -L.. -lhighlight
+! LIBS += -llua5.3
+ CONFIG += link_pkgconfig
+! PKGCONFIG += lua53
+
+ # to make it run within Qt Creator
+ !contains(DEFINES, DATA_DIR.*) {