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

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         mytop 1.7
github.setup        jzawodn mytop 437f2ef8d3fce02eafe935ddbf860d1dfbc43f7d
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             [perl5_convert_version ${perl5.moduleversion}]
license             GPL-2
maintainers         nomaintainer

homepage            ${github.homepage}

description         display MySQL server performance info like `top'
long_description    {*}${description}

master_sites        {*}${github.master_sites}
checksums           rmd160 6059921ee7c230c7de0b2c5e1924d90ff4ff9329 \
                    sha256 8471c35926b07a7a6de653b1825321bba7c36c3c7992075c908ef6bb3a844fbb

platforms           {darwin any}
supported_archs     noarch

if {${perl5.major} ne ""} {
    depends_lib-append \
                    port:p${perl5.major}-dbi \
                    port:p${perl5.major}-dbd-mysql \
                    port:p${perl5.major}-term-readkey

    # https://svnweb.freebsd.org/ports/head/databases/mytop/files/patch-mytop?revision=374121
    patchfiles      patch-mytop
}

# no upstream activity since 2013
livecheck.type      none
