blob: 3605b09ee4fe5f6b36f0d9f9004b4f6d43ed13be [file] [log] [blame]
Alexander Afanasyev65d18622012-09-24 13:40:48 -07001# -*- 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
4PortSystem 1.0
5PortGroup python 1.0
6
7name py-workerpool
8version 0.9.2
9categories python
10maintainers akitada
11python.versions 24 25 26 27
12python.default_version 27
13description Module for distributing jobs to a pool of worker \
14 threads.
15long_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
30homepage http://code.google.com/p/workerpool/
31platforms darwin
32master_sites http://workerpool.googlecode.com/files/ \
33 http://pypi.python.org/packages/source/w/workerpool/
34distname workerpool-${version}
35checksums md5 42904070f1a58f2a7b7276b22134375b \
36 sha1 34da871db2615a474f8332e2aa33285a2d808bb7 \
37 rmd160 e7565d81be215d0c728ef7306efa3ebea0fafebd
38
39if {$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}