Revision
133266
Author
stromnov@macports.org
Date
2015-02-24 08:25:26 -0800 (Tue, 24 Feb 2015)

Log Message

py-markdown: reformat

Modified Paths

Diff

Modified: trunk/dports/python/py-markdown/Portfile (133265 => 133266)


--- trunk/dports/python/py-markdown/Portfile	2015-02-24 16:25:17 UTC (rev 133265)
+++ trunk/dports/python/py-markdown/Portfile	2015-02-24 16:25:26 UTC (rev 133266)
@@ -6,27 +6,35 @@
 
 name                py-markdown
 version             2.4.1
+revision            0
 categories-append   textproc
 platforms           darwin
 license             BSD
+supported_archs     noarch
+
+python.versions     27 34
+
 maintainers         stromnov openmaintainer
 
-supported_archs     noarch
+description         Python implementation of Markdown
 
-description         Python implementation of Markdown
 long_description    This is a Python implementation of John Gruber’s \
                     Markdown. It is almost completely compliant with \
                     the reference implementation, though there are a \
                     few very minor differences.
+
 homepage            http://packages.python.org/Markdown/
+master_sites        https://pypi.python.org/packages/source/M/Markdown/
 
-master_sites        http://pypi.python.org/packages/source/M/Markdown/
 distname            Markdown-${version}
+
 checksums           rmd160  7e2f39cbe92d240262a27e50ee30624385122cca \
                     sha256  812ec5249f45edc31330b7fb06e52aaf6ab2d83aa27047df7cb6837ef2d269b6
 
-python.versions     27 34
-
-livecheck.type      regex
-livecheck.url       http://pypi.python.org/pypi/Markdown
-livecheck.regex     Markdown-(\[0-9.\]+)${extract.suffix}
+if {${name} ne ${subport}} {
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       https://pypi.python.org/pypi/Markdown/json
+    livecheck.regex     {Markdown-(\d+(?:\.\d+)*)\.[tz]}
+}