[146961] trunk/dports/python/py-cssselect/Portfile
petr at macports.org
petr at macports.org
Tue Mar 22 07:49:10 PDT 2016
Revision: 146961
https://trac.macports.org/changeset/146961
Author: petr at macports.org
Date: 2016-03-22 07:49:10 -0700 (Tue, 22 Mar 2016)
Log Message:
-----------
py-cssselect: fix livecheck
Modified Paths:
--------------
trunk/dports/python/py-cssselect/Portfile
Modified: trunk/dports/python/py-cssselect/Portfile
===================================================================
--- trunk/dports/python/py-cssselect/Portfile 2016-03-22 14:34:06 UTC (rev 146960)
+++ trunk/dports/python/py-cssselect/Portfile 2016-03-22 14:49:10 UTC (rev 146961)
@@ -4,7 +4,10 @@
PortSystem 1.0
PortGroup python 1.0
-name py-cssselect
+set _name lxml
+set _n [string index ${_name} 0]
+
+name py-${_name}
version 0.9.1
categories-append devel
platforms darwin
@@ -19,10 +22,12 @@
can be used in lxml or another XPath engine to \
find the matching elements in an XML or HTML \
document.
-homepage http://packages.python.org/cssselect/
-master_sites http://pypi.python.org/packages/source/c/cssselect/
-distname cssselect-${version}
+homepage https://pythonhosted.org/${name}/
+
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+
checksums rmd160 5e1c8da5e94411ca3928d3a805b60fe51d7f8484 \
sha256 0535a7e27014874b27ae3a4d33e8749e345bdfa62766195208b7996bf1100682
@@ -35,9 +40,9 @@
AUTHORS CHANGES LICENSE README.rst \
${destroot}${prefix}/share/doc/${subport}
}
- livecheck.type none
+ livecheck.type none
} else {
- livecheck.type regex
- livecheck.url ${master_sites}
- livecheck.regex "cssselect-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+ livecheck.type regex
+ livecheck.url https://pypi.python.org/pypi/${_name}/json
+ livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160322/c18883e1/attachment-0001.html>
More information about the macports-changes
mailing list