development/gob2: Added to 12.2 repository

This commit is contained in:
Erik Hanson 2010-05-12 23:28:41 +02:00 committed by Robby Workman
parent 862e75d589
commit b99ff3b8bc
4 changed files with 97 additions and 0 deletions

4
development/gob2/README Normal file
View file

@ -0,0 +1,4 @@
GOB (GOB2 anyway) is a preprocessor for making GObjects with inline C
code so that generated files are not edited. Syntax is inspired by Java
and Yacc or Lex. The implementation is intentionally kept simple, and
no C actual code parsing is done.

View file

@ -0,0 +1,66 @@
#!/bin/sh
# Slackware build script for GOB-2
# Written by Erik Hanson erik@slackbuilds.org
PRGNAM=gob2
VERSION=2.0.15
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"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
set -eu
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 .
chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--mandir=/usr/man \
--disable-static \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
( cd $PKG/usr/man || exit 1
find . -type f -exec gzip -9 {} \;
for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING COPYING.generated-code INSTALL NEWS README 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="gob2"
VERSION="2.0.15"
HOMEPAGE="http://www.5z.com/jirka/gob.html"
DOWNLOAD="http://ftp.5z.com/pub/gob/old/gob2-2.0.15.tar.gz"
MD5SUM="0c5ab18305fc37902d202a253fdb28b1"
MAINTAINER="Erik Hanson"
EMAIL="erik@slackbuilds.org"
APPROVED="rworkman"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler--------------------------------------------------------|
gob2: GOB-2 (a preprocessor for making GObjects with inline C code)
gob2:
gob2: GOB (GOB2 anyway) is a preprocessor for making GObjects with inline C
gob2: code so that generated files are not edited. Syntax is inspired by Java
gob2: and Yacc or Lex. The implementation is intentionally kept simple, and
gob2: no C actual code parsing is done.
gob2:
gob2: http://www.5z.com/jirka/gob.html
gob2:
gob2:
gob2: