Bug 178352 - New port: devel/py-colorama - Cross-platform API to print colored terminal text from Python apps
Summary: New port: devel/py-colorama - Cross-platform API to print colored terminal te...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-05 20:20 UTC by Alexey Degtyarev
Modified: 2013-05-10 21:50 UTC (History)
0 users

See Also:


Attachments
file.shar (2.80 KB, text/plain)
2013-05-05 20:20 UTC, Alexey Degtyarev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Degtyarev 2013-05-05 20:20:00 UTC
ANSI escape character sequences have long been used to produce colored terminal
text and cursor positioning on Unix and Macs. Colorama makes this work on
Windows, too. It also provides some shortcuts to help generate ANSI sequences,
and works fine in conjunction with any other ANSI sequence generation library,
such as Termcolor.

WWW: http://pypi.python.org/pypi/colorama

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-05 20:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2013-05-10 21:40:57 UTC
Responsible Changed
From-To: freebsd-python->rm

I will take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-05-10 21:44:13 UTC
Author: rm
Date: Fri May 10 20:44:03 2013
New Revision: 317841
URL: http://svnweb.freebsd.org/changeset/ports/317841

Log:
  Makes ANSI escape character sequences, for producing colored terminal text and
  cursor positioning, work under MS Windows.
  
  ANSI escape character sequences have long been used to produce colored terminal
  text and cursor positioning on Unix and Macs. Colorama makes this work on
  Windows, too. It also provides some shortcuts to help generate ANSI sequences,
  and works fine in conjunction with any other ANSI sequence generation library,
  such as Termcolor.
  
  WWW: http://pypi.python.org/pypi/colorama
  
  PR:		178352
  Submitted by:	Alexey V. Degtyarev <alexey@renatasystems.org>

Added:
  head/devel/py-colorama/
  head/devel/py-colorama/Makefile   (contents, props changed)
  head/devel/py-colorama/distinfo   (contents, props changed)
  head/devel/py-colorama/pkg-descr   (contents, props changed)
  head/devel/py-colorama/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Fri May 10 20:43:23 2013	(r317840)
+++ head/devel/Makefile	Fri May 10 20:44:03 2013	(r317841)
@@ -3441,6 +3441,7 @@
     SUBDIR += py-coil
     SUBDIR += py-collective.monkeypatcher
     SUBDIR += py-collective.z3cform.datetimewidget
+    SUBDIR += py-colorama
     SUBDIR += py-configobj
     SUBDIR += py-construct
     SUBDIR += py-coverage

Added: head/devel/py-colorama/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-colorama/Makefile	Fri May 10 20:44:03 2013	(r317841)
@@ -0,0 +1,18 @@
+# Created by: Alexey V. Degtyarev <alexey@renatasystems.org>
+# $FreeBSD$
+
+PORTNAME=	colorama
+PORTVERSION=	0.2.5
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	alexey@renatasystems.org
+COMMENT=	Cross-platform API to print colored terminal text from Python apps
+
+LICENSE=	BSD
+
+USE_PYTHON=	yes
+USE_PYDISTUTILS=yes
+
+.include <bsd.port.mk>

Added: head/devel/py-colorama/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-colorama/distinfo	Fri May 10 20:44:03 2013	(r317841)
@@ -0,0 +1,2 @@
+SHA256 (colorama-0.2.5.tar.gz) = 55bad9c74fbda47c558d581e287cfd9bfff48f196caedcff76bf2fb17149b80b
+SIZE (colorama-0.2.5.tar.gz) = 15042

Added: head/devel/py-colorama/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-colorama/pkg-descr	Fri May 10 20:44:03 2013	(r317841)
@@ -0,0 +1,10 @@
+Makes ANSI escape character sequences, for producing colored terminal text and
+cursor positioning, work under MS Windows.
+
+ANSI escape character sequences have long been used to produce colored terminal
+text and cursor positioning on Unix and Macs. Colorama makes this work on
+Windows, too. It also provides some shortcuts to help generate ANSI sequences,
+and works fine in conjunction with any other ANSI sequence generation library,
+such as Termcolor.
+
+WWW: http://pypi.python.org/pypi/colorama

Added: head/devel/py-colorama/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-colorama/pkg-plist	Fri May 10 20:44:03 2013	(r317841)
@@ -0,0 +1,19 @@
+%%PYTHON_SITELIBDIR%%/colorama/__init__.py
+%%PYTHON_SITELIBDIR%%/colorama/__init__.pyc
+%%PYTHON_SITELIBDIR%%/colorama/__init__.pyo
+%%PYTHON_SITELIBDIR%%/colorama/ansi.py
+%%PYTHON_SITELIBDIR%%/colorama/ansi.pyc
+%%PYTHON_SITELIBDIR%%/colorama/ansi.pyo
+%%PYTHON_SITELIBDIR%%/colorama/ansitowin32.py
+%%PYTHON_SITELIBDIR%%/colorama/ansitowin32.pyc
+%%PYTHON_SITELIBDIR%%/colorama/ansitowin32.pyo
+%%PYTHON_SITELIBDIR%%/colorama/initialise.py
+%%PYTHON_SITELIBDIR%%/colorama/initialise.pyc
+%%PYTHON_SITELIBDIR%%/colorama/initialise.pyo
+%%PYTHON_SITELIBDIR%%/colorama/win32.py
+%%PYTHON_SITELIBDIR%%/colorama/win32.pyc
+%%PYTHON_SITELIBDIR%%/colorama/win32.pyo
+%%PYTHON_SITELIBDIR%%/colorama/winterm.py
+%%PYTHON_SITELIBDIR%%/colorama/winterm.pyc
+%%PYTHON_SITELIBDIR%%/colorama/winterm.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/colorama
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2013-05-10 21:44:33 UTC
State Changed
From-To: open->closed

New port added, thank you.