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

name                        oscar
version                     1.6.0
revision                    0
# please increase revision with new build_number
set build_number            0
# see https://gitlab.com/CrimsonNape/OSCAR-code/-/tags for upload_tag associated with version
set upload_tag              cb07f84195efc2a2141fec2df661c5e5a63f5670
categories                  aqua
license                     GPL-3
maintainers                 {mcalhoun @MarcusCalhoun-Lopez} {mark @markemer} openmaintainer


description                 a cross platform, opensource sleep tracking program for reviewing CPAP and Oximetry data
long_description            OSCAR is ${description}, \
                            which are devices used in the treatment of Sleep Disorders like Obstructive Sleep Apnea.

homepage                    https://www.sleepfiles.com/OSCAR/
master_sites                https://gitlab.com/CrimsonNape/OSCAR-code/-/archive/${upload_tag}

distname                    ${name}-${version}-r-${build_number}

checksums                   rmd160  dac6a63429d101d200fdfac4303a074e44200120 \
                            sha256  6786540b4f73c92e7de95cf1de5c6b05fef495eefa5f32e412e0f4da022b14ec \
                            size    7841691

qt5.min_version             5.13

worksrcdir                  OSCAR-code-${upload_tag}

patchfiles-append           patch-oscar.pro.diff

configure.args-append       ${worksrcpath}/oscar/oscar.pro

qt5.depends_build_component qttools

depends_lib-append          port:zlib
qt5.depends_component       qtserialport

destroot {
    copy ${worksrcpath}/OSCAR.app ${destroot}${applications_dir}
}

livecheck.type              regex
livecheck.url               https://gitlab.com/CrimsonNape/OSCAR-code/-/tags
livecheck.regex             { v(\d+(?:\.\d+)*)[^-]}
