libraries/g-wrap: Initial import

This commit is contained in:
Martin Lefebvre 2010-05-11 14:56:14 +02:00 committed by Michiel van Wessem
parent 33da30a118
commit 21f845745e
4 changed files with 86 additions and 0 deletions

8
libraries/g-wrap/README Normal file
View File

@ -0,0 +1,8 @@
G-Wrap -- A tool for exporting C libraries into Scheme interpreters
G-Wrap is a tool (and guile library) for generating function wrappers
for inter-language calls. It currently only supports generating Guile
wrappers for C functions. Other languages may be supported in the
future, possibly on both sides.

View File

@ -0,0 +1,60 @@
#!/bin/sh
# Slackware build script for g-wrap
# Written by Martin Lefebvre <dadexter@sekurity.com>
# Modified by the SlackBuilds.org project
set -e
PRGNAM=g-wrap
VERSION=1.9.7
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--infodir=/usr/info \
|| exit 1
make || exit 1
make install-strip DESTDIR=$PKG || exit 1
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README THANKS TODO \
$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="g-wrap"
VERSION="1.9.7"
HOMEPAGE="http://www.nongnu.org/g-wrap"
DOWNLOAD="http://savannah.nongnu.org/download/g-wrap/g-wrap-1.9.7.tar.gz"
MD5SUM="4e980fd3f464d53ecee12184569c32bf"
MAINTAINER="Martin Lefebvre"
EMAIL="dadexter@sekurity.com"
APPROVED="BP{k}"

View File

@ -0,0 +1,10 @@
g-wrap: G-Wrap -- A tool for exporting C libraries into Scheme interpreters
g-wrap:
g-wrap: G-Wrap is a tool (and guile library) for generating function wrappers
g-wrap: for inter-language calls. It currently only supports generating Guile
g-wrap: wrappers for C functions. Other languages may be supported in the
g-wrap: future, possibly on both sides.
g-wrap:
g-wrap:
g-wrap:
g-wrap: