# -*- 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
PortGroup           github 1.0

github.setup        collective icalendar 4.0.7
revision            0
name                py-icalendar

platforms           darwin
license             BSD
maintainers         nomaintainer

description         The iCalendar package is a parser/generator of \
                    RFC 2445 iCalendar files.
long_description    The inspiration has come from the email package in \
                    the standard lib, which I think is pretty simple, \
                    yet efficient and powerful. The package can both \
                    generate and parse iCalendar files, and can easily \
                    be used as is. The aim is to make a package that \
                    is fully compliant to RFC 2445, well designed, \
                    simple to use and well documented.

homepage            https://icalendar.readthedocs.org/

checksums           rmd160  540042ccb4d10fd201794654c7ac5aa198c9162d \
                    sha256  1eaac87bb8e4d4fb8343c7c8b734c296aacb5ed4226c883899c67ecb385da730 \
                    size    69436

python.versions     27 35 36 37 38 39

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

    test.run        yes
    test.cmd        ${python.bin} setup.py
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    post-destroot {
        xinstall -m 0644 -W ${worksrcpath} \
            CHANGES.rst \
            CONTRIBUTING.rst \
            LICENSE.rst \
            README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type  none
}
