Browse Source

l/zope.component: Upgraded to zope.component-4.6.1.

current-20200608
parent
commit
a2a7ce0dfc
  1. 1
      l/zope.component/zope.component-4.6.1.tar.gz.sha256
  2. 1
      l/zope.component/zope.component-4.6.tar.gz.sha256
  3. 17
      l/zope.component/zope.component.SlackBuild

1
l/zope.component/zope.component-4.6.1.tar.gz.sha256

@ -0,0 +1 @@
d9c7c27673d787faff8a83797ce34d6ebcae26a370e25bddb465ac2182766aca zope.component-4.6.1.tar.gz

1
l/zope.component/zope.component-4.6.tar.gz.sha256

@ -1 +0,0 @@
ec2afc5bbe611dcace98bb39822c122d44743d635dafc7315b9aef25097db9e6 zope.component-4.6.tar.gz

17
l/zope.component/zope.component.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018,2019 Damien Goutte-Gattat
# Copyright (C) 2018,2019,2020 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -30,9 +30,8 @@
# Source package infos
NAMESRC=${NAMESRC:-zope.component}
VERSION=${VERSION:-4.6}
VERSION=${VERSION:-4.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://files.pythonhosted.org/packages/32/97/81ce1c228e8a7e98ef92e8ff211b091cf5a223d6d69cb599368798084042/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-zope.component}
@ -46,6 +45,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
@ -61,8 +61,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)
@ -72,8 +71,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
@ -82,6 +79,12 @@ mkdir -p $PKG/usr/doc/$NAME
install -m 644 CHANGES.rst COPYRIGHT.txt LICENSE.txt PKG-INFO 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