[107165] trunk/dports/python/py-flask-mail/Portfile

aronnax at macports.org aronnax at macports.org
Thu Jun 20 12:47:16 PDT 2013


Revision: 107165
          https://trac.macports.org/changeset/107165
Author:   aronnax at macports.org
Date:     2013-06-20 12:47:16 -0700 (Thu, 20 Jun 2013)
Log Message:
-----------
py-flask-mail: fix livecheck

Modified Paths:
--------------
    trunk/dports/python/py-flask-mail/Portfile

Modified: trunk/dports/python/py-flask-mail/Portfile
===================================================================
--- trunk/dports/python/py-flask-mail/Portfile	2013-06-20 19:40:21 UTC (rev 107164)
+++ trunk/dports/python/py-flask-mail/Portfile	2013-06-20 19:47:16 UTC (rev 107165)
@@ -17,15 +17,22 @@
 license             BSD
 platforms           darwin
 homepage            http://pythonhosted.org/Flask-Mail/
-master_sites        http://pypi.python.org/packages/source/F/${real_name}
+master_sites        http://pypi.python.org/packages/source/[string index ${real_name} 0]/${real_name}/
 distname            ${real_name}-${version}
 checksums           md5     cd71f0b228341fc29d2722783ebaa8f6 \
                     rmd160  c59f406cddb8f64e944d927613cc9b99c71c451e \
                     sha256  db9669d1eac783e73f06406f36bb5f71eae99b6c24e5849d76934641e3f6263e
 
-if {$name != $subport} {
+if {$name == $subport} {
+    livecheck.url           ${master_sites}
+    livecheck.type          regex
+    livecheck.regex         [format "%s-%s" ${real_name} {(\d+(?:\.\d+)*)}]
+} else {
     depends_build-append    port:py${python.version}-setuptools \
                             port:py${python.version}-sphinx
+
     depends_lib-append      port:py${python.version}-flask \
                             port:py${python.version}-blinker
+
+    livecheck.type          none
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130620/561a48c8/attachment.html>


More information about the macports-changes mailing list