Ticket #41768: Portfile

File Portfile, 1.9 KB (added by petrrr, 7 years ago)

Portfile for python/py-radical-utils

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           radical.utils
8set _n              [string index ${_name} 0]
9
10name                py-radical-utils
11version             0.5.0
12categories-append   net parallel devel
13platforms           darwin
14supported_archs     noarch
15
16maintainers         bo.ingv.it:Peter.Danecek openmaintainer
17
18license             MIT
19
20description         Shared code and tools for various Radical Group projects
21
22long_description    This Python package contains shared code and tools for \
23                    various Radical Group projects. Sometimes we call it the \
24                    Radical Kitchen Sink.
25
26homepage            https://github.com/saga-project/${_name}/
27
28distname            ${_name}-${version}
29master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
30
31checksums           md5     c9dc08c2e64cd104532890da6f4d9499 \
32                    rmd160  d8503f87aada1ca145cebabcb6fe7b02bac4e8d8 \
33                    sha256  4f2ae3abb049f3c08c0a7aa79e699ac767098cf19ba04df8009ccd0e8f4cbcec
34
35python.versions     26 27
36
37if {${name} ne ${subport}} {
38    depends_build-append    port:py${python.version}-setuptools
39    depends_lib-append      port:py${python.version}-colorama
40
41    # Adding documentation
42    post-destroot {
43        set dest_doc ${destroot}${prefix}/share/doc/${subport}
44        xinstall -${dest_doc}
45        xinstall -m 755 -W ${worksrcpath} \
46            CHANGES.md \
47            LICENSE.md \
48            README.md \
49                ${dest_doc}
50
51        delete ${dest_doc}/examples
52        copy ${worksrcpath}/examples ${dest_doc}/examples
53    }
54}
55
56livecheck.type      regex
57livecheck.url       ${master_sites}
58livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"