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

name            lscsoft-deps
version         20200805
# 1 rebuild afer upgrading HDF5. Keep revision number even if 0.
revision        10
categories      science
maintainers     nomaintainer
supported_archs noarch

description     LSCSoft dependencies meta-port
long_description  This is a meta-port that depends on all the ports \
  needed for developing Software used within the LIGO Scientific \
  Collaboration.

homepage        https://www.lsc-group.phys.uwm.edu/daswg
master_sites    ${homepage}

distfiles

depends_run     port:autoconf \
                port:automake \
                path:bin/cmake:cmake \
                port:git \
                port:git-lfs \
                port:libtool \
                port:pkgconfig

build {}
destroot {
  xinstall -d ${destroot}${prefix}/share/doc/${name}-${version}
  system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}-${version}/README.txt"
}

variant glue description {Include dependencies for glue development} {
  depends_run-append port:py314-numpy \
                     port:py314-openssl \
                     port:py314-pyrxp
}

variant lalsuite requires glue description {Include dependencies for LALSuite development} {
  depends_run-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
                     port:fftw-3 \
                     port:fftw-3-single \
                     port:gsl \
                     port:hdf5 \
                     port:healpix-c \
                     port:ldas-tools-framecpp \
                     port:libframe \
                     port:libxml2 \
                     port:metaio \
                     port:py314-astropy \
                     port:py314-freezegun \
                     port:py314-h5py \
                     port:py314-healpy \
                     port:py314-lscsoft-glue \
                     port:py314-ligo-segments \
                     port:py314-ligo-lw \
                     port:py314-mock \
                     port:py314-pytest \
                     port:py314-pytest-mpl \
                     port:py314-scipy \
                     port:py314-shapely \
                     port:swig \
                     port:swig-python
}

variant nds2 description {Include dependencies for nds2 development} {
    depends_run-append \
        path:bin/doxygen:doxygen \
        path:bin/dot:graphviz \
        port:kerberos5 \
        port:boost
}

variant nds2_swig requires nds2 description {Include dependencies for nds2 SWIG development} {
    depends_run-append \
        port:python314 \
        port:py314-numpy \
        port:swig \
        port:swig-java \
        port:swig-octave \
        port:swig-python
}

variant gds description {Include dependencies for GDS development} {
    depends_run-append \
        port:jsoncpp \
        port:root6
}

default_variants +glue +lalsuite +nds2 +nds2_swig +gds

notes \
"To complete the installation and prepare your system for use, please run:
\n\tgit lfs install
\tsudo port select --set python python314"

use_configure   no

livecheck.type  none
