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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | set _name threadpool |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-${_name} |
---|
11 | version 1.2.7 |
---|
12 | categories-append net parallel |
---|
13 | platforms darwin |
---|
14 | supported_archs noarch |
---|
15 | license MIT |
---|
16 | |
---|
17 | maintainers bo.ingv.it:Peter.Danecek openmaintainer |
---|
18 | |
---|
19 | description Easy to use object-oriented thread pool framework |
---|
20 | |
---|
21 | long_description \ |
---|
22 | A thread pool is an object that maintains a pool of worker threads to \ |
---|
23 | perform time consuming operations in parallel. It assigns jobs to the \ |
---|
24 | threads by putting them in a work request queue, where they are picked \ |
---|
25 | up by the next available thread. This then performs the requested \ |
---|
26 | operation in the background and puts the results in another queue. |
---|
27 | |
---|
28 | homepage http://chrisarndt.de/projects/${_name}/ |
---|
29 | |
---|
30 | use_bzip2 yes |
---|
31 | distname ${_name}-${version} |
---|
32 | master_sites http://chrisarndt.de/projects/${_name}/download/ \ |
---|
33 | https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
34 | |
---|
35 | checksums md5 e1d5a4f73440ed701dfd0b3eb0d9c1ca \ |
---|
36 | rmd160 9bcc55d7c800996ce953d73702d42f9ced90eb65 \ |
---|
37 | sha256 538539b3783acc7f7b2bbb5611bd66e98e5026ae665f014e8bd5da19dbb55acf |
---|
38 | |
---|
39 | livecheck.type regex |
---|
40 | livecheck.url [lindex ${master_sites} 0] |
---|
41 | livecheck.regex ">${_name}-(\\d+\\.\\d+\\.\\d+)\\${extract.suffix}<" |
---|
42 | |
---|
43 | python.versions 26 27 |
---|
44 | |
---|
45 | if {${name} ne ${subport}} { |
---|
46 | depends_build-append port:py${python.version}-setuptools |
---|
47 | |
---|
48 | # Adding documentation |
---|
49 | post-destroot { |
---|
50 | set dest_doc ${destroot}${prefix}/share/doc/${subport} |
---|
51 | xinstall -d ${dest_doc} |
---|
52 | eval xinstall -m 755 [ glob ${worksrcpath}/*.txt ] ${dest_doc} |
---|
53 | copy ${worksrcpath}/doc ${dest_doc}/html |
---|
54 | } |
---|
55 | |
---|
56 | livecheck.type none |
---|
57 | } |
---|