Browse Source

l/python-mechanize: Upgraded to python-mechanize-0.3.3.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
6f888805cf
  1. 1
      l/python-mechanize/mechanize-0.2.5.tar.gz.sha1
  2. 1
      l/python-mechanize/mechanize-0.3.3.tar.gz.sha256
  3. 18
      l/python-mechanize/python-mechanize.SlackBuild

1
l/python-mechanize/mechanize-0.2.5.tar.gz.sha1

@ -1 +0,0 @@
9d2fb74fc762e54848c0b3ed4b6a9c73722ef619 mechanize-0.2.5.tar.gz

1
l/python-mechanize/mechanize-0.3.3.tar.gz.sha256

@ -0,0 +1 @@
cf51c7c61ba11ed51490412d3f19bb2b0d8ab3ffce76a4c3250f4d97c4902f05 mechanize-0.3.3.tar.gz

18
l/python-mechanize/python-mechanize.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2012,2016 Damien Goutte-Gattat
# Copyright (C) 2012,2016,2017 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,13 +23,13 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest mechanize sourcecode is available at:
# <http://wwwsearch.sourceforge.net/mechanize/>.
# <https://github.com/python-mechanize/mechanize>.
# Source package infos
NAMESRC=${NAMESRC:-mechanize}
VERSION=${VERSION:-0.2.5}
VERSION=${VERSION:-0.3.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://pypi.python.org/packages/source/m/mechanize/$ARCHIVE}
WGET=${WGET:-https://github.com/python-mechanize/mechanize/archive/v$VERSION.tar.gz}
# Build infos
NAMEPKG=${NAMEPKG:-python-mechanize}
@ -74,7 +74,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
@ -89,8 +89,12 @@ python setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 COPYING.txt README.txt $PKG/usr/doc/$NAME
cp -r docs/html $PKG/usr/doc/$NAME/html
install -m 644 COPYRIGHT ChangeLog LICENSE README.rst $PKG/usr/doc/$NAME
if type -p sphinx-build ; then
make -C docs html
cp -r docs/_build/html $PKG/usr/doc/$NAME/html
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save