# $Id: Portfile 117166 2014-02-18 00:04:40Z ram@macports.org $

PortSystem    1.0

name          gstlal-inspiral
version       0.3.2
categories    science
platforms     darwin
maintainers   ram
license       GPL

description   Experimental GSTLAL elements
long_description \
  This package provides a variety of experimental GStreamer elements \
  for gravitational-wave data analysis and some libraries to help \
  write such elements. The code here sits on top of several other \
  libraries, notably the LIGO Algorithm Library, the GNU Scientific \
  Library, and, of course, GStreamer

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

checksums     rmd160  8bd38efa4fda6b82b7287cbe1d9c8b8f34fae427 \
              sha256  523a10418545b35c08a5858fd3be09fe0884f84622064754515e75af530459d0

depends_build port:pkgconfig

depends_lib   port:gstlal \
              port:gstlal-ugly \
              port:python27 \
              port:glue \
              port:pylal \
              port:gstreamer010 \
              port:gstreamer010-gst-plugins-base \
              port:gstreamer010-gst-plugins-good \
              port:py27-gst-python \
              port:py27-gobject \
              port:py27-numpy \
              port:py27-scipy \
              port:lal \
              port:lalmetaio \
              port:lalinspiral \
              port:gsl

# pylal is not universal
universal_variant no

set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
configure.pkg_config_path ${python_prefix}/lib/pkgconfig
configure.python ${prefix}/bin/python2.7

use_parallel_build yes

# fails with "error: cannot compile this complex compound assignment yet"
# submitted as radr://11224126
# http://llvm.org/bugs/show_bug.cgi?id=12790 fixed in r183821
# TODO: Change clang blacklisting into versioned once this is fixed in a released version (not yet in Xcode 4.6)
compiler.blacklist-append clang
compiler.blacklist-append macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2 macports-clang-3.3
compiler.fallback-append macports-clang-3.4

set pythondir "${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages"
destroot.args-append \
              pythondir="${pythondir}" \
              pyexecdir="${pythondir}" \
              pkgpythondir="${pythondir}/${name}" \
              pkgpyexecdir="${pythondir}/${name}"

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