From 6a909312fef4ca4836062bf16588350cd495cdb2 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Fri, 6 Aug 2021 21:35:26 +0700 Subject: [PATCH] gtksourceview4: Added. Signed-off-by: Willy Sudiarto Raharjo --- MATE-1.26-CHANGES.TXT | 1 + MATE-1.26-DEPS.TXT | 6 +- deps/gtksourceview4/README | 4 + deps/gtksourceview4/gtksourceview4.SlackBuild | 117 ++++++++++++++++++ deps/gtksourceview4/slack-desc | 19 +++ mate-build-deps.sh | 1 + 6 files changed, 145 insertions(+), 3 deletions(-) create mode 100644 deps/gtksourceview4/README create mode 100644 deps/gtksourceview4/gtksourceview4.SlackBuild create mode 100644 deps/gtksourceview4/slack-desc diff --git a/MATE-1.26-CHANGES.TXT b/MATE-1.26-CHANGES.TXT index 0d4156b..96fcd39 100644 --- a/MATE-1.26-CHANGES.TXT +++ b/MATE-1.26-CHANGES.TXT @@ -1,6 +1,7 @@ New Packages in MATE 1.26: gtk-layer-shell lxml +gtksourceview4 Renamed Packages in MATE 1.26: diff --git a/MATE-1.26-DEPS.TXT b/MATE-1.26-DEPS.TXT index 2705ce6..7c220ea 100644 --- a/MATE-1.26-DEPS.TXT +++ b/MATE-1.26-DEPS.TXT @@ -1,13 +1,13 @@ This is a list of dependencies for the packages in the /extra directory. -1. extra/mate-applets requires deps/libgtop and deps/gtksourceview3 +1. extra/mate-applets requires deps/libgtop 2. extra/caja-extensions requires deps/gssdp and deps/gupnp 3. extra/mate-utils requires deps/libgtop -4. extra/pluma requires deps/gtksourceview3 and deps/libpeas +4. extra/pluma requires deps/libpeas 5. extra/atril requires deps/libgxps -6. extra/pluma requires deps/libpeas +6. extra/pluma requires deps/libpeas and deps/gtksourceview4 diff --git a/deps/gtksourceview4/README b/deps/gtksourceview4/README new file mode 100644 index 0000000..50bc5dd --- /dev/null +++ b/deps/gtksourceview4/README @@ -0,0 +1,4 @@ +GtkSourceView is a portable C library that extends the standard GTK+ +framework for multiline text editing with support for configurable +syntax highlighting, unlimited undo/redo, UTF-8 compliant caseless +searching, printing and other features typical of a source code editor. diff --git a/deps/gtksourceview4/gtksourceview4.SlackBuild b/deps/gtksourceview4/gtksourceview4.SlackBuild new file mode 100644 index 0000000..0e59477 --- /dev/null +++ b/deps/gtksourceview4/gtksourceview4.SlackBuild @@ -0,0 +1,117 @@ +#!/bin/bash + +# Slackware build script for gtksourceview4 + +# Copyright 2012-2021 Willy Sudiarto Raharjo +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "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 COPYRIGHT +# OWNER OR CONTRIBUTORS 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. +# +# Modified for MSB Project + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=gtksourceview4 +SRCNAM=gtksourceview +VERSION=${VERSION:-4.8.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_msb} +PKGTYPE=${PKGTYPE:-txz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +wget -c http://ftp.gnome.org/pub/GNOME/sources/gtksourceview/4.8/gtksourceview-4.8.1.tar.xz + +# 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/msb} +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.xz +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 {} \; + +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + -Dglade_catalog=true + "${NINJA:=ninja}" + DESTDIR=$PKG $NINJA install +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 AUTHORS COPYING* HACKING NEWS README.md $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 diff --git a/deps/gtksourceview4/slack-desc b/deps/gtksourceview4/slack-desc new file mode 100644 index 0000000..5ceea4e --- /dev/null +++ b/deps/gtksourceview4/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gtksourceview4: gtksourceview4 (a GTK+ framework for source code editing) +gtksourceview4: +gtksourceview4: GtkSourceView is a portable C library that extends the standard +gtksourceview4: GTK+ framework for multiline text editing with support for +gtksourceview4: configurable syntax highlighting, unlimited undo/redo, UTF-8 +gtksourceview4: compliant caseless searching, printing and other features +gtksourceview4: typical of a source code editor. +gtksourceview4: +gtksourceview4: Homepage: http://projects.gnome.org/gtksourceview/ +gtksourceview4: +gtksourceview4: diff --git a/mate-build-deps.sh b/mate-build-deps.sh index be2b3ef..686869a 100755 --- a/mate-build-deps.sh +++ b/mate-build-deps.sh @@ -57,6 +57,7 @@ for dir in \ deps/gssdp \ deps/gupnp \ deps/libgxps \ + deps/gtksourceview4 \ ; do # Get the package name package=$(echo $dir | cut -f2- -d /)