# $Id$ PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 name ldas-tools-al version 2.5.0 categories science platforms darwin maintainers ligo.org:ed.maros description Suite of LDAS tools long_description ${description} homepage https://wiki.ligo.org/DASWG/LDASTools master_sites http://software.ligo.org/lscsoft/source/ checksums rmd160 65d06067bf42270eadc5704bc1e1985cef89b9db \ sha256 97c907802ad2f3766be817720de93aafdec9ea5386e0ff6550659e435e5c0d73 depends_lib port:openssl \ port:zlib \ port:bzip2 \ port:flex 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 } # 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 pre-activate { # ldas-tools-al now contains files that used to be provided by ldas-tools if {![catch {set installed [lindex [registry_active ldas-tools] 0]}]} { set _version [lindex $installed 1] if {[vercmp $_version 2.5.0] < 0} { # ldas-tools used to install some files now provided by ldas-tools in versions < 2.5.0 registry_deactivate_composite ldas-tools "" [list ports_nodepcheck 1] } } } #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}