Ticket #42586: Portfile

File Portfile, 2.0 KB (added by petrrr, 10 years ago)

Portfile for python/py-threadpool

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$
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           threadpool
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.2.7
12categories-append   net parallel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         bo.ingv.it:Peter.Danecek openmaintainer
18
19description         Easy to use object-oriented thread pool framework
20
21long_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
28homepage            http://chrisarndt.de/projects/${_name}/
29
30use_bzip2           yes
31distname            ${_name}-${version}
32master_sites        http://chrisarndt.de/projects/${_name}/download/ \
33                    https://pypi.python.org/packages/source/${_n}/${_name}/
34
35checksums           md5     e1d5a4f73440ed701dfd0b3eb0d9c1ca \
36                    rmd160  9bcc55d7c800996ce953d73702d42f9ced90eb65 \
37                    sha256  538539b3783acc7f7b2bbb5611bd66e98e5026ae665f014e8bd5da19dbb55acf
38
39livecheck.type      regex
40livecheck.url       [lindex ${master_sites} 0]
41livecheck.regex     ">${_name}-(\\d+\\.\\d+\\.\\d+)\\${extract.suffix}<"
42
43python.versions     26 27
44
45if {${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 -${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}