summaryrefslogtreecommitdiffstats
path: root/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'libraries')
-rw-r--r--libraries/progressbar/README14
-rw-r--r--libraries/progressbar/progressbar.SlackBuild54
-rw-r--r--libraries/progressbar/progressbar.info10
-rw-r--r--libraries/progressbar/slack-desc19
4 files changed, 97 insertions, 0 deletions
diff --git a/libraries/progressbar/README b/libraries/progressbar/README
new file mode 100644
index 0000000000..0f929b1e91
--- /dev/null
+++ b/libraries/progressbar/README
@@ -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.
diff --git a/libraries/progressbar/progressbar.SlackBuild b/libraries/progressbar/progressbar.SlackBuild
new file mode 100644
index 0000000000..65cab86c1e
--- /dev/null
+++ b/libraries/progressbar/progressbar.SlackBuild
@@ -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}
diff --git a/libraries/progressbar/progressbar.info b/libraries/progressbar/progressbar.info
new file mode 100644
index 0000000000..47eb418490
--- /dev/null
+++ b/libraries/progressbar/progressbar.info
@@ -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"
diff --git a/libraries/progressbar/slack-desc b/libraries/progressbar/slack-desc
new file mode 100644
index 0000000000..cc41f2231f
--- /dev/null
+++ b/libraries/progressbar/slack-desc
@@ -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: