# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-vobject
version             0.9.9
revision            0

license             Apache-2
maintainers         nomaintainer
supported_archs     noarch
platforms           {darwin any}

description         Python package for parsing and generating vCard and \
                    vCalendar files.
long_description    vObject is intended to be a full featured Python package \
                    for parsing and generating vCard and vCalendar files. It \
                    is being developed in concert with the Open Source \
                    Application Foundation`s Chandler project.

homepage            https://py-vobject.github.io/vobject/

checksums           rmd160  21d052964eca5a2321c83009f9ed589eb7483034 \
                    sha256  ac44e5d7e2079d84c1d52c50a615b9bec4b1ba958608c4c7fe40cbf33247b38e \
                    size    1208905

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-six

    test.run        yes
    test.cmd        ${python.bin} tests.py
    python.test_framework

    post-destroot   {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} \
            ACKNOWLEDGEMENTS.txt \
            LICENSE-2.0.txt \
            README.md \
            ${destroot}${docdir}
    }
}
