diff options
author | Diogo Leal <diogo@diogoleal.com> | 2010-12-12 01:07:56 -0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-12-12 15:47:15 -0600 |
commit | b680f8a0c99209b61b37aa6b6cb5419ed291d8bf (patch) | |
tree | 67773caeb0f01b5c274e1e113206dcabfaf1a5cd | |
parent | 5bc7b47896d1b635a9d546f92e95ded9d6d581b2 (diff) | |
download | slackbuilds-b680f8a0c99209b61b37aa6b6cb5419ed291d8bf.tar.gz |
development/regina-rexx: Added (a Rexx interpreter)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | development/regina-rexx/README | 11 | ||||
-rw-r--r-- | development/regina-rexx/doinst.sh | 26 | ||||
-rw-r--r-- | development/regina-rexx/regina-rexx.SlackBuild | 87 | ||||
-rw-r--r-- | development/regina-rexx/regina-rexx.info | 10 | ||||
-rw-r--r-- | development/regina-rexx/slack-desc | 19 |
5 files changed, 153 insertions, 0 deletions
diff --git a/development/regina-rexx/README b/development/regina-rexx/README new file mode 100644 index 0000000000..a79efb12f4 --- /dev/null +++ b/development/regina-rexx/README @@ -0,0 +1,11 @@ +Regina is a Rexx interpreter that has been ported to most Unix platforms +(Linux, FreeBSD, Solaris, AIX, HP-UX, etc.) and also to OS/2, eCS, DOS, +Win9x/Me/NT/2k/XP, Amiga, AROS, QNX4.x, QNX6.x, BeOS, MacOS X, EPOC32, +AtheOS, OpenVMS, SkyOS and OpenEdition. + +Rexx is a programming language that was designed to be easy to use for +inexperienced programmers yet powerful enough for experienced users. +It is also a language ideally suited as a macro language for other +applications. + + diff --git a/development/regina-rexx/doinst.sh b/development/regina-rexx/doinst.sh new file mode 100644 index 0000000000..1a967bff1b --- /dev/null +++ b/development/regina-rexx/doinst.sh @@ -0,0 +1,26 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + +preserve_perms etc/rc.d/init.d/rxstack.new + diff --git a/development/regina-rexx/regina-rexx.SlackBuild b/development/regina-rexx/regina-rexx.SlackBuild new file mode 100644 index 0000000000..47eea1d1d1 --- /dev/null +++ b/development/regina-rexx/regina-rexx.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh + +# Slackware build script for Regina REXX Interpreter +# Written by Diogo Leal (diogo@diogoleal.com) + +PRGNAM=regina-rexx +VERSION=${VERSION:-3.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=Regina-REXX + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +DOCS="README* HACKERS.txt " + +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 -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION + +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +chmod 644 $DOCS + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./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 + +# Rename the init script to .new and handle it in the doinst.sh +cd $PKG/etc/rc.d/init.d + mv rxstack rxstack.new +cd - + +find $PKG | xargs 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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/regina-rexx.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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:-tgz} diff --git a/development/regina-rexx/regina-rexx.info b/development/regina-rexx/regina-rexx.info new file mode 100644 index 0000000000..3890709fd1 --- /dev/null +++ b/development/regina-rexx/regina-rexx.info @@ -0,0 +1,10 @@ +PRGNAM="regina-rexx" +VERSION="3.5" +HOMEPAGE="http://regina-rexx.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/regina-rexx/Regina-REXX-3.5.tar.gz" +MD5SUM="914e223d882f0e4a35f4efda0a75920d" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="Diogo Leal" +EMAIL="diogo@diogoleal.com" +APPROVED="Niels Horn" diff --git a/development/regina-rexx/slack-desc b/development/regina-rexx/slack-desc new file mode 100644 index 0000000000..b74a21edf8 --- /dev/null +++ b/development/regina-rexx/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------------------------------------------------------| +regina-rexx: regina (is a Rexx interpreter) +regina-rexx: +regina-rexx: Rexx is a programming language that was designed to be +regina-rexx: easy to use for inexperienced programmers yet powerful +regina-rexx: enough for experienced users. +regina-rexx: +regina-rexx: Homepage: http://regina-rexx.sourceforge.net/ +regina-rexx: +regina-rexx: +regina-rexx: +regina-rexx: |