source: trunk/dports/python/py-workerpool/Portfile

Last change on this file was 151739, checked in by ryandesign@…, 15 months ago

py-workerpool: use expansion operator instead of eval

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- 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
2# $Id: Portfile 151739 2016-08-21 17:53:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-workerpool
8version             0.9.2
9license             MIT
10maintainers         nomaintainer
11python.versions     27
12description         Module for distributing jobs to a pool of worker \
13                    threads.
14long_description    Performing tasks in many threads made fun! \
15                    \
16                    This module facilitates distributing simple \
17                    operations into jobs that are sent to worker \
18                    threads, maintained by a pool object. \
19                    \
20                    It consists of these components:\
21                    \
22                    1. Jobs, which are single units of work that need \
23                       to be performed. \
24                    2. Workers, who grab jobs from a queue and perform \
25                       them. \
26                    3. Worker pool, which keeps track of workers and \
27                       the job queue.
28
29homepage            http://code.google.com/p/workerpool/
30platforms           darwin
31supported_archs     noarch
32master_sites        googlecode:workerpool \
33                    pypi:w/workerpool
34distname            workerpool-${version}
35checksums           md5 42904070f1a58f2a7b7276b22134375b \
36                    sha1 34da871db2615a474f8332e2aa33285a2d808bb7 \
37                    rmd160 e7565d81be215d0c728ef7306efa3ebea0fafebd
38
39if {${name} ne ${subport}} {
40    depends_build-append    port:py${python.version}-setuptools
41
42    post-destroot {
43        xinstall -W ${worksrcpath} -m 644 CHANGES LICENSE README \
44            ${destroot}${prefix}/share/doc/${subport}
45        copy {*}[glob ${worksrcpath}/samples/*] \
46            ${destroot}${prefix}/share/doc/${subport}/examples
47    }
48}
Note: See TracBrowser for help on using the repository browser.