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

# this port can optionally be built with cmake (but then tests are run in a different way)
#PortGroup          cmake 1.1

gitlab.setup        remikz nccmp 1.10.0.0
revision            0
checksums           rmd160  b65c81e56a0112e6675469b9b04b7c0ce57a12cb \
                    sha256  cc3b5bb1331b08529e076fc9c007907320d2248dd5f4fd3feb99461644a9bfe8 \
                    size    318500

categories          science
maintainers         {noaa.gov:dave.allured @Dave-Allured} openmaintainer
license             GPL-2
description         Tool for comparing NetCDF files
long_description    nccmp compares two NetCDF files bitwise, semantically or \
                    with a user defined tolerance. Highly recommended for regression testing \
                    scientific models or datasets in a test-driven development environment.

depends_lib         port:netcdf

compiler.blacklist-append *gcc-4*

post-extract {
    # Fix build when coreutils port is not installed.
    # https://gitlab.com/remikz/nccmp/issues/7
    file attributes ${worksrcpath}/install-sh -permissions a+x
}

test.run            yes
test.target         check
