gtksourceview4: Added.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2021-08-06 21:35:26 +07:00
parent e703e1a704
commit 6a909312fe
No known key found for this signature in database
GPG key ID: 3F617144D7238786
6 changed files with 145 additions and 3 deletions

View file

@ -1,6 +1,7 @@
New Packages in MATE 1.26:
gtk-layer-shell
lxml
gtksourceview4
Renamed Packages in MATE 1.26:

View file

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

4
deps/gtksourceview4/README vendored Normal file
View file

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

View file

@ -0,0 +1,117 @@
#!/bin/bash
# Slackware build script for gtksourceview4
# Copyright 2012-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# 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

19
deps/gtksourceview4/slack-desc vendored Normal file
View file

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

View file

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