Alexander Afanasyev | 65d1862 | 2012-09-24 13:40:48 -0700 | [diff] [blame] | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 |
| 2 | # $Id$ |
| 3 | |
| 4 | PortSystem 1.0 |
| 5 | PortGroup python 1.0 |
| 6 | |
| 7 | name py-workerpool |
| 8 | version 0.9.2 |
| 9 | categories python |
| 10 | maintainers akitada |
| 11 | python.versions 24 25 26 27 |
| 12 | python.default_version 27 |
| 13 | description Module for distributing jobs to a pool of worker \ |
| 14 | threads. |
| 15 | long_description Performing tasks in many threads made fun! \ |
| 16 | \ |
| 17 | This module facilitates distributing simple \ |
| 18 | operations into jobs that are sent to worker \ |
| 19 | threads, maintained by a pool object. \ |
| 20 | \ |
| 21 | It consists of these components:\ |
| 22 | \ |
| 23 | 1. Jobs, which are single units of work that need \ |
| 24 | to be performed. \ |
| 25 | 2. Workers, who grab jobs from a queue and perform \ |
| 26 | them. \ |
| 27 | 3. Worker pool, which keeps track of workers and \ |
| 28 | the job queue. |
| 29 | |
| 30 | homepage http://code.google.com/p/workerpool/ |
| 31 | platforms darwin |
| 32 | master_sites http://workerpool.googlecode.com/files/ \ |
| 33 | http://pypi.python.org/packages/source/w/workerpool/ |
| 34 | distname workerpool-${version} |
| 35 | checksums md5 42904070f1a58f2a7b7276b22134375b \ |
| 36 | sha1 34da871db2615a474f8332e2aa33285a2d808bb7 \ |
| 37 | rmd160 e7565d81be215d0c728ef7306efa3ebea0fafebd |
| 38 | |
| 39 | if {$subport != $name} { |
| 40 | depends_build-append port:py${python.version}-distribute |
| 41 | |
| 42 | post-destroot { |
| 43 | xinstall -W ${worksrcpath} -m 644 CHANGES LICENSE README \ |
| 44 | ${destroot}${prefix}/share/doc/${subport} |
| 45 | eval copy [glob ${worksrcpath}/samples/*] \ |
| 46 | ${destroot}${prefix}/share/doc/${subport}/examples |
| 47 | } |
| 48 | } |