# -*- 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.7
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  4c9d9385c3ed376d2b262edbab0779669c40b4bc \
                    sha256  ab727bf81de88984ada5c11f066f1e1649903d3e3d7ec91f1ce968172afd5256 \
                    size    58657

python.versions     39 310 311 312

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}
    }
}
