summaryrefslogtreecommitdiffstats
path: root/development/scite
diff options
context:
space:
mode:
Diffstat (limited to 'development/scite')
-rw-r--r--development/scite/StringList.cxx.patch10
-rw-r--r--development/scite/scite.SlackBuild37
-rw-r--r--development/scite/scite.info10
3 files changed, 42 insertions, 15 deletions
diff --git a/development/scite/StringList.cxx.patch b/development/scite/StringList.cxx.patch
new file mode 100644
index 0000000000..86fa3d2a60
--- /dev/null
+++ b/development/scite/StringList.cxx.patch
@@ -0,0 +1,10 @@
+--- StringList.cxx 2023-07-26 07:50:38.000000000 +0200
++++ StringList.cxx.patched 2023-09-13 10:25:52.002946469 +0200
+@@ -8,6 +8,7 @@
+ #include <cstdlib>
+ #include <cassert>
+ #include <cstring>
++#include <cstddef>
+
+ #include <tuple>
+ #include <string>
diff --git a/development/scite/scite.SlackBuild b/development/scite/scite.SlackBuild
index c71158b071..e9f844d85d 100644
--- a/development/scite/scite.SlackBuild
+++ b/development/scite/scite.SlackBuild
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for SciTE
@@ -26,10 +26,13 @@
# with this program (most likely, a file named COPYING). If not, see
# <https://www.gnu.org/licenses/>.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=scite
-VERSION=${VERSION:-3.7.4}
+VERSION=${VERSION:-5.3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,7 +42,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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}
@@ -61,19 +71,26 @@ set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf scite/ scintilla/
+rm -rf lexilla/ scite/ scintilla/
tar xvf $CWD/${PRGNAM}$(echo $VERSION | tr -d .).tgz
-chown -R root:root scite/ scintilla/
-chmod -R u+w,go+r-w,a-s scite/ scintilla/
+chown -R root:root lexilla/ scite/ scintilla/
+chmod -R u+w,go+r-w,a-s lexilla/ scite/ scintilla/
+
+# Patch to fix missing cstddef header file.
+patch scite/src/StringList.cxx $CWD/StringList.cxx.patch
+
+cd $TMP/lexilla
+make -C src
cd $TMP/scintilla
-make -C gtk prefix=/usr
+make -C gtk prefix=/usr GTK3=1
cd $TMP/scite
sed -i "s%xdg-open%$HELPBROWSER%g" src/Embedded.properties
sed -i "s%xdg-open%$HELPBROWSER%g" src/SciTEGlobal.properties
-make -C gtk prefix=/usr
-make -C gtk install DESTDIR=$PKG
+sed -i "s%/lib/scite%/lib$LIBDIRSUFFIX/scite%" gtk/makefile
+make -C gtk prefix=/usr GTK3=1
+make -C gtk install GTK3=1 DESTDIR=$PKG
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
@@ -99,4 +116,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/scite/scite.info b/development/scite/scite.info
index 87fee69155..c91a649a32 100644
--- a/development/scite/scite.info
+++ b/development/scite/scite.info
@@ -1,10 +1,10 @@
PRGNAM="scite"
-VERSION="3.7.4"
+VERSION="5.3.7"
HOMEPAGE="https://scintilla.org/SciTE.html"
-DOWNLOAD="http://downloads.sourceforge.net/project/scintilla/SciTE/3.7.4/scite374.tgz"
-MD5SUM="a22acb7052faee698991d3d94ed3882e"
+DOWNLOAD="https://scintilla.org/scite537.tgz"
+MD5SUM="4a4bc59da93deb4b75e5b0e15f2661c5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="DhabyX"
-EMAIL="slack.dhabyx@gmail.com"
+MAINTAINER="rc-05"
+EMAIL="rc_o5@protonmail.com"