# -*- 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-Faker
version             25.3.0
revision            0
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {judaew @judaew} openmaintainer

description         Faker is a Python package that generates fake data for you.
long_description    \
    {*}${description} Whether you need to bootstrap your database, create \
    good-looking XML documents, fill-in your persistence to stress test it, \
    or anonymize data taken from a production service, Faker is for you.
homepage            https://github.com/joke2k/faker

checksums           rmd160  bea4e721714e2407d5d14820b9722ff7ddf7f872 \
                    sha256  bcbe31eee5ef4bbf87ce36c4eba53c01e2a1d912fde2a4d3528b430d2beb784f \
                    size    1760396

python.versions     38 39 310 311 312

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-text-unidecode

    depends_test-append \
                    port:py${python.version}-decorator \
                    port:py${python.version}-freezegun \
                    port:py${python.version}-random2 \
                    port:py${python.version}-ukpostcodeparser \
                    port:py${python.version}-validators

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

    test.run        yes
}
