From 73ee88754c34a0d9570dccc0a5782bf0dd68caa4 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 8 Nov 2015 21:02:08 +0700 Subject: [PATCH] glade: Added. Signed-off-by: Ryan P.C. McQuen Signed-off-by: Willy Sudiarto Raharjo --- deps/glade/README | 12 ++++ deps/glade/doinst.sh | 5 ++ deps/glade/glade.SlackBuild | 110 ++++++++++++++++++++++++++++++++++++ deps/glade/slack-desc | 12 ++++ mate-build-deps.sh | 1 + 5 files changed, 140 insertions(+) create mode 100644 deps/glade/README create mode 100644 deps/glade/doinst.sh create mode 100644 deps/glade/glade.SlackBuild create mode 100644 deps/glade/slack-desc diff --git a/deps/glade/README b/deps/glade/README new file mode 100644 index 0000000..5706603 --- /dev/null +++ b/deps/glade/README @@ -0,0 +1,12 @@ +Glade (GTK+3 User Interface Builder) + +Glade is a RAD tool to enable quick & easy development of user +interfaces for the Gtk+ toolkit and the GNOME desktop environment. +The user interfaces designed in Glade are stored in XML format, +enabling easy integration with external tools. + +This version of Glade (Glade-3) is a complete rewrite of the original +Glade codebase. + +Please note that this version is different than glade3 provided by +Slackware, which is glade3-3.8.3 for GTK+2; this package is for GTK+3. diff --git a/deps/glade/doinst.sh b/deps/glade/doinst.sh new file mode 100644 index 0000000..8542d1c --- /dev/null +++ b/deps/glade/doinst.sh @@ -0,0 +1,5 @@ +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/deps/glade/glade.SlackBuild b/deps/glade/glade.SlackBuild new file mode 100644 index 0000000..2037aaf --- /dev/null +++ b/deps/glade/glade.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh + +# Slackware build script for glade + +# Copyright 2013 Bart van der Hall +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 AUTHOR 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 by Willy Sudiarto Raharjo for MSB Project + +PRGNAM=glade +VERSION=${VERSION:-3.18.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_msb} + +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/$PRGNAM/3.18/$PRGNAM-$VERSION.tar.xz + +CWD=$(pwd) +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 -eu + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +cd $PRGNAM-$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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +LDFLAGS="-L/usr/lib${LIBDIRSUFFIX}" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install 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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING* INSTALL NEWS README* TODO $PKG/usr/doc/$PRGNAM-$VERSION + +# If there's a ChangeLog, installing at least part of the recent history +# is useful, but don't let it get totally out of control: +if [ -r ChangeLog ]; then + DOCSDIR=$(echo $PKG/usr/doc/${PRGNAM}-$VERSION) + cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog + touch -r ChangeLog $DOCSDIR/ChangeLog +fi + +mkdir -p $PKG/install +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:-txz} diff --git a/deps/glade/slack-desc b/deps/glade/slack-desc new file mode 100644 index 0000000..4b33c38 --- /dev/null +++ b/deps/glade/slack-desc @@ -0,0 +1,12 @@ + |-----handy-ruler------------------------------------------------------| +glade: Glade (GTK+ User Interface Builder) +glade: +glade: Glade is a RAD tool to enable quick & easy development of user +glade: interfaces for the Gtk+ toolkit and the GNOME desktop environment. +glade: The user interfaces designed in Glade are stored in XML format, +glade: enabling easy integration with external tools. +glade: +glade: This version of Glade (Glade-3) is a complete rewrite of the original +glade: Glade codebase. +glade: +glade: diff --git a/mate-build-deps.sh b/mate-build-deps.sh index 4481b4b..4074fb9 100755 --- a/mate-build-deps.sh +++ b/mate-build-deps.sh @@ -53,6 +53,7 @@ for dir in \ deps/gtk-engines \ deps/murrine \ deps/gtksourceview \ + deps/glade \ deps/gtksourceview3 \ deps/pygtksourceview \ deps/libgtop \