libraries/pyPEG2: Update SlackBuild and README.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Edinaldo P. Silva 2018-04-19 08:57:49 +07:00 committed by Willy Sudiarto Raharjo
parent 7d717f7c0a
commit c68f7793cd
2 changed files with 7 additions and 5 deletions

View file

@ -5,7 +5,9 @@ for Python version 2.7 and 3.x. It is based on Parsing Expression
Grammar (PEG). With pyPEG you can parse many formal languages in a
very easy way.
NOTE: to build mutagen with python3 run the slackbuild with option
NOTE: to build pyPEG2 with python3 run the slackbuild with option
PYTHON3=yes.
# PYTHON3=yes ./pyPEG2.SlackBuild
NOTE2: In this case 'lxml' need to be build with Python3 bindings.

View file

@ -2,7 +2,7 @@
#
# Slackware build script for pyPEG2.
#
# Copyright 2015-2017 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=pyPEG2
VERSION=${VERSION:-2.15.2}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -72,7 +72,7 @@ find -L . \
python setup.py build
python setup.py install --root=$PKG
# Build mutagen with python3. Default is no.
# Build pyPEG2 with python3. Default is no.
if [ "${PYTHON3:-no}" == "yes" ]; then
python3 setup.py build
python3 setup.py install --root=$PKG
@ -82,7 +82,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.txt LICENSE.txt PKG-INFO README.txt TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp CHANGES.txt LICENSE.txt PKG-INFO README.txt TODO.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install