# -*- 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-slugify
python.rootname     python-slugify
version             8.0.4
revision            0

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

description         A Python Slugify application that handles Unicode
long_description    {*}${description}

homepage            https://github.com/un33k/python-slugify

checksums           rmd160  32484f540d20cf100e24629126859c0687b7d5ee \
                    sha256  59202371d1d05b54a9e7720c5e038f928f45daaffe41dd10822f3907b937c856 \
                    size    10921

python.versions     39 310 311 312 313

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

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