summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorrodent <rodent@pkgsrc.org>2014-12-05 14:52:52 +0000
committerrodent <rodent@pkgsrc.org>2014-12-05 14:52:52 +0000
commit916b4a547d514d42bc78e2504bda2aa394e86a3b (patch)
tree32d6bb78e5a4380237bfa3be56a4916947b359b8 /comms
parent9f6b29aa63df9e10093c7e94ccad5831135c353b (diff)
downloadpkgsrc-916b4a547d514d42bc78e2504bda2aa394e86a3b.tar.gz
Import py27-colorama-0.3.2 as comms/py-colorama.
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, by wrapping stdout, stripping ANSI sequences it finds (which otherwise show up as gobbledygook in your output), and converting them into the appropriate win32 calls to modify the state of the terminal. On other platforms, Colorama does nothing. Colorama also provides some shortcuts to help generate ANSI sequences but works fine in conjunction with any other ANSI sequence generation library, such as Termcolor.
Diffstat (limited to 'comms')
-rw-r--r--comms/py-colorama/DESCR13
-rw-r--r--comms/py-colorama/Makefile16
-rw-r--r--comms/py-colorama/PLIST23
-rw-r--r--comms/py-colorama/distinfo5
4 files changed, 57 insertions, 0 deletions
diff --git a/comms/py-colorama/DESCR b/comms/py-colorama/DESCR
new file mode 100644
index 00000000000..4df5371c661
--- /dev/null
+++ b/comms/py-colorama/DESCR
@@ -0,0 +1,13 @@
+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, by wrapping stdout, stripping ANSI sequences it finds (which
+otherwise show up as gobbledygook in your output), and converting them into the
+appropriate win32 calls to modify the state of the terminal. On other platforms,
+Colorama does nothing.
+
+Colorama also provides some shortcuts to help generate ANSI sequences but works
+fine in conjunction with any other ANSI sequence generation library, such as
+Termcolor.
diff --git a/comms/py-colorama/Makefile b/comms/py-colorama/Makefile
new file mode 100644
index 00000000000..d1e814b691d
--- /dev/null
+++ b/comms/py-colorama/Makefile
@@ -0,0 +1,16 @@
+# $NetBSD: Makefile,v 1.1 2014/12/05 14:52:52 rodent Exp $
+
+DISTNAME= colorama-0.3.2
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= comms python
+MASTER_SITES= https://pypi.python.org/packages/source/c/colorama/
+
+MAINTAINER= kamelderouiche@yahoo.com
+HOMEPAGE= https://pypi.python.org/pypi/colorama
+COMMENT= Cross-platform coloured terminal text
+LICENSE= modified-bsd
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/comms/py-colorama/PLIST b/comms/py-colorama/PLIST
new file mode 100644
index 00000000000..3c0e38c2027
--- /dev/null
+++ b/comms/py-colorama/PLIST
@@ -0,0 +1,23 @@
+@comment $NetBSD: PLIST,v 1.1 2014/12/05 14:52:52 rodent Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/colorama/__init__.py
+${PYSITELIB}/colorama/__init__.pyc
+${PYSITELIB}/colorama/__init__.pyo
+${PYSITELIB}/colorama/ansi.py
+${PYSITELIB}/colorama/ansi.pyc
+${PYSITELIB}/colorama/ansi.pyo
+${PYSITELIB}/colorama/ansitowin32.py
+${PYSITELIB}/colorama/ansitowin32.pyc
+${PYSITELIB}/colorama/ansitowin32.pyo
+${PYSITELIB}/colorama/initialise.py
+${PYSITELIB}/colorama/initialise.pyc
+${PYSITELIB}/colorama/initialise.pyo
+${PYSITELIB}/colorama/win32.py
+${PYSITELIB}/colorama/win32.pyc
+${PYSITELIB}/colorama/win32.pyo
+${PYSITELIB}/colorama/winterm.py
+${PYSITELIB}/colorama/winterm.pyc
+${PYSITELIB}/colorama/winterm.pyo
diff --git a/comms/py-colorama/distinfo b/comms/py-colorama/distinfo
new file mode 100644
index 00000000000..3bf326bbe36
--- /dev/null
+++ b/comms/py-colorama/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/12/05 14:52:52 rodent Exp $
+
+SHA1 (colorama-0.3.2.tar.gz) = f2da891543421eeb423c469dff13faf1e70187e5
+RMD160 (colorama-0.3.2.tar.gz) = 47d181b0a4fb8fbac3af937d2aa2270456919e35
+Size (colorama-0.3.2.tar.gz) = 18343 bytes