libraries/guile-gtk: Added to 12.1 repository

This commit is contained in:
Kyle Guinn 2010-05-11 22:54:02 +02:00 committed by Erik Hanson
parent 20d65c367c
commit bd2c42a9f7
4 changed files with 122 additions and 0 deletions

View file

@ -0,0 +1,20 @@
This is some glue code to make GTK accessible from Guile (1.6.4 or up). It
provides a convenient interface for Scheme programmers to develop graphical
user interfaces. This version of guile-gtk is stripped down and intended for
people who want to use GTK without Gnome.
GtkGLArea is required to build guile-gtk.
guile-gtk version 0.60 was the last to support GTK+-1.2. To install this
version instead, download the source from here:
ftp://ftp.gnu.org/gnu/guile-gtk/guile-gtk-0.60.tar.gz
md5sum: 61a2e4d9326b40b65ce6c68bf1feb5db
Installation:
VERSION=0.60 ./guile-gtk.SlackBuild
Note that installing both version 0.60 and the latest version will result in
some common files getting clobbered. GtkGLArea should not be necessary for
version 0.60 (but possibly an older version of GtkGLArea), as it is already
handicapped with the removal of gdk-pixbuf from Slackware beginning with
Slackware 12.0.

View file

@ -0,0 +1,83 @@
#!/bin/sh
# Slackware build script for guile-gtk
# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM="guile-gtk"
VERSION=${VERSION:-"2.1"}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM-$VERSION
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README TODO"
# NOTE: Version 0.60 is the last version to support GTK+-1.2.
if [ "$VERSION" = "0.60" ]; then
GTK_VERSION="1.2"
else
GTK_VERSION="2.0"
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-st .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/info \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--enable-shared \
--disable-static \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
# These two files are essentially the same. Replace one with a symlink
# for better compatibility with the GTK+-1.2-supporting version.
( cd $PKG/usr/bin ; rm -rf build-guile-gtk )
( cd $PKG/usr/bin ; ln -sf build-guile-gtk-$GTK_VERSION build-guile-gtk )
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l); do \
ln -s $(readlink $i).gz $i.gz; rm $i; \
done
)
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $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.tgz

View file

@ -0,0 +1,8 @@
PRGNAM="guile-gtk"
VERSION="2.1"
HOMEPAGE="http://www.gnu.org/software/guile-gtk/"
DOWNLOAD="ftp://ftp.gnu.org/gnu/guile-gtk/guile-gtk-2.1.tar.gz"
MD5SUM="4ed9b00f4cefdef412923270d8ad02a5"
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
APPROVED="Erik Hanson"

View file

@ -0,0 +1,11 @@
guile-gtk: guile-gtk (GTK bindings for Guile)
guile-gtk:
guile-gtk: This is some glue code to make GTK accessible from Guile
guile-gtk: (1.6.4 or up). It provides a convenient interface for Scheme
guile-gtk: programmers to develop graphical user interfaces. This version
guile-gtk: of guile-gtk is stripped down and intended for people who want
guile-gtk: to use GTK without Gnome.
guile-gtk:
guile-gtk:
guile-gtk:
guile-gtk: