# -*- 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               pylal
version            0.13.1
revision           1
categories         science
platforms          darwin
maintainers        {ram @skymoo} {aronnax @lpsinger}
license            GPL-2+

description        Python LSC Algorithm Library
long_description \
  The PyLAL package is best described as the Python LIGO Algorithm \
  Library. It was originally a Python wrapping of parts of the LAL \
  library, and although it continues to provide that function it has \
  acquired a large collection of independent code of its own so that \
  it is no longer exclusively a Python interface to LAL. In this \
  package you will find convenience code to assist with manipulating \
  XML documents using the glue.ligolw I/O library, you will find a \
  wrapping to libframe to enable GWF frame-file reading, you will \
  find binning and smoothing code, and you will find (partial) \
  wrappings of LALs burstsearch, date, inject, tools, and window \
  packages. Additionally, you will find most, if not all, of the \
  inspiral pipeline's follow-up and summary tools, and several \
  burst-related trigger post-production tools.

homepage           https://www.lsc-group.phys.uwm.edu/daswg/projects/pylal.html
master_sites       http://software.ligo.org/lscsoft/source/

checksums          rmd160 c4d383064c922ffc16fd9ce046fcece34127c31c \
                   sha256 531538893707ed1b7d8e8abb3bc1a71b91094c1b5f05da07940aae8ac2daa9e0

python.default_version 27

depends_build      port:pkgconfig

depends_lib-append port:py${python.version}-numpy \
                   port:py${python.version}-scipy \
                   port:py${python.version}-matplotlib \
                   port:glue \
                   port:py${python.version}-lal \
                   port:py${python.version}-lalframe \
                   port:py${python.version}-lalmetaio \
                   port:py${python.version}-lalsimulation \
                   port:py${python.version}-lalburst \
                   port:py${python.version}-lalinspiral

# Choose a compiler that supports OpenMP.
compiler.whitelist macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-clang-4.0
compiler.fallback  macports-clang-3.9

# py-scipy is not universal
universal_variant  no

livecheck.type     regex
livecheck.url      ${master_sites}
livecheck.regex    {pylal-(\d+(?:\.\d+)*).tar.gz}