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

Last change on this file was 148177, checked in by petr@…, 19 months ago

py-threadpool: fix livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 148177 2016-04-28 22:06:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           threadpool
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.3.2
12categories-append   net parallel
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         petr 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     343bd94fa32effcc9367d382323b4cb3 \
36                    rmd160  ede7bc376bd2eec52c5798e13e93881434e6aaa2 \
37                    sha256  cce4ef898b7eda686a6086facf33c9ac006d1809281db0030673d1647bfeefa4
38
39python.versions     27 34 35
40
41if {${name} ne ${subport}} {
42    depends_build-append    port:py${python.version}-setuptools
43
44    # Adding documentation
45    post-destroot {
46        set dest_doc ${destroot}${prefix}/share/doc/${subport}
47        xinstall -${dest_doc}
48        eval xinstall -m 755 [ glob ${worksrcpath}/*.txt ] ${dest_doc}
49        copy ${worksrcpath}/doc ${dest_doc}/html
50    }
51
52    livecheck.type  none
53} else {
54    livecheck.type  regex
55    livecheck.url   https://pypi.python.org/pypi/${_name}/json
56    livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\""
57}
Note: See TracBrowser for help on using the repository browser.