# $Id: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name ldas-tools version 2.4.0 categories science platforms darwin maintainers ligo.org:ed.maros description Suite of LDAS tools long_description ${description} homepage http://www.ldas-sw.ligo.caltech.edu master_sites http://software.ligo.org/lscsoft/source/ checksums rmd160 9b250e836b502379ff24124d1bf67e2c3e164feb \ sha256 d49438554a9628ff320e889e55fb3a60a6596c4ab581eb089b4356e9e5e51b86 configure.args --disable-silent-rules \ --with-optimization=high \ --disable-tcl \ --disable-python \ --without-doxygen \ --without-dot \ --disable-latex if {${os.major} < 13} { configure.args-append --disable-cxx11 } depends_lib path:lib/libssl.dylib:openssl \ port:zlib \ port:bzip2 \ port:flex # requires clang from Xcode5 or higher to build compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2 use_parallel_build yes #variant docs description {build documentation} { # configure.args-delete --disable-latex \ # --disable-dot \ # --disable-ldas-documentation \ # configure.args-append --docdir=${prefix}/share/doc/ldas-tools #} #------------------------------------------------------------------------ # Python variants #------------------------------------------------------------------------ set pythons_suffixes {27 34} set pythons_ports {} foreach s ${pythons_suffixes} { lappend pythons_ports python${s} } foreach s ${pythons_suffixes} { set p python${s} set v [string index ${s} 0].[string index ${s} 1] set i [lsearch -exact ${pythons_ports} ${p}] set c [lreplace ${pythons_ports} ${i} ${i}] set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v} eval [subst { variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} { depends_build-append port:swig-python depends_lib-append port:${p} port:py${s}-numpy configure.args-strsed s/--disable-python/--enable-python/ destroot.args-append pythondir="${d}" pyexecdir="${d}" } }] } livecheck.type regex livecheck.url ${master_sites} livecheck.regex {ldas-tools-(\d+(?:\.\d+)*).tar.gz}