Ticket #41781: Portfile

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

Portfile for python/py-libcloud

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           apache-libcloud
8set _n              [string index ${_name} 0]
9
10name                py-libcloud
11version             0.13.2
12categories-append   net
13platforms           darwin
14supported_archs     noarch
15
16license             ASL-2
17
18maintainers         bo.ingv.it:Peter.Danecek openmaintainer
19
20description         Apache libcloud a unified interface into the cloud
21
22long_description    \
23    Apache Libcloud is a Python library which hides differences between \
24    different cloud provider APIs and allows you to manage different \
25    cloud resources through a unified and easy to use API.
26
27homepage            http://libcloud.apache.org/
28
29distname            ${_name}-${version}
30master_sites        http://www.apache.org/dist/libcloud/ \
31                    https://pypi.python.org/packages/source/${_n}/${_name}/
32
33checksums           md5     d3d127bb21ee73ca5b30bb367949c898 \
34                    sha1    ea964c2af3c51d6670683757d0dffd353fa82c0e \
35                    rmd160  3ed337637dcae3ca7b876caa0b1bed9437c175d2 \
36                    sha256  03b6f18c46737b4b9360521b2c958ab699a75bcc5fdd63dfef7cc69c42b0154b
37
38python.versions     26 27 32 33 34
39
40if {${name} ne ${subport}} {
41    # Adding documentation and examples
42    post-destroot {
43        set dest_doc ${destroot}${prefix}/share/doc/${subport}
44        xinstall -${dest_doc}
45        xinstall -m 755 -W ${worksrcpath} \
46            CHANGES \
47            HACKING \
48            LICENSE \
49            NOTICE \
50            README \
51                ${dest_doc}
52
53        eval copy [glob ${worksrcpath}/example_*.py] ${dest_doc}/examples
54    }
55}
56
57livecheck.type      regex
58livecheck.url       [lindex ${master_sites} 0]
59livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"