# $Id: Portfile 146517 2016-03-10 17:49:28Z raimue@macports.org $ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name ldas-tools version 2.4.2 revision 1 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 54dec09d6d9d3e55c881af7574226f2d640a5e96 \ sha256 17b9514c8aa2092f70f7d8c7315a7d46008a285d47b730ad2d7a8eb2c89e9a36 patchfiles patch-libraries-ldastoolsal-src-AtExit.cc.diff \ patch-libraries-ldastoolsal-src-TaskThread.cc.diff 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_versions { 27 34 } set pythons_ports {} foreach s ${pythons_versions} { lappend pythons_ports python${s} } foreach s ${pythons_versions} { 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.python ${prefix}/bin/python${v} configure.args-replace --disable-python --enable-python destroot.args-append pythondir="${d}" pyexecdir="${d}" } }] } if {![variant_isset python34]} { default_variants +python27 } livecheck.type regex livecheck.url ${master_sites} livecheck.regex {ldas-tools-(\d+(?:\.\d+)*).tar.gz}