mirror of
https://gitlab.com/mateslackbuilds/msb.git
synced 2024-12-25 21:59:36 +01:00
move testing/mate-text-editor into /extra; bring in new dependency gtksourceview which is required by mate-text-editor; modify various README's regarding the issue of building gtksourceview on Slackware 14.0 vs. -current; thanks to Willy Sudiarto Raharjo.
This commit is contained in:
parent
9768efa05c
commit
ecc77476a0
8 changed files with 134 additions and 1 deletions
112
deps/gtksourceview/gtksourceview.SlackBuild
vendored
Normal file
112
deps/gtksourceview/gtksourceview.SlackBuild
vendored
Normal file
|
@ -0,0 +1,112 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Slackware build script for gtksourceview
|
||||||
|
|
||||||
|
# Copyright 2007-2010 Michiel van Wessem, Manchester, United Kingdom
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Modified by Willy Sudiarto Raharjo and Chess Griffin 2013
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
PRGNAM=gtksourceview
|
||||||
|
VERSION=${VERSION:-2.10.5}
|
||||||
|
BUILD=${BUILD:-1}
|
||||||
|
TAG=${TAG:-_msb}
|
||||||
|
|
||||||
|
if [ -z "$ARCH" ]; then
|
||||||
|
case "$( uname -m )" in
|
||||||
|
i?86) ARCH=i486 ;;
|
||||||
|
arm*) ARCH=arm ;;
|
||||||
|
*) ARCH=$( uname -m ) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f $PRGNAM-$VERSION.tar.gz ]; then
|
||||||
|
wget \
|
||||||
|
http://ftp.acc.umu.se/pub/gnome/sources/gtksourceview/2.10/gtksourceview-2.10.5.tar.gz
|
||||||
|
fi
|
||||||
|
|
||||||
|
NUMJOBS=${NUMJOBS:-" -j8 "}
|
||||||
|
|
||||||
|
CWD=$(pwd)
|
||||||
|
TMP=${TMP:-/tmp/msb}
|
||||||
|
PKG=$TMP/package-$PRGNAM
|
||||||
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
|
if [ "$ARCH" = "i486" ]; then
|
||||||
|
SLKCFLAGS="-O2 -march=i486 -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 $PRGNAM-$VERSION
|
||||||
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
|
cd $PRGNAM-$VERSION
|
||||||
|
chown -R root:root .
|
||||||
|
find . \
|
||||||
|
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||||
|
-exec chmod 755 {} \; -o \
|
||||||
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
|
./configure \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
|
--sysconfdir=/etc \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/man \
|
||||||
|
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||||
|
--enable-glade-catalog \
|
||||||
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
|
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$TMP/$PRGNAM-$VERSION make $NUMJOBS || make
|
||||||
|
make install-strip 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 || true
|
||||||
|
|
||||||
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cp -a AUTHORS COPYING* ChangeLog* HACKING INSTALL MAINTAINERS NEWS README \
|
||||||
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
find $PKG/usr/doc/$PRGNAM-$VERSION/ -type f -exec chmod 644 {} \;
|
||||||
|
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
||||||
|
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}
|
12
deps/gtksourceview/slack-desc
vendored
Normal file
12
deps/gtksourceview/slack-desc
vendored
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|-----handy-ruler------------------------------------------------------|
|
||||||
|
gtksourceview: gtksourceview (a GTK+ framework for source code editing)
|
||||||
|
gtksourceview:
|
||||||
|
gtksourceview: GtkSourceView is a portable C library that extends the standard
|
||||||
|
gtksourceview: GTK+ framework for multiline text editing with support for
|
||||||
|
gtksourceview: configurable syntax highlighting, unlimited undo/redo, UTF-8
|
||||||
|
gtksourceview: compliant caseless searching, printing and other features
|
||||||
|
gtksourceview: typical of a source code editor.
|
||||||
|
gtksourceview:
|
||||||
|
gtksourceview: Homepage: http://projects.gnome.org/gtksourceview/
|
||||||
|
gtksourceview:
|
||||||
|
gtksourceview:
|
|
@ -4,3 +4,11 @@ or additional software or plugins. Some of them may have additional
|
||||||
dependencies that will be noted in a README and that may be added here as time
|
dependencies that will be noted in a README and that may be added here as time
|
||||||
permits. Working packages will be added to the 'mate-build-extra.sh' script.
|
permits. Working packages will be added to the 'mate-build-extra.sh' script.
|
||||||
More packages may be added here over time.
|
More packages may be added here over time.
|
||||||
|
|
||||||
|
Note: gtksourceview in /deps (a dependency of mate-text-editor) has been
|
||||||
|
downgraded from a development version in SlackBuilds.org. If you are running
|
||||||
|
Slackware 14.0, the gtksourceview from SBo is fine and you can remove
|
||||||
|
gtksourceview from the list of packages to built in the mate-build-extra.sh
|
||||||
|
script. However, if you are running Slackware -current, then the
|
||||||
|
gtksourceview from SBo won't build so you can use the one in the /deps
|
||||||
|
directory.
|
||||||
|
|
2
extra/mate-text-editor/README
Normal file
2
extra/mate-text-editor/README
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
Requires gtksourceview-2.0. Please see the README in the /extra directory
|
||||||
|
regarding gtksourceview on Slackware 14.0 vs. -current.
|
|
@ -1 +0,0 @@
|
||||||
Requires gtksourceview-2.0.
|
|
Loading…
Reference in a new issue