# -*- 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 # $Id$ PortSystem 1.0 PortGroup python 1.0 set _name apache-libcloud set _n [string index ${_name} 0] name py-libcloud version 0.20.1 categories-append net platforms darwin supported_archs noarch license Apache-2 maintainers petr openmaintainer description Apache libcloud a unified interface into the cloud long_description \ Apache Libcloud is a Python library which hides differences between \ different cloud provider APIs and allows you to manage different \ cloud resources through a unified and easy to use API. homepage http://libcloud.apache.org/ master_sites http://www.apache.org/dist/libcloud/ \ https://pypi.python.org/packages/source/${_n}/${_name}/ distname ${_name}-${version} checksums md5 d12ef4f96878a940321c73f4e0821237 \ sha1 7ea9f45f43e9019b1ee9c1049b2773b0b9e6c54f \ rmd160 047ca8213ae50c4a46d20a3a8eff4f3a4749c6dc \ sha256 f36dcf8e6a4270c86b521ab4868fd762a7ec217195e126a8ccb028a82cf55466 python.versions 27 34 35 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools # Testing test.run yes if {${test.run}} { depends_build-append port:py${python.version}-mock \ port:py${python.version}-astroid \ port:py${python.version}-pylint \ port:py${python.version}-pep8 \ port:py${python.version}-flake8 set test_dir ${worksrcpath}/libcloud/test pre-test { copy -force ${test_dir}/secrets.py-dist ${test_dir}/secrets.py } post-test { delete ${test_dir}/secrets.py } } # Adding documentation and examples post-destroot { set dest_doc ${destroot}${prefix}/share/doc/${subport} xinstall -d ${dest_doc} xinstall -m 755 -W ${worksrcpath} \ LICENSE \ NOTICE \ CHANGES.rst \ README.rst \ ${dest_doc} eval copy [glob ${worksrcpath}/example_*.py] ${dest_doc}/examples } livecheck.type none } else { livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<" }