[116931] trunk/dports/python

macsforever2000 at macports.org macsforever2000 at macports.org
Mon Feb 10 13:03:15 PST 2014


Revision: 116931
          https://trac.macports.org/changeset/116931
Author:   macsforever2000 at macports.org
Date:     2014-02-10 13:03:15 -0800 (Mon, 10 Feb 2014)
Log Message:
-----------
py-flake8: New port. (#42437)

Added Paths:
-----------
    trunk/dports/python/py-flake8/
    trunk/dports/python/py-flake8/Portfile

Added: trunk/dports/python/py-flake8/Portfile
===================================================================
--- trunk/dports/python/py-flake8/Portfile	                        (rev 0)
+++ trunk/dports/python/py-flake8/Portfile	2014-02-10 21:03:15 UTC (rev 116931)
@@ -0,0 +1,63 @@
+# -*- 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
+
+set _name           flake8
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
+version             2.1.0
+categories-append   devel
+platforms           darwin
+supported_archs     noarch
+license             MIT
+
+maintainers         bo.ingv.it:Peter.Danecek openmaintainer
+
+description         The modular source code checker: pep8, pyflakes and Co.
+
+long_description    \
+    Flake8 runs all the tools by launching the single flake8 script. It is \
+    is a wrapper around the following tools: PyFlakes, PEP8 and the McCabe \
+    script by Ned Batchelder. It displays the warnings in a per-file, merged \
+    output, features Git and Mercurial hook and is extendable through \
+    flake8.extension entry points.
+
+homepage            http://flake8.readthedocs.org/
+
+distname            ${_name}-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+
+checksums           md5     cf326cfb88a1db6c5b29a3a6d9efb257 \
+                    rmd160  8db9ae3d2df3c5d962de91359aad5620844c9f46 \
+                    sha256  098ab7991067c08cfaa4716de20066d90f66dbc71502114ea8cad9a9fd5c9512
+
+python.versions     26 27 33 34
+
+if {${name} ne ${subport}} {
+    depends_build-append    port:py${python.version}-setuptools
+
+    depends_lib-append      port:py${python.version}-pyflakes \
+                            port:py${python.version}-pep8 \
+                            port:py${python.version}-flake8-mccabe
+
+    # Adding documentation
+    post-destroot {
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d  ${dest_doc}
+        xinstall -m 755 -W ${worksrcpath} \
+            CHANGES.rst \
+            CONTRIBUTORS.txt \
+            LICENSE \
+            README.rst \
+                ${dest_doc}
+    }
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   [lindex ${master_sites} 0]
+    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+}


Property changes on: trunk/dports/python/py-flake8/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140210/42315bde/attachment.html>


More information about the macports-changes mailing list