# -*- 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-fontaine
version             1.4.0
revision            0

categories-append   devel print
license             GPL-3
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         a font analyzing tool
long_description    [string map {"-" ""} ${name}] analyses fonts for their\
                    language and character/glyph-set support.

homepage            https://github.com/googlefonts/[string map {"-" ""} ${name}]

set pypi_hash       88c6e98ed1d29c34212f59308139018c0f6d63d8d86659c0bc6a8ad4ad2a
master_sites        https://files.pythonhosted.org/packages/16/32/${pypi_hash}/

distname            ${python.rootname}-${version}-py2.py3-none-any

checksums           rmd160  64223fe6549cd2cf1ca6240ea7d90000b2c10f43 \
                    sha256  3c1ab64e7581d90922526cf50f527c38ca4d19a07bca06f618e053cdada2610b \
                    size    3427730

extract.suffix      .whl
extract.only

python.versions     312
python.pep517_backend

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-fonttools \
                    port:py${python.version}-lxml \
                    port:py${python.version}-pyicu \
                    port:py${python.version}-requests \
                    port:py${python.version}-tabulate

    build {}

    destroot.target         ${distpath}/${distfiles}

    livecheck.type          none
}
