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

# Need MAP_ANONYMOUS
PortGroup           legacysupport 1.0
legacysupport.newest_darwin_requires_legacy 14

github.setup        SimonKagstrom kcov 38 v
revision            1
checksums           rmd160  7bc2dfb463ec46c5ae541894fc522c18a615e9f2 \
                    sha256  b37af60d81a9b1e3b140f9473bdcb7975af12040feb24cc666f9bb2bb0be68b4 \
                    size    306098

categories          devel
license             GPL-2
platforms           darwin
maintainers         nomaintainer

description         coverage report generator
long_description    \
    Kcov is a code coverage tester for compiled programs, Python scripts and \
    shell scripts. It allows collecting code coverage information from \
    executables without special command-line arguments, and continuously \
    produces output from long-running applications.

homepage            https://simonkagstrom.github.io/kcov/
github.tarball_from archive

depends_build-append \
                    port:pkgconfig \
                    port:python38

depends_lib-append  port:curl \
                    port:zlib

patchfiles          bin-to-c-source.py.use-python38.patch \
                    kcov-lldb-rpath.patch

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/src/bin-to-c-source.py
}
