Browse Source

l/pyparsing: Upgraded to pyparsing-2.4.5.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
5e461a5b8f
  1. 1
      l/pyparsing/pyparsing-2.1.5.tar.gz.sha1
  2. 1
      l/pyparsing/pyparsing-2.4.5.tar.gz.sha256
  3. 26
      l/pyparsing/pyparsing.SlackBuild

1
l/pyparsing/pyparsing-2.1.5.tar.gz.sha1

@ -1 +0,0 @@
22ac5350c295b4b465904eb3ce592ea8cf3520f6 pyparsing-2.1.5.tar.gz

1
l/pyparsing/pyparsing-2.4.5.tar.gz.sha256

@ -0,0 +1 @@
4ca62001be367f01bd3e92ecbb79070272a9d4964dce6a48a82ff0b8bc7e683a pyparsing-2.4.5.tar.gz

26
l/pyparsing/pyparsing.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2014,2015,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,13 +23,13 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest pyparsing sourcecode is available at:
# <http://pyparsing.wikispaces.com/>.
# <https://github.com/pyparsing/pyparsing/>.
# Source package infos
NAMESRC=${NAMESRC:-pyparsing}
VERSION=${VERSION:-2.1.5}
VERSION=${VERSION:-2.4.5}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://downloads.sourceforge.net/pyparsing/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/00/32/8076fa13e832bb4dcff379f18f228e5a53412be0631808b9ca2610c0f566/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-pyparsing}
@ -60,7 +60,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -68,13 +68,21 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES HowToUsePyparsing.html LICENSE PKG-INFO README \
docs/*.pdf docs/*.PNG $PKG/usr/doc/$NAME
install -m 644 CHANGES CODE_OF_CONDUCT.rst CONTRIBUTING.md LICENSE \
README.rst $PKG/usr/doc/$NAME
# Build API docs if Sphinx is available
if type -p sphinx-build ; then
make -C docs html
cp -r docs/_build/html $PKG/usr/doc/$NAME/html
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save