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

name               py-ligo-common
version            1.0.3

categories-append  science
platforms          darwin
supported_archs    noarch
maintainers        nomaintainer
license            GPL-3+

description        Common package for LIGO Python libraries
long_description   ${description}
homepage           https://git.ligo.org/lscsoft/ligo-common

master_sites       https://software.igwn.org/lscsoft/source/
distname           ligo-common-${version}

checksums  rmd160  ba7b27ac876e1133e852fd9f3f8bb2442bb24638 \
           sha256  a3e00d79bf3b0474b429f50fb60079da015453afa09658f90efcab8ae158a835 \
           size    15620

python.versions         27 36 37 38
python.default_version  27

if {${name} ne ${subport}} {
    depends_build-append port:py${python.version}-setuptools
}

if {${name} eq ${subport}} {
    livecheck.type   regex
    livecheck.url    ${master_sites}
    livecheck.regex  {ligo-common-(\d+(?:\.\d+)*).tar.gz}
} else {
    livecheck.type   none
}
