[144848] trunk/dports/python

sean at macports.org sean at macports.org
Tue Jan 19 15:42:17 PST 2016


Revision: 144848
          https://trac.macports.org/changeset/144848
Author:   sean at macports.org
Date:     2016-01-19 15:42:17 -0800 (Tue, 19 Jan 2016)
Log Message:
-----------
py-backports-shutil_get_terminal_size: add new port for py-columnize

Added Paths:
-----------
    trunk/dports/python/py-backports-shutil_get_terminal_size/
    trunk/dports/python/py-backports-shutil_get_terminal_size/Portfile

Added: trunk/dports/python/py-backports-shutil_get_terminal_size/Portfile
===================================================================
--- trunk/dports/python/py-backports-shutil_get_terminal_size/Portfile	                        (rev 0)
+++ trunk/dports/python/py-backports-shutil_get_terminal_size/Portfile	2016-01-19 23:42:17 UTC (rev 144848)
@@ -0,0 +1,39 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+PortGroup           github 1.0
+
+github.setup        chrippa backports.shutil_get_terminal_size 1.0.0 v
+name                py-backports-shutil_get_terminal_size
+platforms           darwin
+supported_archs     noarch
+license             GPL-3+
+maintainers         nomaintainer
+
+description         A backport of the get_terminal_size function from Python 3.3's shutil
+long_description    ${description}
+
+checksums           rmd160  41bd48f4df01ae8dc86fef916359624a6a78de05 \
+                    sha256  9abf6d7e99f520b93a8ea83b7a20a1da528802ac946d7fe10592c833e8c61ff6
+
+python.versions     27
+
+if {${subport} ne ${name}} {
+    depends_build-append    port:py${python.version}-nose \
+                            port:py${python.version}-setuptools
+
+    depends_lib-append      port:py${python.version}-backports
+
+    post-destroot {
+        foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
+            set fp "${destroot}${python.pkgd}/backports/$f"
+            if {[file exists ${fp}]} {
+                file delete -force ${fp}
+            }
+        }
+    }
+
+    livecheck.type          none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160119/f9508542/attachment-0001.html>


More information about the macports-changes mailing list