[122379] users/petr/ports/python
petr at macports.org
petr at macports.org
Mon Jul 21 11:41:27 PDT 2014
Revision: 122379
https://trac.macports.org/changeset/122379
Author: petr at macports.org
Date: 2014-07-21 11:41:27 -0700 (Mon, 21 Jul 2014)
Log Message:
-----------
py-restkit: new port
Added Paths:
-----------
users/petr/ports/python/py-restkit/
users/petr/ports/python/py-restkit/Portfile
Added: users/petr/ports/python/py-restkit/Portfile
===================================================================
--- users/petr/ports/python/py-restkit/Portfile (rev 0)
+++ users/petr/ports/python/py-restkit/Portfile 2014-07-21 18:41:27 UTC (rev 122379)
@@ -0,0 +1,64 @@
+# -*- 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 restkit
+set _n [string index ${_name} 0]
+
+name py-${_name}
+version 4.2.2
+categories python www
+license MIT
+platforms darwin
+supported_archs noarch
+maintainers nomaintainer
+
+description HTTP resource kit for Python
+
+long_description Restkit is an HTTP resource kit for Python. It allows \
+ you to easily access to HTTP resource and build objects \
+ around it. It's the base of couchdbkit a Python CouchDB \
+ framework.
+
+homepage http://benoitc.github.io/restkit/
+
+master_sites https://pypi.python.org/packages/source/${_n}/${_name}/
+distname ${_name}-${version}
+
+checksums md5 99fb4e1af6e1b25c488dace620b4676f \
+ sha1 305b75024893f64a62b5a018518f659c16532e39 \
+ rmd160 1e4f9cdfcf2c345ad35c001cfa8e3c778c052942
+
+# Python >= 2.6 required
+# Python 3.x is not yet officially supported
+python.versions 26 27
+
+if {${name} ne ${subport}} {
+ depends_build-append port:py${python.version}-setuptools
+
+ depends_lib-append port:py${python.version}-http-parser \
+ port:py${python.version}-socketpool
+
+ # 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-restkit/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/9e50227f/attachment.html>
More information about the macports-changes
mailing list