[122378] users/petr/ports/python
petr at macports.org
petr at macports.org
Mon Jul 21 11:39:43 PDT 2014
Revision: 122378
https://trac.macports.org/changeset/122378
Author: petr at macports.org
Date: 2014-07-21 11:39:43 -0700 (Mon, 21 Jul 2014)
Log Message:
-----------
py-http-parser: new port
Added Paths:
-----------
users/petr/ports/python/py-http-parser/
users/petr/ports/python/py-http-parser/Portfile
Added: users/petr/ports/python/py-http-parser/Portfile
===================================================================
--- users/petr/ports/python/py-http-parser/Portfile (rev 0)
+++ users/petr/ports/python/py-http-parser/Portfile 2014-07-21 18:39:43 UTC (rev 122378)
@@ -0,0 +1,57 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+set _name http-parser
+set _n [string index ${_name} 0]
+
+name py-${_name}
+version 0.8.3
+categories python www
+license MIT PSF
+platforms darwin
+maintainers nomaintainer
+
+description HTTP request/response parser
+
+long_description HTTP request/response parser for Python. If possible a \
+ C parser based on http-parser from Ryan Dahl will be used.
+
+homepage http://github.com/benoitc/http-parser
+
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+
+checksums md5 751967e2785c829dffebdc9a511e0eec \
+ sha1 de2509e6b62d6beb191e0953d3b098ffac27fedd \
+ rmd160 5953b6a238917e14b1bf6c1e4f995fbac03463b5
+
+# Python >=2.6, Python 3.x and Pypy
+python.versions 26 27 31 32 33 34
+
+if {${name} ne ${subport}} {
+ depends_build port:py${python.version}-setuptools
+
+ # Adding documentation and examples
+ post-destroot {
+ set dest_doc ${destroot}${prefix}/share/doc/${subport}
+ xinstall -d ${dest_doc}
+ xinstall -m 755 -W ${worksrcpath} \
+ README.rst \
+ LICENSE \
+ NOTICE \
+ THANKS \
+ ${dest_doc}
+
+ delete ${dest_doc}/examples
+ copy ${worksrcpath}/examples ${dest_doc}/examples
+ }
+
+ livecheck.type none
+} else {
+ livecheck.type regex
+ livecheck.url [lindex ${master_sites} 0]
+ livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+}
Property changes on: users/petr/ports/python/py-http-parser/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140721/2532e290/attachment.html>
More information about the macports-changes
mailing list