diff options
Diffstat (limited to 'development/gob2')
-rw-r--r-- | development/gob2/README | 4 | ||||
-rw-r--r-- | development/gob2/gob2.SlackBuild | 66 | ||||
-rw-r--r-- | development/gob2/gob2.info | 8 | ||||
-rw-r--r-- | development/gob2/slack-desc | 19 |
4 files changed, 97 insertions, 0 deletions
diff --git a/development/gob2/README b/development/gob2/README new file mode 100644 index 0000000000..8eaaad9bce --- /dev/null +++ b/development/gob2/README @@ -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. diff --git a/development/gob2/gob2.SlackBuild b/development/gob2/gob2.SlackBuild new file mode 100644 index 0000000000..77f805fb93 --- /dev/null +++ b/development/gob2/gob2.SlackBuild @@ -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 diff --git a/development/gob2/gob2.info b/development/gob2/gob2.info new file mode 100644 index 0000000000..43a3963997 --- /dev/null +++ b/development/gob2/gob2.info @@ -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" diff --git a/development/gob2/slack-desc b/development/gob2/slack-desc new file mode 100644 index 0000000000..b4961a57b0 --- /dev/null +++ b/development/gob2/slack-desc @@ -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: |