[105272] trunk/dports/python/py-blist/Portfile

stromnov at macports.org stromnov at macports.org
Mon Apr 15 11:53:18 PDT 2013


Revision: 105272
          https://trac.macports.org/changeset/105272
Author:   stromnov at macports.org
Date:     2013-04-15 11:53:18 -0700 (Mon, 15 Apr 2013)
Log Message:
-----------
py-blist: reformat Portfile

Modified Paths:
--------------
    trunk/dports/python/py-blist/Portfile

Modified: trunk/dports/python/py-blist/Portfile
===================================================================
--- trunk/dports/python/py-blist/Portfile	2013-04-15 17:30:59 UTC (rev 105271)
+++ trunk/dports/python/py-blist/Portfile	2013-04-15 18:53:18 UTC (rev 105272)
@@ -8,9 +8,11 @@
 version             1.3.4
 revision            3
 categories-append   devel
+platforms           darwin
 license             BSD
-platforms           darwin
 
+python.versions     26 27 31 32 33
+
 maintainers         stromnov phw openmaintainer
 
 description         A list-like type with better asymptotic performance.
@@ -19,30 +21,30 @@
 
 homepage            http://stutzbachenterprises.com/
 master_sites        http://pypi.python.org/packages/source/b/blist/
+
 distname            blist-${version}
 
 checksums           rmd160  1409f817660b9c9b9bf814c8b629118b47542b0d \
                     sha256  502e4fc7ebac04d5699f39c19ff2687ec32698d01252edafd28997db2d6d0a01
 
-python.versions     26 27 31 32
-python.default_version 27
-
 if {$subport != $name} {
+    depends_build-append \
+                        port:py${python.version}-distribute
 
-    depends_lib-append  port:py${python.version}-distribute
-
     post-patch {
         file delete -force ${worksrcpath}/blist.egg-info
     }
 
-    build.args-append -f
+    build.args-append   -f
 
     post-destroot {
         xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
         xinstall -m 644 -W ${worksrcpath} README.rst LICENSE ${destroot}${prefix}/share/doc/${subport}
     }
+
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       ${master_sites}
+    livecheck.regex     "blist-(\\d+(?:\\.\\d+)*)${extract.suffix}"
 }
-
-livecheck.type      regex
-livecheck.url       ${master_sites}
-livecheck.regex     "blist-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130415/58a1cb92/attachment.html>


More information about the macports-changes mailing list