# -*- 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
PortGroup           github 1.0
PortGroup           select 1.0

github.setup        jmdana memprof 0.3.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-memprof
revision            1

categories-append   devel
license             GPL-3
maintainers         nomaintainer

description         Memprof is a memory profiler for Python.
long_description    {*}${description} It logs and plots the memory usage of all\
                    the variables during the execution of the decorated methods.

homepage            https://jmdana.github.io/memprof/
python.versions     310 311

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-cython \
                    port:py${python.version}-setuptools
    depends_run-append \
                    port:py${python.version}-matplotlib \
                    port:memprof_select

    checksums       rmd160  a057ae41713caf9c7230eff624cdc3c49d1e0052 \
                    sha256  d73527b6484a648319763e61174afb748eeef86aab74a7112892484c26e0f278 \
                    size    57384

    select.group    memprof
    select.file     ${filespath}/py${python.version}-memprof

    notes "
To make the Python ${python.branch} version of Memprof the one that is run when\
you execute the commands without a version suffix, e.g. 'mp_plot', run:

port select --set ${select.group} [file tail ${select.file}]
"
}
