# -*- 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-inequality
version             1.1.2
revision            0

categories-append   gis

platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         nomaintainer

description         Spatial Inequality Analysis (inequality)
long_description    {*}${description} implements measures for the analysis of inequality over \
                    space and time and is part of the PySAL family.

homepage            https://inequality.readthedocs.io/en/latest/

checksums           rmd160  7835b81ce897d316ec81596613a4a8610eab62d5 \
                    sha256  2010253c26cfe3745d36beb02aeff5503e1b21cb06e1d52aa7f13c37acd9adf1 \
                    size    2675815

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    depends_run-append \
                    port:py${python.version}-libpysal \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-scipy

    if {${python.version} == 39} {
        python.pep517  no
        version        1.0.0
        revision       0
        checksums      rmd160  e5727c8a61e677de9365647adc2a4f0ac36cd038 \
                       sha256  e3ad59ece8d25ecfc7c7e94efe59ead0e4ffb76ff72befd18a60e10caba6fd54 \
                       size    11421

        depends_build-append port:py${python.version}-setuptools
        depends_build-delete port:py${python.version}-setuptools_scm
        depends_run-delete   port:py${python.version}-matplotlib \
                             port:py${python.version}-pandas
    } elseif {${python.version} == 310} {
        version        1.1.1
        revision       0
        checksums      rmd160  84dc5186bb19c802ac7c318e6e9710b2d33b7f7d \
                       sha256  a093aa58effc26a9152b021a02330be3b184053f5c1c35152c725f022c50395b \
                       size    3700846

        depends_run-delete   port:py${python.version}-pandas
    }

}
