# -*- 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

name                svndigest
version             0.11.1
revision            1

categories          devel
license             GPL-3+
maintainers         {gmail.com:pj31042 @peter31042}

description         Create statistics of a subversion repository

long_description    ${name} is a tool to extract development information \
                    and statistics from a subversion repository. Svndigest \
                    is written in C++ and extracts repository history using \
                    the Subversion API. The resulting report is written \
                    to a user specifiable directory in HTML format.

homepage            https://dev.thep.lu.se/svndigest
master_sites        sourceforge:project/svndigest

installs_libs       no

checksums           rmd160  384cf291719552a1d2c1a54a01f325819d82bbbb \
                    sha256  636d36c9be1dbc25b1683c86a28cc9c769c432e1a58605a577deaa8e68681e65 \
                    size    309681

depends_build-append \
                    port:help2man \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:apr \
                    port:plplot \
                    port:subversion

compiler.cxx_standard \
                    2011

test.run            yes
test.target         check

if {${os.platform} eq "darwin" && ${os.major} < 12} {
    PortGroup       legacysupport 1.1

    legacysupport.newest_darwin_requires_legacy 11
    legacysupport.use_mp_libcxx yes

    # svndigest(29555) malloc: *** error for object 0x3eeaa8: pointer being freed was not allocated
    legacysupport.redirect_bins svncopyright svndigest svndigest-copy-cache
}

livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
