diff --git a/python/py-socketpool/Portfile b/python/py-socketpool/Portfile new file mode 100644 index 0000000000000..8e12b23d6c528 --- /dev/null +++ b/python/py-socketpool/Portfile @@ -0,0 +1,46 @@ +# -*- 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 + +name py-socketpool +version 0.2.3 +revision 0 +categories-append devel +license MIT +platforms darwin +supported_archs noarch + +maintainers stromnov openmaintainer + +description Socketpool - a simple Python socket pool. + +long_description Socket pool is a simple socket pool that suports \ + multiple factories and backends. It can easily be \ + used by gevent, eventlet or any other library. + +homepage http://github.com/benoitc/socketpool +master_sites http://pypi.python.org/packages/source/s/socketpool/ + +distname socketpool-${version} + +checksums rmd160 291614abc69c759031edbfac860f9774582a29fc \ + sha256 ee19728d1eec976d952b73929d300337779e5035eb80bd4c3452893dea1a4362 + +python.default_version 27 +python.versions 26 27 + +if {$subport != $name} { + depends_build-append port:py${python.version}-distribute + + post-destroot { + xinstall -d ${destroot}${python.prefix}/share/doc/ + move ${destroot}${python.prefix}/socketpool ${destroot}${python.prefix}/share/doc/socketpool + file copy ${worksrcpath}/examples/ ${destroot}${python.prefix}/share/doc/socketpool + } +} + +livecheck.type regex +livecheck.url ${master_sites} +livecheck.regex "socketpool-(\\d+(?:\\.\\d+)*)${extract.suffix}"