python/SimpleParse: Added (A Parser Generator for Python)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Andrzej Telszewski 2011-07-28 09:40:06 -03:00 committed by Niels Horn
parent b684be41a5
commit 23637dd85c
4 changed files with 89 additions and 0 deletions

View File

@ -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.

View File

@ -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}

View File

@ -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"

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------------------------------------------------------|
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: