# -*- 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-analytics-python
version             1.4.0
revision            0
categories-append   devel math
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     310

maintainers         nomaintainer

description         Integrate analytics into any python application.
long_description    Segment is the simplest way to integrate analytics \
                    into your application. One API allows you to turn \
                    on any other analytics service.

homepage            https://github.com/segmentio/analytics-python

checksums           rmd160  a0e20dd9bf58e4b844a1bf76f8b7ce873314259b \
                    sha256  a65141ab6e47db396f5bc5708b1db93ff9a99882d81fe808228afd5ebb6dfe5f \
                    size    14552

if {${name} ne ${subport}} {
    # diff -NaurdwB ./py-analytics-python-orig/setup.py ./py-analytics-python-new/setup.py | sed -E -e 's/\.\/py-analytics-python-(orig|new)\//.\//' | sed -E -e 's|/opt/local|@@PREFIX@@|g' > ~/Downloads/patch-setup_py.diff
    patchfiles-append \
                   patch-setup_py.diff

    depends_run-append \
                    port:py${python.version}-backoff \
                    port:py${python.version}-dateutil \
                    port:py${python.version}-monotonic \
                    port:py${python.version}-requests
}
