Browse Source

l/zope.hookable: Upgraded to zope.hookable-5.0.1.

current-20200608
parent
commit
675d5b5df4
  1. 1
      l/zope.hookable/zope.hookable-5.0.0.tar.gz.sha256
  2. 1
      l/zope.hookable/zope.hookable-5.0.1.tar.gz.sha256
  3. 17
      l/zope.hookable/zope.hookable.SlackBuild

1
l/zope.hookable/zope.hookable-5.0.0.tar.gz.sha256

@ -1 +0,0 @@
0f325838dbac827a1e2ed5d482c1f2656b6844dc96aa098f7727e76395fcd694 zope.hookable-5.0.0.tar.gz

1
l/zope.hookable/zope.hookable-5.0.1.tar.gz.sha256

@ -0,0 +1 @@
29d07681a78042cdd15b268ae9decffed9ace68a53eebeb61d65ae931d158841 zope.hookable-5.0.1.tar.gz

17
l/zope.hookable/zope.hookable.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2019 Damien Goutte-Gattat
# Copyright (C) 2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,9 +27,8 @@
# Source package infos
NAMESRC=${NAMESRC:-zope.hookable}
VERSION=${VERSION:-5.0.0}
VERSION=${VERSION:-5.0.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/35/7e/d7ffdd410a9b4aa97d175af1718baa6b741ec6a60baa668354dd3da4e26c/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-zope.hookable}
@ -43,6 +42,7 @@ TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
PKG=${PKG:-$OUT/$NAMEPKG}
CWD=$(pwd)
PYTHONDIR=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')
set -e # Quit if a command returns non-zero
@ -58,8 +58,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)
@ -69,8 +68,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
@ -79,6 +76,12 @@ mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst \
$PKG/usr/doc/$NAME
# Build HTML docs if possible
export PYTHONPATH=$PKG$PYTHONDIR
if sphinx-build -b html docs $PKG/usr/doc/$NAME/html ; then
rm -rf $PKG/usr/doc/$NAME/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save