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

homepage            https://github.com/rocky/python-filecache

checksums           rmd160  c06620de3732d64e1c37d16ec935533239d61302 \
                    sha256  4534639b115cd87c6a739890f47b9140c50cde03f42356f8704701212667f9f6 \
                    size    40627

python.versions     310 311 312 313 314

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