# -*- 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
PortGroup               qt5   1.0

name                    qttesting
version                 20200209
revision                0
categories              devel
# same license as ParaView
license                 BSD
maintainers             {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
platforms               darwin
description             a library for the automatic testing of UI components in ParaView application
long_description        The QtTesting library has been created for automatic testing of UI components in ParaView application.

homepage                https://github.com/Kitware/QtTesting

fetch.type              git
git.url                 https://github.com/Kitware/QtTesting
git.branch              60683600befb33d47fe245f2666b467073afab01

# allow ParaView to find libraries
patchfiles-append       patch-variable_name.diff

configure.args-append   -DQtTesting_QT_VERSION=5 \
                        -DBUILD_SHARED_LIBS=ON

livecheck.type          regexm
livecheck.version       ${git.branch}
livecheck.url           https://gitlab.kitware.com/paraview/qttesting/commits/master
livecheck.regex         {/paraview/qttesting/-/commit/([0-9a-z]*)}
