# $Id: Portfile 105689 2013-05-02 02:45:04Z ram@macports.org $

PortSystem    1.0
PortGroup     active_variants 1.1

name          lalinspiral
version       1.5.0
revision      1
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   LSC Algorithm Library - Inspiral
long_description \
  LIGO Scientific Collaboration Algorithm Library - Inspiral, containing \
  routines for compact binary gravitational wave data analysis.

homepage      https://www.lsc-group.phys.uwm.edu/daswg/projects/lalsuite.html
master_sites  http://www.lsc-group.phys.uwm.edu/daswg/download/software/source/lalsuite

checksums     rmd160 1e97d14f05aa8bb7f103627907de4359df24b283 \
              sha256 de455ed3db9ed0aba0ec7c7abd9fca3a1dc18bd96a033323e082273fcd7cb8db

depends_build port:pkgconfig \

depends_lib   port:python27 \
              port:lal \
              port:lalframe \
              port:lalmetaio \
              port:lalsimulation \
              port:gsl \
              port:metaio

configure.python ${prefix}/bin/python2.7
configure.args --mandir=${prefix}/share/man \
               --disable-silent-rules \
               --disable-gcc-flags \
               --disable-debug

use_parallel_build yes

variant swig_python description {Build python SWIG bindings} {
  require_active_variants lal swig_python
  require_active_variants lalframe swig_python
  require_active_variants lalmetaio swig_python
  require_active_variants lalsimulation swig_python
  depends_build-append  port:swig-python
  depends_lib-append    port:py27-numpy
  configure.args-append --enable-swig-python
}

default_variants +swig_python

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