[82240] trunk/dports/python
stromnov at macports.org
stromnov at macports.org
Thu Aug 11 06:37:43 PDT 2011
Revision: 82240
http://trac.macports.org/changeset/82240
Author: stromnov at macports.org
Date: 2011-08-11 06:37:39 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
unify py*-pyflakes
Modified Paths:
--------------
trunk/dports/python/py-pyflakes/Portfile
Added Paths:
-----------
trunk/dports/python/py-pyflakes/files/
trunk/dports/python/py-pyflakes/files/py24-pyflakes
trunk/dports/python/py-pyflakes/files/py25-pyflakes
trunk/dports/python/py-pyflakes/files/py26-pyflakes
trunk/dports/python/py-pyflakes/files/py27-pyflakes
trunk/dports/python/pyflakes_select/
trunk/dports/python/pyflakes_select/Portfile
trunk/dports/python/pyflakes_select/files/
trunk/dports/python/pyflakes_select/files/base
trunk/dports/python/pyflakes_select/files/none
Removed Paths:
-------------
trunk/dports/python/py25-pyflakes/
trunk/dports/python/py26-pyflakes/
trunk/dports/python/py27-pyflakes/
Modified: trunk/dports/python/py-pyflakes/Portfile
===================================================================
--- trunk/dports/python/py-pyflakes/Portfile 2011-08-11 09:07:47 UTC (rev 82239)
+++ trunk/dports/python/py-pyflakes/Portfile 2011-08-11 13:37:39 UTC (rev 82240)
@@ -1,33 +1,57 @@
+# -*- 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 python24 1.0
+PortGroup python 1.0
+PortGroup select 1.0
name py-pyflakes
version 0.4.0
-categories python www
+revision 1
+categories-append devel
+license MIT
platforms darwin
-maintainers nomaintainer
-homepage http://www.divmod.org/trac/wiki/DivmodPyflakes
-description passive checker of Python programs
+supported_archs noarch
+
+maintainers stromnov openmaintainer
+
+description Passive checker of Python programs.
long_description Pyflakes is program to analyze Python programs and \
detect various errors. It works by parsing the source \
file, not importing it, so it is safe to use on modules \
with side effects. It's also much faster.
+homepage http://www.divmod.org/trac/wiki/DivmodPyflakes
master_sites http://pypi.python.org/packages/source/p/pyflakes/
-distname pyflakes-${version}
+
checksums md5 630a72510aae8758f48cf60e4fa17176 \
sha1 439b547be3be431de90ebea16b7fd2a3f620e3f9 \
rmd160 b2962664414c41128b165d2db5977bfc8ecb7777
-depends_lib-append port:py-setuptools
+distname pyflakes-${version}
-post-destroot {
- move ${destroot}${prefix}/bin/pyflakes ${destroot}${prefix}/bin/pyflakes-2.4
+python.versions 24 25 26 27
+
+if {$subport != $name} {
+ post-destroot {
+ if {$subport == "py24-sympy" || $subport == "py25-sympy"} {
+ move ${destroot}${prefix}/bin/pyflakes \
+ ${destroot}${prefix}/bin/isympy-${python.branch}
+ }
+ }
+
+ depends_run port:pyflakes_select
+
+ select.group pyflakes
+ select.file ${filespath}/py${python.version}-pyflakes
+
+ notes \
+"To make the Python ${python.branch} version of py-pyflakes the one that is run
+when you execute the commands without a version suffix, e.g. 'pyflakes',
+run:
+port select --set ${select.group} [file tail ${select.file}]"
}
livecheck.type regex
livecheck.url http://pypi.python.org/pypi/pyflakes/
-livecheck.regex pyflakes (0\.\[0-9\]+\.\[0-9\]+)
-
+livecheck.regex "pyflakes-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Added: trunk/dports/python/py-pyflakes/files/py24-pyflakes
===================================================================
--- trunk/dports/python/py-pyflakes/files/py24-pyflakes (rev 0)
+++ trunk/dports/python/py-pyflakes/files/py24-pyflakes 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+bin/pyflakes-2.4
Added: trunk/dports/python/py-pyflakes/files/py25-pyflakes
===================================================================
--- trunk/dports/python/py-pyflakes/files/py25-pyflakes (rev 0)
+++ trunk/dports/python/py-pyflakes/files/py25-pyflakes 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+bin/pyflakes-2.5
Added: trunk/dports/python/py-pyflakes/files/py26-pyflakes
===================================================================
--- trunk/dports/python/py-pyflakes/files/py26-pyflakes (rev 0)
+++ trunk/dports/python/py-pyflakes/files/py26-pyflakes 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/2.6/bin/pyflakes
Added: trunk/dports/python/py-pyflakes/files/py27-pyflakes
===================================================================
--- trunk/dports/python/py-pyflakes/files/py27-pyflakes (rev 0)
+++ trunk/dports/python/py-pyflakes/files/py27-pyflakes 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+${frameworks_dir}/Python.framework/Versions/2.7/bin/pyflakes
Added: trunk/dports/python/pyflakes_select/Portfile
===================================================================
--- trunk/dports/python/pyflakes_select/Portfile (rev 0)
+++ trunk/dports/python/pyflakes_select/Portfile 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1,34 @@
+# -*- 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 select 1.0
+
+name pyflakes_select
+version 0.1
+revision 0
+categories python
+license BSD
+
+maintainers stromnov openmaintainer
+
+description common files for selecting default pyflakes version
+long_description \
+ This port installs files that allow 'port select' to be used to \
+ create links to the preferred default version of pyflakes.
+
+platforms darwin
+supported_archs noarch
+
+homepage http://www.macports.org/
+
+distfiles
+
+use_configure no
+build {}
+destroot {
+ select::install pyflakes ${filespath}/base
+ select::install pyflakes ${filespath}/none
+}
+
+livecheck.type none
Property changes on: trunk/dports/python/pyflakes_select/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/python/pyflakes_select/files/base
===================================================================
--- trunk/dports/python/pyflakes_select/files/base (rev 0)
+++ trunk/dports/python/pyflakes_select/files/base 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+bin/pyflakes
Added: trunk/dports/python/pyflakes_select/files/none
===================================================================
--- trunk/dports/python/pyflakes_select/files/none (rev 0)
+++ trunk/dports/python/pyflakes_select/files/none 2011-08-11 13:37:39 UTC (rev 82240)
@@ -0,0 +1 @@
+-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110811/3c3b7106/attachment.html>
More information about the macports-changes
mailing list