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

name                clhep
version             2.4.7.1
categories          science
maintainers         nomaintainer
license             LGPL-3

description         A Class Library for High Energy Physics
long_description    A Class Library for High Energy Physics
homepage            https://proj-clhep.web.cern.ch/proj-clhep/
extract.suffix      .tgz
master_sites        https://proj-clhep.web.cern.ch/proj-clhep/dist1/
#                   http://git.cern.ch/pubweb/CLHEP.git

checksums           rmd160  98992981462f7d9d44230f352c33e80abee07412 \
                    sha256  1c8304a7772ac6b99195f1300378c6e3ddf4ad07c85d64a04505652abb8a55f9 \
                    size    1229169

worksrcdir          ${version}/CLHEP

compiler.cxx_standard   2011

# https://its.cern.ch/jira/browse/CLHEP-134
compiler.blacklist-append {clang < 600} macports-clang-3.3 macports-clang-3.4

post-build {
    fs-traverse file ${build.dir} {
        if {[string match {*-config} ${file}]} {
            reinplace -E {s|-arch [^ ]+||g} ${file}
        }
    }
}

livecheck.type      regex
# livecheck.url     http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/
livecheck.url       http://proj-clhep.web.cern.ch/proj-clhep/clhep23.html
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
