svn commit: r427032 - in head/misc/py-progressbar: . files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Nov 24 15:34:25 UTC 2016
Author: sunpoet
Date: Thu Nov 24 15:34:24 2016
New Revision: 427032
URL: https://svnweb.freebsd.org/changeset/ports/427032
Log:
- Update LICENSE
- Add LICENSE_FILE
- Add NO_ARCH
- Allow build with Python 3 and relax USES=python
- Allow concurrent installation (USE_PYTHON=concurrent)
- Update WWW
- Add GitHub repository to WWW
Added:
head/misc/py-progressbar/files/
head/misc/py-progressbar/files/patch-progressbar-widgets.py (contents, props changed)
Modified:
head/misc/py-progressbar/Makefile
head/misc/py-progressbar/pkg-descr
Modified: head/misc/py-progressbar/Makefile
==============================================================================
--- head/misc/py-progressbar/Makefile Thu Nov 24 15:34:20 2016 (r427031)
+++ head/misc/py-progressbar/Makefile Thu Nov 24 15:34:24 2016 (r427032)
@@ -11,9 +11,12 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet at FreeBSD.org
COMMENT= Text progressbar library for python
-LICENSE= BSD3CLAUSE
+LICENSE= BSD3CLAUSE LGPL21+
+LICENSE_COMB= dual
+LICENSE_FILE_BSD3CLAUSE=${WRKSRC}/LICENSE.txt
-USE_PYTHON= autoplist distutils
-USES= python:2.7
+NO_ARCH= yes
+USE_PYTHON= autoplist concurrent distutils
+USES= python
.include <bsd.port.mk>
Added: head/misc/py-progressbar/files/patch-progressbar-widgets.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/misc/py-progressbar/files/patch-progressbar-widgets.py Thu Nov 24 15:34:24 2016 (r427032)
@@ -0,0 +1,44 @@
+--- progressbar/widgets.py.orig 2011-05-15 23:08:48 UTC
++++ progressbar/widgets.py
+@@ -84,8 +84,8 @@ class Timer(Widget):
+ __slots__ = ('format',)
+ TIME_SENSITIVE = True
+
+- def __init__(self, format='Elapsed Time: %s'):
+- self.format = format
++ def __init__(self, _format='Elapsed Time: %s'):
++ self.format = _format
+
+ @staticmethod
+ def format_time(seconds):
+@@ -121,7 +121,7 @@ class ETA(Timer):
+ class FileTransferSpeed(Widget):
+ 'Widget for showing the transfer speed (useful for file transfers).'
+
+- format = '%6.2f %s%s/s'
++ _format = '%6.2f %s%s/s'
+ prefixes = ' kMGTPEZY'
+ __slots__ = ('unit', 'format')
+
+@@ -170,8 +170,8 @@ class Counter(Widget):
+
+ __slots__ = ('format',)
+
+- def __init__(self, format='%d'):
+- self.format = format
++ def __init__(self, _format='%d'):
++ self.format = _format
+
+ def update(self, pbar):
+ return self.format % pbar.currval
+@@ -198,8 +198,8 @@ class FormatLabel(Timer):
+ }
+
+ __slots__ = ('format',)
+- def __init__(self, format):
+- self.format = format
++ def __init__(self, _format):
++ self.format = _format
+
+ def update(self, pbar):
+ context = {}
Modified: head/misc/py-progressbar/pkg-descr
==============================================================================
--- head/misc/py-progressbar/pkg-descr Thu Nov 24 15:34:20 2016 (r427031)
+++ head/misc/py-progressbar/pkg-descr Thu Nov 24 15:34:24 2016 (r427032)
@@ -13,4 +13,5 @@ There are three types of widget:
- a ProgressBarWidgetHFill, which is like ProgressBarWidget, except
it expands to fill the remaining width of the line.
-WWW: http://code.google.com/p/python-progressbar
+WWW: https://pypi.python.org/pypi/progressbar
+WWW: https://github.com/niltonvolpato/python-progressbar
More information about the svn-ports-head
mailing list