summaryrefslogtreecommitdiff
path: root/development/bacon
diff options
context:
space:
mode:
Diffstat (limited to 'development/bacon')
-rw-r--r--development/bacon/README9
-rw-r--r--development/bacon/bacon.SlackBuild78
-rw-r--r--development/bacon/bacon.info10
-rw-r--r--development/bacon/slack-desc19
4 files changed, 116 insertions, 0 deletions
diff --git a/development/bacon/README b/development/bacon/README
new file mode 100644
index 0000000000..a784a287b4
--- /dev/null
+++ b/development/bacon/README
@@ -0,0 +1,9 @@
+BaCon is a free BASIC to C converter for Unix-based systems.
+The following design goals were followed:
+ * Must run on each Unix/Linux/BSD platform, including Mac OS X
+ * Converted source code must be compilable with GCC
+ * Must resemble genuine BASIC with implicit variable declarations
+ * Spoken language constructs are preferred
+
+Note: When a new version of BaCon is released, the downloads will
+change and the md5sums won't match.
diff --git a/development/bacon/bacon.SlackBuild b/development/bacon/bacon.SlackBuild
new file mode 100644
index 0000000000..b59c38fcc2
--- /dev/null
+++ b/development/bacon/bacon.SlackBuild
@@ -0,0 +1,78 @@
+#!/bin/sh
+
+# Slackware build script for bacon
+
+# Written by Steve Pledger spledger91@yahoo.com
+
+PRGNAM="bacon"
+VERSION="1.0_build_19" # Real version figured out below
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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}
+
+# Version number may change, so figure out the real version
+REAL_VER="$(bash $CWD/bacon.bash -v | grep version | cut -d' ' -f3-5 | tr ' ' _)"
+
+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"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$REAL_VER
+mkdir $PRGNAM-$REAL_VER
+
+cd $PRGNAM-$REAL_VER
+# Bacon creates a binary in the same location as the source, so copy the source file here.
+cat $CWD/bacon.bac > bacon.bac
+
+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 {} \;
+
+# Use the Bash version of BaCon to convert and compile the BASIC version, which is much faster.
+# (Note: Not using sh because this requires Bash 4.x and sh may be a symlink to another shell)
+bash $CWD/bacon.bash -p -o "$SLKCFLAGS" bacon.bac
+
+mkdir -p $PKG/usr/bin
+install -m 0755 bacon $PKG/usr/bin
+
+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-$REAL_VER
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$REAL_VER/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$REAL_VER-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/bacon/bacon.info b/development/bacon/bacon.info
new file mode 100644
index 0000000000..f4c5533793
--- /dev/null
+++ b/development/bacon/bacon.info
@@ -0,0 +1,10 @@
+PRGNAM="bacon"
+VERSION="1.0_build_19"
+HOMEPAGE="http://www.basic-converter.org"
+DOWNLOAD="http://www.basic-converter.org/bacon.bash http://www.basic-converter.org/bacon.bac"
+MD5SUM="d60f0edfca5a46bf16fcb61e998156e0 571a6eb03b9c8df5a1cc283f729811e0"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Steve Pledger"
+EMAIL="spledger91@yahoo.com"
+APPROVED="Niels Horn"
diff --git a/development/bacon/slack-desc b/development/bacon/slack-desc
new file mode 100644
index 0000000000..bd7ddeaa17
--- /dev/null
+++ b/development/bacon/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 ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+bacon: bacon (basic converter)
+bacon:
+bacon: BaCon is a free BASIC to C converter for Unix-based systems.
+bacon: The following design goals were followed:
+bacon: * Must run on each Unix/Linux/BSD platform, including Mac OS X
+bacon: * Converted source code must be compilable with GCC
+bacon: * Must resemble genuine BASIC with implicit variable declarations
+bacon: * Spoken language constructs are preferred
+bacon:
+bacon: Homepage: http://www.basic-converter.org
+bacon: