Browse Source

n/gunicorn: Upgraded to gunicorn-19.9.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
043cb6459c
  1. 1
      n/gunicorn/gunicorn-19.6.0.tar.gz.sha1
  2. 1
      n/gunicorn/gunicorn-19.9.0.tar.gz.sha256
  3. 27
      n/gunicorn/gunicorn.SlackBuild

1
n/gunicorn/gunicorn-19.6.0.tar.gz.sha1

@ -1 +0,0 @@
ec049362953567e1acdc16e74c0c337301bc4867 gunicorn-19.6.0.tar.gz

1
n/gunicorn/gunicorn-19.9.0.tar.gz.sha256

@ -0,0 +1 @@
fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3 gunicorn-19.9.0.tar.gz

27
n/gunicorn/gunicorn.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016 Damien Goutte-Gattat
# Copyright (C) 2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -26,9 +26,9 @@
# Source package infos
NAMESRC=${NAMESRC:-gunicorn}
VERSION=${VERSION:-19.6.0}
VERSION=${VERSION:-19.9.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/84/ce/7ea5396efad1cef682bbc4068e72a0276341d9d9d0f501da609fab9fcb80/$ARCHIVE}
WGET=${WGET:-https://files.pythonhosted.org/packages/47/52/68ba8e5e8ba251e54006a49441f7ccabca83b6bef5aedacb4890596c7911/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-gunicorn}
@ -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,8 +68,23 @@ 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
for f in gunicorn gunicorn_paster ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-2.7
done
# And now for Python 3
python3 setup.py build
python3 setup.py install --root=$PKG
for f in gunicorn gunicorn_paster ; do
mv $PKG/usr/bin/$f $PKG/usr/bin/$f-3.7
done
# Add default symlinks to the -2.7 executables
for f in gunicorn gunicorn_paster ; do
ln -s $f-2.7 $PKG/usr/bin/$f
done
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME

Loading…
Cancel
Save