1 | # $Id: Portfile 126610 2014-10-12 20:22:46Z ram@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup compiler_blacklist_versions 1.0 |
---|
5 | |
---|
6 | name ldas-tools-al |
---|
7 | version 2.5.0 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | maintainers ligo.org:ed.maros |
---|
11 | |
---|
12 | description Suite of LDAS tools |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage https://wiki.ligo.org/DASWG/LDASTools |
---|
16 | master_sites http://software.ligo.org/lscsoft/source/ |
---|
17 | |
---|
18 | checksums rmd160 65d06067bf42270eadc5704bc1e1985cef89b9db \ |
---|
19 | sha256 97c907802ad2f3766be817720de93aafdec9ea5386e0ff6550659e435e5c0d73 |
---|
20 | |
---|
21 | conflicts port:ldas-tools |
---|
22 | depends_lib port:openssl \ |
---|
23 | port:zlib \ |
---|
24 | port:bzip2 \ |
---|
25 | port:flex |
---|
26 | |
---|
27 | |
---|
28 | configure.args --disable-silent-rules \ |
---|
29 | --with-optimization=high \ |
---|
30 | --disable-tcl \ |
---|
31 | --disable-python \ |
---|
32 | --without-doxygen \ |
---|
33 | --without-dot \ |
---|
34 | --disable-latex |
---|
35 | |
---|
36 | if {${os.major} < 13} { |
---|
37 | configure.args-append --disable-cxx11 |
---|
38 | } |
---|
39 | |
---|
40 | # requires clang from Xcode5 or higher to build |
---|
41 | compiler.blacklist-append {clang < 500.2.75} llvm-gcc-4.2 gcc-4.2 |
---|
42 | |
---|
43 | use_parallel_build yes |
---|
44 | |
---|
45 | #variant docs description {build documentation} { |
---|
46 | # configure.args-delete --disable-latex \ |
---|
47 | # --disable-dot \ |
---|
48 | # --disable-ldas-documentation \ |
---|
49 | # configure.args-append --docdir=${prefix}/share/doc/ldas-tools |
---|
50 | #} |
---|
51 | |
---|
52 | #------------------------------------------------------------------------ |
---|
53 | # Python variants |
---|
54 | #------------------------------------------------------------------------ |
---|
55 | set pythons_suffixes {27 34} |
---|
56 | |
---|
57 | set pythons_ports {} |
---|
58 | foreach s ${pythons_suffixes} { |
---|
59 | lappend pythons_ports python${s} |
---|
60 | } |
---|
61 | |
---|
62 | foreach s ${pythons_suffixes} { |
---|
63 | set p python${s} |
---|
64 | set v [string index ${s} 0].[string index ${s} 1] |
---|
65 | set i [lsearch -exact ${pythons_ports} ${p}] |
---|
66 | set c [lreplace ${pythons_ports} ${i} ${i}] |
---|
67 | set d ${frameworks_dir}/Python.framework/Versions/${v}/lib/python${v} |
---|
68 | eval [subst { |
---|
69 | variant ${p} description "Enable SWIG Python interface for Python ${v}" conflicts ${c} { |
---|
70 | |
---|
71 | depends_build-append port:swig-python |
---|
72 | depends_lib-append port:${p} port:py${s}-numpy |
---|
73 | configure.args-strsed s/--disable-python/--enable-python/ |
---|
74 | destroot.args-append pythondir="${d}" pyexecdir="${d}" |
---|
75 | |
---|
76 | } |
---|
77 | }] |
---|
78 | } |
---|
79 | |
---|
80 | livecheck.type regex |
---|
81 | livecheck.url ${master_sites} |
---|
82 | livecheck.regex {ldas-tools-(\d+(?:\.\d+)*).tar.gz} |
---|