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

name                py-pyficache
version             2.5.0
revision            0

platforms           {darwin any}
supported_archs     noarch
license             GPL-3+
maintainers         {reneeotten @reneeotten} openmaintainer

description         A Python module for reading and caching lines
long_description    The pyficache module allows one to get any line from \
                    any file, caching lines of the file on first access \
                    to the file. Although the file may be any file, the \
                    common use is when the file is a Python script.

checksums           rmd160  e58165616031a49273be34436c984e336c5e7cb5 \
                    sha256  99310caaf0f407c90f6beae37dfdba32c05981c7e35d7da008584b838308ac49 \
                    size    36147

python.versions     310 311 312 313

if {${subport} ne ${name}} {
    depends_lib-append \
                    port:py${python.version}-pygments \
                    port:py${python.version}-term-background \
                    port:py${python.version}-xdis

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} COPYING \
            NEWS.md README.rst ${destroot}${docdir}
    }
}
