summaryrefslogtreecommitdiffstats
path: root/python/SimpleParse
diff options
context:
space:
mode:
author Andrzej Telszewski2011-07-28 14:40:06 +0200
committer Niels Horn2011-07-28 14:40:06 +0200
commit23637dd85cab104b2e98b480c6525021e6401300 (patch)
tree462a08c4ce1d5b49c5db511e8fb9b363cd823a0c /python/SimpleParse
parentb684be41a56fa1e2f3eddc195fcdb41f35018e78 (diff)
downloadslackbuilds-23637dd85cab104b2e98b480c6525021e6401300.tar.gz
python/SimpleParse: Added (A Parser Generator for Python)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'python/SimpleParse')
-rw-r--r--python/SimpleParse/README6
-rw-r--r--python/SimpleParse/SimpleParse.SlackBuild54
-rw-r--r--python/SimpleParse/SimpleParse.info10
-rw-r--r--python/SimpleParse/slack-desc19
4 files changed, 89 insertions, 0 deletions
diff --git a/python/SimpleParse/README b/python/SimpleParse/README
new file mode 100644
index 0000000000..441ae4af2f
--- /dev/null
+++ b/python/SimpleParse/README
@@ -0,0 +1,6 @@
+SimpleParse is a BSD-licensed Python package providing a simple and fast
+parser generator using a modified version of the mxTextTools text-tagging
+engine. SimpleParse allows you to generate parsers directly from your
+EBNF grammar.
+
+This requires pysetuptools.
diff --git a/python/SimpleParse/SimpleParse.SlackBuild b/python/SimpleParse/SimpleParse.SlackBuild
new file mode 100644
index 0000000000..3c76f260bc
--- /dev/null
+++ b/python/SimpleParse/SimpleParse.SlackBuild
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+# Slackware build script for SimpleParse
+
+# Written by Andrzej Telszewski <atelszewski@gmail.com>
+
+PRGNAM=SimpleParse
+VERSION=2.1.1a2
+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}
+
+set -e
+
+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 .
+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 {} \;
+
+python setup.py install --root=$PKG
+
+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 doc license.txt \
+ $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.${PKGTYPE:-tgz}
diff --git a/python/SimpleParse/SimpleParse.info b/python/SimpleParse/SimpleParse.info
new file mode 100644
index 0000000000..3eed940bcc
--- /dev/null
+++ b/python/SimpleParse/SimpleParse.info
@@ -0,0 +1,10 @@
+PRGNAM="SimpleParse"
+VERSION="2.1.1a2"
+HOMEPAGE="http://simpleparse.sourceforge.net/"
+DOWNLOAD="http://downloads.sourceforge.net/simpleparse/SimpleParse-2.1.1a2.tar.gz"
+MD5SUM="9c4e13b4f9b087442f76e7382ba97e3b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Andrzej Telszewski"
+EMAIL="atelszewski@gmail.com"
+APPROVED="Niels Horn"
diff --git a/python/SimpleParse/slack-desc b/python/SimpleParse/slack-desc
new file mode 100644
index 0000000000..4c49ca6af8
--- /dev/null
+++ b/python/SimpleParse/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------------------------------------------------------|
+SimpleParse: SimpleParse (A Parser Generator for Python)
+SimpleParse:
+SimpleParse: Provides a moderately fast parser generator for use with Python,
+SimpleParse: includes a forked version of the mxTextTools text-processing library
+SimpleParse: modified to eliminate recursive operation and fix a number of
+SimpleParse: undesirable behaviours.
+SimpleParse:
+SimpleParse: Converts EBNF grammars directly to single-pass parsers for many
+SimpleParse: largely deterministic grammars.
+SimpleParse:
+SimpleParse: