[128511] trunk/dports/python/py-wtforms/Portfile
petr at macports.org
petr at macports.org
Sat Nov 22 09:38:07 PST 2014
Revision: 128511
https://trac.macports.org/changeset/128511
Author: petr at macports.org
Date: 2014-11-22 09:38:07 -0800 (Sat, 22 Nov 2014)
Log Message:
-----------
py-wtforms: add livecheck, formating, use pattern
Modified Paths:
--------------
trunk/dports/python/py-wtforms/Portfile
Modified: trunk/dports/python/py-wtforms/Portfile
===================================================================
--- trunk/dports/python/py-wtforms/Portfile 2014-11-22 17:28:56 UTC (rev 128510)
+++ trunk/dports/python/py-wtforms/Portfile 2014-11-22 17:38:07 UTC (rev 128511)
@@ -4,22 +4,35 @@
PortSystem 1.0
PortGroup python 1.0
+set _name WTForms
+set _n [string index ${_name} 0]
+
name py-wtforms
-set real_name WTForms
version 2.0.1
categories-append devel www
platforms darwin
license BSD
maintainers nomaintainer
-python.versions 27 34
-description Forms validation and rendering library for Python web development
+
+description Forms validation and rendering library for Python \
+ web development
long_description ${description}
homepage http://wtforms.simplecodes.com/
-master_sites http://pypi.python.org/packages/source/W/${real_name} \
- http://b.pypi.python.org/packages/source/W/${real_name}
+master_sites https://pypi.python.org/packages/source/${_n}/${_name} \
+ https://b.pypi.python.org/packages/source/${_n}/${_name}
+distname ${_name}-${version}
+use_zip yes
-distname ${real_name}-${version}
-use_zip yes
-checksums sha256 62859c74be4683601b5265ba83b9babd8a8f1cdd0ba31600fa1e70d295cd4ed2 \
- rmd160 f509df447f3cc6a55bdc0bd40ee1f9e4715e0023
+checksums rmd160 f509df447f3cc6a55bdc0bd40ee1f9e4715e0023 \
+ sha256 62859c74be4683601b5265ba83b9babd8a8f1cdd0ba31600fa1e70d295cd4ed2
+
+python.versions 27 34
+
+if {${name} eq ${subport}} {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+} else {
+ livecheck.type none
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141122/a9225329/attachment-0001.html>
More information about the macports-changes
mailing list