Browse Source

l/python-bleach: Upgraded to python-bleach-3.1.0.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
9d52167f12
  1. 1
      l/python-bleach/bleach-2.1.2.tar.gz.sha256
  2. 1
      l/python-bleach/bleach-3.1.0.tar.gz.sha256
  3. 29
      l/python-bleach/python-bleach.SlackBuild

1
l/python-bleach/bleach-2.1.2.tar.gz.sha256

@ -1 +0,0 @@
38fc8cbebea4e787d8db55d6f324820c7f74362b70db9142c1ac7920452d1a19 bleach-2.1.2.tar.gz

1
l/python-bleach/bleach-3.1.0.tar.gz.sha256

@ -0,0 +1 @@
3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa bleach-3.1.0.tar.gz

29
l/python-bleach/python-bleach.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018 Damien Goutte-Gattat
# Copyright (C) 2018,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,13 +25,12 @@
# Latest bleach sourcecode is available at:
# <http://github.com/mozilla/bleach>.
#
# Depends: l/python-six, l/python-html5lib
# Depends: l/python-webencodings
# Source package infos
NAMESRC=${NAMESRC:-bleach}
VERSION=${VERSION:-2.1.2}
VERSION=${VERSION:-3.1.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/b3/5f/0da670d30d3ffbc57cc97fa82947f81bbe3eab8d441e2d42e661f215baf2/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-bleach}
@ -60,8 +59,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)
@ -71,21 +69,28 @@ 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/$NAMEPKG-$VERSION
install -m 644 CHANGES CONTRIBUTING.rst CONTRIBUTORS LICENSE README.rst \
$PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CHANGES CODE_OF_CONDUCT.rst CONTRIBUTING.rst CONTRIBUTORS \
LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if type -p sphinx-build ; then
sphinx-build -b html docs $PKG/usr/doc/$NAMEPKG-$VERSION/html
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi
# 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-six
python-html5lib
python-webencodings
EOF
# Package the tree

Loading…
Cancel
Save