1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

New port py-progressbar version 2.2: A text progressbar library for python

This commit is contained in:
Mario Sergio Fujikawa Ferreira 2010-04-07 14:13:06 +00:00
parent ed456ecdc6
commit 76e642b903
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252386
4 changed files with 52 additions and 0 deletions

View File

@ -445,6 +445,7 @@
SUBDIR += py-distutils
SUBDIR += py-osd
SUBDIR += py-pexpect
SUBDIR += py-progressbar
SUBDIR += py-qt4-demo
SUBDIR += py-qt4-doc
SUBDIR += py-yolk

View File

@ -0,0 +1,29 @@
# New ports collection makefile for: progressbar
# Date created: Wed Apr 7 13:54:04 UTC 2010
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= progressbar
PORTVERSION= 2.2
CATEGORIES= misc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= lioux@FreeBSD.org
COMMENT= A text progressbar library for python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
INSTALLS_EGGINFO= yes
PLIST_FILES= \
%%PYTHON_SITELIBDIR%%/progressbar.py \
%%PYTHON_SITELIBDIR%%/progressbar.pyc \
%%PYTHON_SITELIBDIR%%/progressbar.pyo
post-patch:
@${REINPLACE_CMD} -E -e 's|/usr/bin/python|${PYTHON_CMD}|' \
${WRKSRC}/${PORTNAME}.py
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (progressbar-2.2.tar.gz) = 8ea4e2c17a8ec9e7d153767c5f2a7b28
SHA256 (progressbar-2.2.tar.gz) = dfee5201237ca0e942baa4d451fee8bf8a54065a337fabe7378b8585aeda56a3
SIZE (progressbar-2.2.tar.gz) = 5118

View File

@ -0,0 +1,19 @@
This library provides a text mode progressbar. This is tipically
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.
WWW: http://pypi.python.org/pypi/progressbar/