# -*- 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

# Remember to update libvirt and py-libvirt at the same time.
name                py-libvirt
version             5.9.0
revision            0
checksums           rmd160  87e80c1055550657e58e49edd352dda934ab9934 \
                    sha256  6cf90149baec0cfaf79aa91da08abd7e471a03f5d59669c2dcdaaec3e0592cb2 \
                    size    202823

platforms           darwin
license             MIT
maintainers         {danchr @danchr} {ryandesign @ryandesign} openmaintainer

description         The libvirt virtualization API python binding
long_description    The libvirt virtualization API python binding provides a \
                    module that permits applications written in the Python \
                    programming language to call the interface supplied by the \
                    libvirt library, to manage the virtualization capabilities \
                    of recent versions of Linux and other OSes.

homepage            http://www.libvirt.org/
distname            libvirt-python-${version}
master_sites        ${homepage}sources/python

python.default_version  27
python.versions     27 35 36 37 38


if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools \
                        port:pkgconfig
    depends_lib         port:libvirt

    livecheck.type  none
} else {
    livecheck.name  ${python.rootname}-python
    livecheck.type  pypi
}