# -*- 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 PortSystem 1.0 PortGroup python 1.0 set _name apache-libcloud set _n [string index ${_name} 0] name py-libcloud version 2.3.0 categories-append net platforms darwin supported_archs noarch license Apache-2 maintainers {petr @petrrr} 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 https://libcloud.apache.org/ master_sites https://www.apache.org/dist/libcloud/ \ https://pypi.python.org/packages/source/${_n}/${_name}/ distname ${_name}-${version} checksums sha1 18c60d7a0b3f872c24527aaf386a543fa8c79e9b \ rmd160 14c8d03e1b821afce479d83f2522fe33f1cdfcc5 \ sha256 0e2eee3802163bd0605975ed1e284cafc23203919bfa80c0cc5d3cd2543aaf97 \ size 1801711 python.versions 27 36 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}-requests \ port:py${python.version}-requests-mock \ port:py${python.version}-pytest \ port:py${python.version}-pytest-runner 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} 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}<" } foreach {old new} {34 36 35 36} { subport py${old}-${python.rootname} " replaced_by py${new}-${python.rootname} PortGroup obsolete 1.0 " }