Browse Source

n/tornado: Upgraded to tornado-4.5.3.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
34d259d3df
  1. 1
      n/tornado/backports.ssl_match_hostname-3.2a3.tar.gz.sha1
  2. 1
      n/tornado/tornado-4.3.tar.gz.sha1
  3. 1
      n/tornado/tornado-4.5.3.tar.gz.sha256
  4. 27
      n/tornado/tornado.SlackBuild

1
n/tornado/backports.ssl_match_hostname-3.2a3.tar.gz.sha1

@ -1 +0,0 @@
6b6abbe957cdca15050f9b026f313032f9f583c2 backports.ssl_match_hostname-3.2a3.tar.gz

1
n/tornado/tornado-4.3.tar.gz.sha1

@ -1 +0,0 @@
42e5184bddf53c32ee7bb406e3d630e403a508c4 tornado-4.3.tar.gz

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

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

27
n/tornado/tornado.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2014,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2014,2015,2016,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -29,9 +29,9 @@
# Source package infos
NAMESRC=${NAMESRC:-tornado}
VERSION=${VERSION:-4.3}
VERSION=${VERSION:-4.5.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/source/t/tornado/$ARCHIVE}
WGET=${WGET:-https://pypi.python.org/packages/e3/7b/e29ab3d51c8df66922fea216e2bddfcb6430fb29620e5165b16a216e0d3c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-tornado}
@ -63,10 +63,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
if [ ! -f backports.ssl_match_hostname-3.2a3.tar.gz ]; then
wget https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.2a3.tar.gz
fi
sha1sum -c $ARCHIVE.sha1 backports.ssl_match_hostname-3.2a3.tar.gz.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -77,20 +74,20 @@ cd $NAME
python setup.py build
python setup.py install --root=$PKG
# Install backports.ssl_match_hostname
tar xf $CWD/backports.ssl_match_hostname-3.2a3.tar.gz
(cd backports.ssl_match_hostname-3.2a3
python setup.py build
python setup.py install --root=$PKG
)
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 PKG-INFO README.rst $PKG/usr/doc/$NAME
install -m 644 LICENSE PKG-INFO 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-abc
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save