Browse Source

n/tornado: Upgraded to tornado-6.0.3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
0aa1d00871
  1. 1
      n/tornado/tornado-4.5.3.tar.gz.sha256
  2. 1
      n/tornado/tornado-6.0.3.tar.gz.sha256
  3. 24
      n/tornado/tornado.SlackBuild

1
n/tornado/tornado-4.5.3.tar.gz.sha256

@ -1 +0,0 @@
6d14e47eab0e15799cf3cdcc86b0b98279da68522caace2bd7ce644287685f0a tornado-4.5.3.tar.gz

1
n/tornado/tornado-6.0.3.tar.gz.sha256

@ -0,0 +1 @@
c845db36ba616912074c5b1ee897f8e0124df269468f25e4fe21fe72f6edd7a9 tornado-6.0.3.tar.gz

24
n/tornado/tornado.SlackBuild

@ -23,18 +23,15 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest tornado sourcecode is available at: <http://www.tornadoweb.org/>.
#
# Depends: l/python-backports, l/python-certifi, l/python-singledispatch
# Source package infos
NAMESRC=${NAMESRC:-tornado}
VERSION=${VERSION:-4.5.3}
VERSION=${VERSION:-6.0.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/e3/7b/e29ab3d51c8df66922fea216e2bddfcb6430fb29620e5165b16a216e0d3c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-tornado}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -59,8 +56,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -70,23 +66,17 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Tornado 6.x is Python 3 only
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 LICENSE PKG-INFO README.rst $PKG/usr/doc/$NAME
install -m 644 LICENSE README.rst $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
python-singledispatch
python-certifi
python-backports
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save