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

name                py-csvkit
version             1.1.1
revision            0

categories-append   textproc
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {gmail.com:esafak @esafak} openmaintainer

description         A suite of utilities for converting to and working with CSV, the king of tabular file formats
long_description    csvkit is a suite of utilities for converting to and working with CSV, \
                    the king of tabular file formats. csvkit is to tabular data what the \
                    standard Unix text processing suite (grep, sed, cut, sort) is to text. \
                    As such, csvkit adheres to the Unix philosophy.

homepage            https://csvkit.readthedocs.io/

checksums           rmd160  e5c6c9829f98ea9fac4b59057a8df8566c342083 \
                    sha256  beddb7b78f6b22adbed6ead5ad5de4bfb31dd2c55f3211b2a2b3b65529049223 \
                    size    3792699

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-agate \
                        port:py${python.version}-agate-excel \
                        port:py${python.version}-agate-dbf \
                        port:py${python.version}-agate-sql \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-six

    depends_run-append  port:${python.rootname}_select

    select.group        ${python.rootname}
    select.file         ${filespath}/py${python.version}-${python.rootname}

    test.run        yes

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