libraries/progressbar: Added (Text progressbar library for python)

Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
This commit is contained in:
Lionel Young 2010-12-19 00:52:35 -02:00 committed by Robby Workman
parent a45025633d
commit 3012dbb963
4 changed files with 97 additions and 0 deletions

View file

@ -0,0 +1,14 @@
This library provides a text mode progressbar. This is typically used
to display the progress of a long running operation, providing a visual
clue that processing is underway.
The ProgressBar class manages the progress, and the format of the line
is given by a number of widgets. A widget is an object that may display
diferently depending on the state of the progress. There are three types
of widget: - a string, which always shows itself; - a ProgressBarWidget,
which may return a diferent value every time it's update method is called;
and - a ProgressBarWidgetHFill, which is like ProgressBarWidget, except
it expands to fill the remaining width of the line.
The progressbar module is very easy to use, yet very powerful. And
automatically supports features like auto-resizing when available.

View file

@ -0,0 +1,54 @@
#!/bin/sh
# Generated by Alien's SlackBuild Toolkit: http://slackware.com/~alien/AST
# Copyright 2009-2010 Eric Hameleers, Eindhoven, Netherlands
# Slackware build script for progressbar
# Written by Lionel Young <redtricycle@gmail.com>
# Based on http://slackbuilds.org/template.SlackBuild
PRGNAM=progressbar
VERSION=${VERSION:-2.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) export ARCH=i486 ;;
arm*) export ARCH=arm ;;
*) export ARCH=$( uname -m ) ;;
esac
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
python setup.py build || exit 1
python setup.py install --root=$PKG || exit 1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README LICENSE PKG-INFO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="progressbar"
VERSION="2.2"
HOMEPAGE="http://code.google.com/p/python-progressbar/"
DOWNLOAD="http://pypi.python.org/packages/source/p/progressbar/progressbar-2.2.tar.gz"
MD5SUM="8ea4e2c17a8ec9e7d153767c5f2a7b28"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Lionel Young"
EMAIL="redtricycle@gmail.com"
APPROVED="Niels Horn"

View file

@ -0,0 +1,19 @@
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
progressbar: progressbar (Text progressbar library for python)
progressbar:
progressbar: This library provides a text mode progressbar. This is typically
progressbar: used to display the progress of a long running operation, providing
progressbar: a visual clue that processing is underway. The progressbar module
progressbar: is very easy to use, yet very powerful. And automatically supports
progressbar: features like auto-resizing when available.
progressbar:
progressbar: Home: http://code.google.com/p/python-progressbar/
progressbar:
progressbar: