# -*- 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-lscsoft-glue
version              2.0.0

categories-append    science
platforms            darwin
maintainers          {ligo.org:ryan.fisher @rpfisher} \
                     openmaintainer
license              GPL-3+

description          Grid LSC User Environment
long_description \
  Glue is a suite of python modules and programs to allow users to run \
  LSC codes on the grid.

homepage             https://git.ligo.org/lscsoft/glue/
master_sites         pypi:l/lscsoft-glue
distname             lscsoft-glue-${version}

checksums            rmd160  98055a86e6c2f5eae1749338e4d895204eef121e \
                     sha256  9bdfaebe4c921d83d1e3d1ca24379a644665e9d7530e7070665f387767c66923 \
                     size    1618606

python.versions      27 36 37 38
python.default_version 27

if {${name} ne ${subport}} {
    depends_lib-append port:py${python.version}-six \
                       port:py${python.version}-numpy \
                       port:py${python.version}-pyrxp \
                       port:py${python.version}-openssl \
                       port:py${python.version}-ligo-segments
    if {${python.version} == 27} {
        depends_lib-append port:py${python.version}-cjson
    }
    depends_build-append port:py${python.version}-setuptools

    livecheck.type   none
}

# py-pyrxp is not universal
universal_variant no
