# -*- 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                log4shib
version             2.0.1
categories          sysutils shibboleth devel
license             LGPL-2.1
maintainers         {snc @nerdling} {scantor @scantor}
description         configurable logging for C++, fork of log4cpp
long_description    Log4shib is library of C++ classes for flexible logging to \
                    files, syslog, IDSA and other destinations. It is modeled \
                    after the Log4j Java library, staying as close to their \
                    API as is reasonable.
homepage            http://shibboleth.net/

platforms           darwin

master_sites        http://shibboleth.net/downloads/log4shib/${version}/
use_bzip2           yes

checksums           rmd160  34b7fe37acb477a8ae1c989355c6aa35ef18a02d \
                    sha256  a9423925897593aa25a0f5a0e6bd74fe1565b712fe0124928fadcaf04d9e7afd \
                    size    421423

configure.args      --disable-doxygen \
                    --disable-dot \
                    --disable-html-docs \
                    --disable-latex-docs

variant universal {
    depends_lib-append  port:libtool
}

post-configure {
    if {[variant_exists universal] && [variant_isset universal]} {
        file copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
    }
}

livecheck.type      regex
livecheck.url       http://shibboleth.net/downloads/log4shib/latest/
livecheck.regex     ${name}-(\\d+\\.\\d+\\.\\d+)
