mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
libraries/gtksourceview: Downgraded to version 2.10.5
gtksourceview-2.11.x is a development release, but it's no longer maintained, and sadly, it was left in a broken state, so we decided to downgrade to a stable release that is known to work. Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
d03090b75d
commit
6bd25f7de3
2 changed files with 13 additions and 29 deletions
|
@ -25,16 +25,14 @@
|
|||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=gtksourceview
|
||||
VERSION=${VERSION:-2.11.2}
|
||||
BUILD=${BUILD:-2}
|
||||
VERSION=${VERSION:-2.10.5}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
@ -58,7 +56,7 @@ else
|
|||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
|
@ -67,27 +65,11 @@ 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 {} \;
|
||||
|
||||
# In configure.ac, PKG_CONFIG environment variable is used before it
|
||||
# is set. Instead of fixing configure.ac and regenerating all of the
|
||||
# build framework, let's just monkey patch the configure script.
|
||||
patch -p0 <$CWD/fix-pkg-config-use-before-set.patch
|
||||
|
||||
# gtksourceview 2.11.2 seems to claim to be compatible with gtk3 =>
|
||||
# 2.90, but in reality is not compatible with the one in Slackware
|
||||
# 14.0. Let's force the configure script to pick up gtk2 instead by
|
||||
# raising the minimum gtk3 version.
|
||||
patch -p0 <$CWD/force-gtk2.patch
|
||||
|
||||
# Code is still using G_CONST_RETURN which is deprecated in the
|
||||
# version of glib shipping with Slackware 14.0. Let's remove the
|
||||
# G_DISABLE_DEPRECATED from C preprocessor flags.
|
||||
patch -p0 <$CWD/allow-deprecated-glib-symbols.patch
|
||||
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 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
|
@ -113,6 +95,8 @@ 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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="gtksourceview"
|
||||
VERSION="2.11.2"
|
||||
VERSION="2.10.5"
|
||||
HOMEPAGE="http://projects.gnome.org/gtksourceview/"
|
||||
DOWNLOAD="http://ftp.gnome.org/pub/gnome/sources/gtksourceview/2.11/gtksourceview-2.11.2.tar.gz"
|
||||
MD5SUM="7c4bbdc1d1628932362b4f222e80afd4"
|
||||
DOWNLOAD="http://ftp.acc.umu.se/pub/gnome/sources/gtksourceview/2.10/gtksourceview-2.10.5.tar.gz"
|
||||
MD5SUM="220db5518e3f7fa06c980f057b22ba62"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue