# -*- 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                logcat-color3
version             0.9.0
categories-append   devel
license             Apache-2
maintainers         nomaintainer
description         A colorful logcat
long_description    \
    A colorful and highly configurable alternative to the standard "adb logcat" \
    command from the Android SDK (Python 3-compatible fork)
platforms           darwin
supported_archs     noarch
homepage            https://github.com/yan12125/logcat-color3
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}

conflicts           py27-logcat-color

python.versions     37

checksums           rmd160  4d8614d734b5b1945b73365b02a3c4b5a3358681 \
                    sha256  57471841b59d0a456f6d3a971bb3701ca2fc9a8319735e9515c9de3cd2062c92 \
                    size    22598

post-extract {
    reinplace "s|/usr/bin/env python|${python.bin}|" ${worksrcpath}/test/mock-adb
}

depends_build-append \
                port:py${python.version}-setuptools_scm \
                port:py${python.version}-wheel

depends_lib-append \
                port:py${python.version}-colorama \
                port:py${python.version}-setuptools

depends_run-append \
                bin:adb:android-platform-tools
