# -*- 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           github 1.0
PortGroup           active_variants 1.1
PortGroup           gnuradio 1.0

name                gr-foo
maintainers         {michaelld @michaelld} openmaintainer
description         Provides augmented functionality (blocks, GRC definitions, apps, etc) for GNU Radio.
long_description    {*}${description}
license             GPL-3

if {${subport} eq ${name}} {
    github.setup    bastibl gr-foo 13fac53de827ece4f2a5a367ed8cb3900238b3f6
    # Change github.tarball_from to 'releases' or 'archive' next update
    github.tarball_from tarball
    git.branch      maint-3.8
    version         20191217-[string range ${github.version} 0 7]
    checksums       rmd160  ce32f45356ede334adefc4105748cc0d8b682ada \
                    sha256  a9bc126ef7b1fad42de4e8384140bc2fc65ece1ed7f4c76c1bc98a289e98a58a \
                    size    24126    
    revision        5

    conflicts       gr37-foo

    require_active_variants path:lib/libuhd.dylib:uhd path:lib/libgnuradio-runtime.dylib:gnuradio
}


subport gr37-foo {

    name            gr37-foo

    github.setup    bastibl gr-foo a2d8670313b846bc6aded3f123b02a960e59b4e6
    # Change github.tarball_from to 'releases' or 'archive' next update
    github.tarball_from tarball
    git.branch      maint-3.7
    version         20190606-[string range ${github.version} 0 7]
    checksums       rmd160  8ab7bc7829f9edef4e3378b5541bcf137be5465c \
                    sha256  682c08198ecb38200eb7776a991ff5d470e2182504b26380d8be98a7bba4cc91 \
                    size    107447
    revision        3

    conflicts       gr-foo

    require_active_variants path:lib/libuhd.dylib:uhd gnuradio37

}

# use the git branch for livecheck
github.livecheck.branch ${git.branch}
