# $Id: Portfile 104894 2013-04-04 19:48:59Z ram@macports.org $

PortSystem    1.0
PortGroup     active_variants 1.1

name          lalinference
version       1.1.0
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   LSC Algorithm Library - Inference
long_description \
  LIGO Scientific Collaboration Algorithm Library - Inference containing \
  routines for Bayesian inference 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 1f36d659db3919feec1907f5cc78be1e26ed029b \
              sha256 58de1195e89e3e2d9056f84580b06a0e99c81ab99aa5c6f740064ef8c2b67ebd

depends_build port:pkgconfig \
              port:python27

depends_lib   port:gsl \
              port:metaio \
              port:lal \
              port:lalframe \
              port:lalmetaio \
              port:lalsimulation \
              port:lalinspiral \
              port:lalpulsar

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 lalxml description {Build with LALXML support} {
  require_active_variants lalpulsar lalxml
  depends_lib-append    port:libxml2 \
                        port:lalxml
  configure.args-append --enable-lalxml
}

default_variants +lalxml

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